public class DstNxArpShaCaseBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<DstNxArpShaCase>
DstNxArpShaCaseBuilder
instances. Overall design of the class is that of a
fluent interface, where method chaining is used.
In general, this class is supposed to be used like this template:
DstNxArpShaCaseBuilder createTarget(int fooXyzzy, int barBaz) {
return new DstNxArpShaCaseBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of DstNxArpShaCaseBuilder, as instances can be freely passed around without worrying about synchronization issues.
As a side note: method chaining results in:
build()
, which is then returned from the methodDstNxArpShaCaseBuilder
,
Builder
Constructor and Description |
---|
DstNxArpShaCaseBuilder() |
DstNxArpShaCaseBuilder(DstNxArpShaCase base) |
DstNxArpShaCaseBuilder(NxmNxArpShaGrouping arg) |
Modifier and Type | Method and Description |
---|---|
DstNxArpShaCaseBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxArpShaCase>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<DstNxArpShaCase> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxArpShaCase>> |
augmentation(Class<E$$> augmentationType) |
DstNxArpShaCase |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yangtools.yang.common.Empty |
getNxArpSha() |
DstNxArpShaCaseBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxArpShaCase>> augmentationType) |
DstNxArpShaCaseBuilder |
setNxArpSha(org.opendaylight.yangtools.yang.common.Empty value) |
public DstNxArpShaCaseBuilder()
public DstNxArpShaCaseBuilder(NxmNxArpShaGrouping arg)
public DstNxArpShaCaseBuilder(DstNxArpShaCase base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic org.opendaylight.yangtools.yang.common.Empty getNxArpSha()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxArpShaCase>> E$$ augmentation(Class<E$$> augmentationType)
public DstNxArpShaCaseBuilder setNxArpSha(org.opendaylight.yangtools.yang.common.Empty value)
public DstNxArpShaCaseBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxArpShaCase>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<DstNxArpShaCase> augmentationValue)
public DstNxArpShaCaseBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxArpShaCase>> augmentationType)
public DstNxArpShaCase build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<DstNxArpShaCase,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.