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