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