public class EndpointsObjBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<EndpointsObj>
EndpointsObjBuilder 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:
EndpointsObjBuilder createTarget(int fooXyzzy, int barBaz) {
return new EndpointsObjBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of EndpointsObjBuilder, 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 methodEndpointsObjBuilder,
Builder| Constructor and Description |
|---|
EndpointsObjBuilder() |
EndpointsObjBuilder(Endpoints arg) |
EndpointsObjBuilder(EndpointsObj base) |
EndpointsObjBuilder(Object arg) |
EndpointsObjBuilder(ObjectHeader arg) |
| Modifier and Type | Method and Description |
|---|---|
EndpointsObjBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<EndpointsObj>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<EndpointsObj> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<EndpointsObj>> |
augmentation(Class<E$$> augmentationType) |
EndpointsObj |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
AddressFamily |
getAddressFamily() |
Boolean |
isIgnore() |
Boolean |
isProcessingRule() |
EndpointsObjBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<EndpointsObj>> augmentationType) |
EndpointsObjBuilder |
setAddressFamily(AddressFamily value) |
EndpointsObjBuilder |
setIgnore(Boolean value) |
EndpointsObjBuilder |
setProcessingRule(Boolean value) |
public EndpointsObjBuilder()
public EndpointsObjBuilder(Object arg)
public EndpointsObjBuilder(ObjectHeader arg)
public EndpointsObjBuilder(Endpoints arg)
public EndpointsObjBuilder(EndpointsObj base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic AddressFamily getAddressFamily()
public Boolean isIgnore()
public Boolean isProcessingRule()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<EndpointsObj>> E$$ augmentation(Class<E$$> augmentationType)
public EndpointsObjBuilder setAddressFamily(AddressFamily value)
public EndpointsObjBuilder setIgnore(Boolean value)
public EndpointsObjBuilder setProcessingRule(Boolean value)
public EndpointsObjBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<EndpointsObj>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<EndpointsObj> augmentationValue)
public EndpointsObjBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<EndpointsObj>> augmentationType)
public EndpointsObj build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<EndpointsObj,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.