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