public class RequestBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Request>
RequestBuilder 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:
RequestBuilder createTarget(int fooXyzzy, int barBaz) {
return new RequestBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of RequestBuilder, 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 methodRequestBuilder,
Builder| Constructor and Description |
|---|
RequestBuilder() |
RequestBuilder(Request base) |
| Modifier and Type | Method and Description |
|---|---|
RequestBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Request>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Request> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Request>> |
augmentation(Class<E$$> augmentationType) |
Request |
build() |
List<Rps> |
getRps() |
RequestBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Request>> augmentationType) |
RequestBuilder |
setRps(List<Rps> values) |
public RequestBuilder()
public RequestBuilder(Request base)
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Request>> E$$ augmentation(Class<E$$> augmentationType)
public RequestBuilder setRps(List<Rps> values)
public RequestBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Request>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Request> augmentationValue)
public RequestBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Request>> augmentationType)
public Request build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Request,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.