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