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