public class SetConfigInputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SetConfigInput>
SetConfigInputBuilder
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:
SetConfigInputBuilder createTarget(int fooXyzzy, int barBaz) {
return new SetConfigInputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SetConfigInputBuilder, 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 methodSetConfigInputBuilder
,
Builder
Constructor and Description |
---|
SetConfigInputBuilder() |
SetConfigInputBuilder(OfHeader arg) |
SetConfigInputBuilder(SetConfig arg) |
SetConfigInputBuilder(SetConfigInput base) |
Modifier and Type | Method and Description |
---|---|
SetConfigInputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SetConfigInput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<SetConfigInput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SetConfigInput>> |
augmentation(Class<E$$> augmentationType) |
SetConfigInput |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
SwitchConfigFlag |
getFlags() |
Integer |
getMissSendLen() |
Short |
getVersion() |
Long |
getXid() |
SetConfigInputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SetConfigInput>> augmentationType) |
SetConfigInputBuilder |
setFlags(SwitchConfigFlag value) |
SetConfigInputBuilder |
setMissSendLen(Integer value) |
SetConfigInputBuilder |
setVersion(Short value) |
SetConfigInputBuilder |
setXid(Long value) |
public SetConfigInputBuilder()
public SetConfigInputBuilder(SetConfig arg)
public SetConfigInputBuilder(OfHeader arg)
public SetConfigInputBuilder(SetConfigInput base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic SwitchConfigFlag getFlags()
public Integer getMissSendLen()
public Short getVersion()
public Long getXid()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SetConfigInput>> E$$ augmentation(Class<E$$> augmentationType)
public SetConfigInputBuilder setFlags(SwitchConfigFlag value)
public SetConfigInputBuilder setMissSendLen(Integer value)
public SetConfigInputBuilder setVersion(Short value)
public SetConfigInputBuilder setXid(Long value)
public SetConfigInputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SetConfigInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<SetConfigInput> augmentationValue)
public SetConfigInputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SetConfigInput>> augmentationType)
public SetConfigInput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SetConfigInput,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.