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