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