public class SrcNxNsiCaseBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SrcNxNsiCase>
SrcNxNsiCaseBuilder 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:
SrcNxNsiCaseBuilder createTarget(int fooXyzzy, int barBaz) {
return new SrcNxNsiCaseBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SrcNxNsiCaseBuilder, 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 methodSrcNxNsiCaseBuilder,
Builder| Constructor and Description |
|---|
SrcNxNsiCaseBuilder() |
SrcNxNsiCaseBuilder(NxmNxNsiGrouping arg) |
SrcNxNsiCaseBuilder(SrcNxNsiCase base) |
| Modifier and Type | Method and Description |
|---|---|
SrcNxNsiCaseBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SrcNxNsiCase>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<SrcNxNsiCase> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SrcNxNsiCase>> |
augmentation(Class<E$$> augmentationType) |
SrcNxNsiCase |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yangtools.yang.common.Empty |
getNxNsiDst() |
SrcNxNsiCaseBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SrcNxNsiCase>> augmentationType) |
SrcNxNsiCaseBuilder |
setNxNsiDst(org.opendaylight.yangtools.yang.common.Empty value) |
public SrcNxNsiCaseBuilder()
public SrcNxNsiCaseBuilder(NxmNxNsiGrouping arg)
public SrcNxNsiCaseBuilder(SrcNxNsiCase 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 getNxNsiDst()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SrcNxNsiCase>> E$$ augmentation(Class<E$$> augmentationType)
public SrcNxNsiCaseBuilder setNxNsiDst(org.opendaylight.yangtools.yang.common.Empty value)
public SrcNxNsiCaseBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SrcNxNsiCase>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<SrcNxNsiCase> augmentationValue)
public SrcNxNsiCaseBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SrcNxNsiCase>> augmentationType)
public SrcNxNsiCase build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SrcNxNsiCase,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.