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