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