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