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