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