public class BasicBandwidthObjectBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<BasicBandwidthObject>
BasicBandwidthObjectBuilder 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:
BasicBandwidthObjectBuilder createTarget(int fooXyzzy, int barBaz) {
return new BasicBandwidthObjectBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of BasicBandwidthObjectBuilder, 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 methodBasicBandwidthObjectBuilder,
Builder| Constructor and Description |
|---|
BasicBandwidthObjectBuilder() |
BasicBandwidthObjectBuilder(BasicBandwidthObject base) |
BasicBandwidthObjectBuilder(RsvpTeObject arg) |
| Modifier and Type | Method and Description |
|---|---|
BasicBandwidthObjectBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicBandwidthObject>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<BasicBandwidthObject> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicBandwidthObject>> |
augmentation(Class<E$$> augmentationType) |
BasicBandwidthObject |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.concepts.rev131125.Bandwidth |
getBandwidth() |
BasicBandwidthObjectBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicBandwidthObject>> augmentationType) |
BasicBandwidthObjectBuilder |
setBandwidth(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.concepts.rev131125.Bandwidth value) |
public BasicBandwidthObjectBuilder()
public BasicBandwidthObjectBuilder(RsvpTeObject arg)
public BasicBandwidthObjectBuilder(BasicBandwidthObject base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.concepts.rev131125.Bandwidth getBandwidth()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicBandwidthObject>> E$$ augmentation(Class<E$$> augmentationType)
public BasicBandwidthObjectBuilder setBandwidth(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.network.concepts.rev131125.Bandwidth value)
public BasicBandwidthObjectBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicBandwidthObject>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<BasicBandwidthObject> augmentationValue)
public BasicBandwidthObjectBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BasicBandwidthObject>> augmentationType)
public BasicBandwidthObject build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<BasicBandwidthObject,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.