public class DstNxOfInPortCaseBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<DstNxOfInPortCase>
DstNxOfInPortCaseBuilder 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:
DstNxOfInPortCaseBuilder createTarget(int fooXyzzy, int barBaz) {
return new DstNxOfInPortCaseBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of DstNxOfInPortCaseBuilder, 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 methodDstNxOfInPortCaseBuilder,
Builder| Constructor and Description |
|---|
DstNxOfInPortCaseBuilder() |
DstNxOfInPortCaseBuilder(DstNxOfInPortCase base) |
DstNxOfInPortCaseBuilder(NxmOfInPortGrouping arg) |
| Modifier and Type | Method and Description |
|---|---|
DstNxOfInPortCaseBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxOfInPortCase>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<DstNxOfInPortCase> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxOfInPortCase>> |
augmentation(Class<E$$> augmentationType) |
DstNxOfInPortCase |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Boolean |
isOfInPort() |
DstNxOfInPortCaseBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxOfInPortCase>> augmentationType) |
DstNxOfInPortCaseBuilder |
setOfInPort(Boolean value) |
public DstNxOfInPortCaseBuilder()
public DstNxOfInPortCaseBuilder(NxmOfInPortGrouping arg)
public DstNxOfInPortCaseBuilder(DstNxOfInPortCase base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Boolean isOfInPort()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxOfInPortCase>> E$$ augmentation(Class<E$$> augmentationType)
public DstNxOfInPortCaseBuilder setOfInPort(Boolean value)
public DstNxOfInPortCaseBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxOfInPortCase>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<DstNxOfInPortCase> augmentationValue)
public DstNxOfInPortCaseBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstNxOfInPortCase>> augmentationType)
public DstNxOfInPortCase build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<DstNxOfInPortCase,IllegalArgumentException>Copyright © 2019 OpenDaylight. All rights reserved.