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