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