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