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