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