public class FlowSpecObjectBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<FlowSpecObject>
FlowSpecObjectBuilder 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:
FlowSpecObjectBuilder createTarget(int fooXyzzy, int barBaz) {
return new FlowSpecObjectBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of FlowSpecObjectBuilder, 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 methodFlowSpecObjectBuilder,
Builder| Constructor and Description |
|---|
FlowSpecObjectBuilder() |
FlowSpecObjectBuilder(FlowSpecObject base) |
FlowSpecObjectBuilder(RsvpTeObject arg) |
FlowSpecObjectBuilder(TspecObject arg) |
| Modifier and Type | Method and Description |
|---|---|
FlowSpecObjectBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowSpecObject>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<FlowSpecObject> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowSpecObject>> |
augmentation(Class<E$$> augmentationType) |
FlowSpecObject |
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.ieee754.rev130819.Float32 |
getRate() |
ServiceNumber |
getServiceHeader() |
Long |
getSlackTerm() |
TspecObject |
getTspecObject() |
FlowSpecObjectBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowSpecObject>> augmentationType) |
FlowSpecObjectBuilder |
setRate(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ieee754.rev130819.Float32 value) |
FlowSpecObjectBuilder |
setServiceHeader(ServiceNumber value) |
FlowSpecObjectBuilder |
setSlackTerm(Long value) |
FlowSpecObjectBuilder |
setTspecObject(TspecObject value) |
public FlowSpecObjectBuilder()
public FlowSpecObjectBuilder(RsvpTeObject arg)
public FlowSpecObjectBuilder(TspecObject arg)
public FlowSpecObjectBuilder(FlowSpecObject 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.ieee754.rev130819.Float32 getRate()
public ServiceNumber getServiceHeader()
public Long getSlackTerm()
public TspecObject getTspecObject()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowSpecObject>> E$$ augmentation(Class<E$$> augmentationType)
public FlowSpecObjectBuilder setRate(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ieee754.rev130819.Float32 value)
public FlowSpecObjectBuilder setServiceHeader(ServiceNumber value)
public FlowSpecObjectBuilder setSlackTerm(Long value)
public FlowSpecObjectBuilder setTspecObject(TspecObject value)
public FlowSpecObjectBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowSpecObject>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<FlowSpecObject> augmentationValue)
public FlowSpecObjectBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowSpecObject>> augmentationType)
public FlowSpecObject build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<FlowSpecObject,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.