public class UpdatePortOutputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<UpdatePortOutput>
UpdatePortOutputBuilder
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:
UpdatePortOutputBuilder createTarget(int fooXyzzy, int barBaz) {
return new UpdatePortOutputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of UpdatePortOutputBuilder, 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 methodUpdatePortOutputBuilder
,
Builder
Constructor and Description |
---|
UpdatePortOutputBuilder() |
UpdatePortOutputBuilder(TransactionAware arg) |
UpdatePortOutputBuilder(UpdatePortOutput base) |
Modifier and Type | Method and Description |
---|---|
UpdatePortOutputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdatePortOutput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<UpdatePortOutput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdatePortOutput>> |
augmentation(Class<E$$> augmentationType) |
UpdatePortOutput |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
TransactionId |
getTransactionId() |
UpdatePortOutputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdatePortOutput>> augmentationType) |
UpdatePortOutputBuilder |
setTransactionId(TransactionId value) |
public UpdatePortOutputBuilder()
public UpdatePortOutputBuilder(TransactionAware arg)
public UpdatePortOutputBuilder(UpdatePortOutput base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic TransactionId getTransactionId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdatePortOutput>> E$$ augmentation(Class<E$$> augmentationType)
public UpdatePortOutputBuilder setTransactionId(TransactionId value)
public UpdatePortOutputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdatePortOutput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<UpdatePortOutput> augmentationValue)
public UpdatePortOutputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdatePortOutput>> augmentationType)
public UpdatePortOutput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<UpdatePortOutput,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.