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