public class SetVlanIdActionBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SetVlanIdAction>
SetVlanIdActionBuilder
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:
SetVlanIdActionBuilder createTarget(int fooXyzzy, int barBaz) {
return new SetVlanIdActionBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SetVlanIdActionBuilder, 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 methodSetVlanIdActionBuilder
,
Builder
Constructor and Description |
---|
SetVlanIdActionBuilder() |
SetVlanIdActionBuilder(SetVlanIdAction base) |
Modifier and Type | Method and Description |
---|---|
SetVlanIdActionBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SetVlanIdAction>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<SetVlanIdAction> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SetVlanIdAction>> |
augmentation(Class<E$$> augmentationType) |
SetVlanIdAction |
build() |
org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId |
getVlanId() |
SetVlanIdActionBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SetVlanIdAction>> augmentationType) |
SetVlanIdActionBuilder |
setVlanId(org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId value) |
public SetVlanIdActionBuilder()
public SetVlanIdActionBuilder(SetVlanIdAction base)
public org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId getVlanId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SetVlanIdAction>> E$$ augmentation(Class<E$$> augmentationType)
public SetVlanIdActionBuilder setVlanId(org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId value)
public SetVlanIdActionBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SetVlanIdAction>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<SetVlanIdAction> augmentationValue)
public SetVlanIdActionBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SetVlanIdAction>> augmentationType)
public SetVlanIdAction build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SetVlanIdAction,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.