public class RequestsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Requests>
RequestsBuilder 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:
RequestsBuilder createTarget(int fooXyzzy, int barBaz) {
return new RequestsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of RequestsBuilder, 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 methodRequestsBuilder,
Builder| Constructor and Description |
|---|
RequestsBuilder() |
RequestsBuilder(Requests base) |
RequestsBuilder(RpObject arg) |
RequestsBuilder(VendorInformationObjects arg) |
| Modifier and Type | Method and Description |
|---|---|
RequestsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Requests>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Requests> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Requests>> |
augmentation(Class<E$$> augmentationType) |
Requests |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
PathKeyExpansion |
getPathKeyExpansion() |
Rp |
getRp() |
SegmentComputation |
getSegmentComputation() |
List<VendorInformationObject> |
getVendorInformationObject() |
RequestsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Requests>> augmentationType) |
RequestsBuilder |
setPathKeyExpansion(PathKeyExpansion value) |
RequestsBuilder |
setRp(Rp value) |
RequestsBuilder |
setSegmentComputation(SegmentComputation value) |
RequestsBuilder |
setVendorInformationObject(List<VendorInformationObject> values) |
public RequestsBuilder()
public RequestsBuilder(RpObject arg)
public RequestsBuilder(VendorInformationObjects arg)
public RequestsBuilder(Requests base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic PathKeyExpansion getPathKeyExpansion()
public Rp getRp()
public SegmentComputation getSegmentComputation()
public List<VendorInformationObject> getVendorInformationObject()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Requests>> E$$ augmentation(Class<E$$> augmentationType)
public RequestsBuilder setPathKeyExpansion(PathKeyExpansion value)
public RequestsBuilder setRp(Rp value)
public RequestsBuilder setSegmentComputation(SegmentComputation value)
public RequestsBuilder setVendorInformationObject(List<VendorInformationObject> values)
public RequestsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Requests>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Requests> augmentationValue)
public RequestsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Requests>> augmentationType)
public Requests build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Requests,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.