public class OutputActionBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<OutputAction>
OutputActionBuilder
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:
OutputActionBuilder createTarget(int fooXyzzy, int barBaz) {
return new OutputActionBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of OutputActionBuilder, 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 methodOutputActionBuilder
,
Builder
Constructor and Description |
---|
OutputActionBuilder() |
OutputActionBuilder(OutputAction base) |
Modifier and Type | Method and Description |
---|---|
OutputActionBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OutputAction>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<OutputAction> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<OutputAction>> |
augmentation(Class<E$$> augmentationType) |
OutputAction |
build() |
Integer |
getMaxLength() |
PortNumber |
getPort() |
OutputActionBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OutputAction>> augmentationType) |
OutputActionBuilder |
setMaxLength(Integer value) |
OutputActionBuilder |
setPort(PortNumber value) |
public OutputActionBuilder()
public OutputActionBuilder(OutputAction base)
public Integer getMaxLength()
public PortNumber getPort()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<OutputAction>> E$$ augmentation(Class<E$$> augmentationType)
public OutputActionBuilder setMaxLength(Integer value)
public OutputActionBuilder setPort(PortNumber value)
public OutputActionBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OutputAction>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<OutputAction> augmentationValue)
public OutputActionBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OutputAction>> augmentationType)
public OutputAction build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<OutputAction,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.