public class SetTpSrcActionBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SetTpSrcAction>
SetTpSrcActionBuilder
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:
SetTpSrcActionBuilder createTarget(int fooXyzzy, int barBaz) {
return new SetTpSrcActionBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SetTpSrcActionBuilder, 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 methodSetTpSrcActionBuilder
,
Builder
Constructor and Description |
---|
SetTpSrcActionBuilder() |
SetTpSrcActionBuilder(SetTpSrcAction base) |
Modifier and Type | Method and Description |
---|---|
SetTpSrcActionBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SetTpSrcAction>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<SetTpSrcAction> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SetTpSrcAction>> |
augmentation(Class<E$$> augmentationType) |
SetTpSrcAction |
build() |
PortNumber |
getPort() |
SetTpSrcActionBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SetTpSrcAction>> augmentationType) |
SetTpSrcActionBuilder |
setPort(PortNumber value) |
public SetTpSrcActionBuilder()
public SetTpSrcActionBuilder(SetTpSrcAction base)
public PortNumber getPort()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SetTpSrcAction>> E$$ augmentation(Class<E$$> augmentationType)
public SetTpSrcActionBuilder setPort(PortNumber value)
public SetTpSrcActionBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SetTpSrcAction>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<SetTpSrcAction> augmentationValue)
public SetTpSrcActionBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SetTpSrcAction>> augmentationType)
public SetTpSrcAction build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SetTpSrcAction,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.