public class AssociationObjectBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<AssociationObject>
AssociationObjectBuilder 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:
AssociationObjectBuilder createTarget(int fooXyzzy, int barBaz) {
return new AssociationObjectBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of AssociationObjectBuilder, 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 methodAssociationObjectBuilder,
Builder| Constructor and Description |
|---|
AssociationObjectBuilder() |
AssociationObjectBuilder(AssociationObject base) |
AssociationObjectBuilder(RsvpTeObject arg) |
| Modifier and Type | Method and Description |
|---|---|
AssociationObjectBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AssociationObject>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<AssociationObject> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<AssociationObject>> |
augmentation(Class<E$$> augmentationType) |
AssociationObject |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Integer |
getAssociationId() |
AssociationType |
getAssociationType() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone |
getIpAddress() |
AssociationObjectBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AssociationObject>> augmentationType) |
AssociationObjectBuilder |
setAssociationId(Integer value) |
AssociationObjectBuilder |
setAssociationType(AssociationType value) |
AssociationObjectBuilder |
setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone value) |
public AssociationObjectBuilder()
public AssociationObjectBuilder(RsvpTeObject arg)
public AssociationObjectBuilder(AssociationObject base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Integer getAssociationId()
public AssociationType getAssociationType()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone getIpAddress()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<AssociationObject>> E$$ augmentation(Class<E$$> augmentationType)
public AssociationObjectBuilder setAssociationId(Integer value)
public AssociationObjectBuilder setAssociationType(AssociationType value)
public AssociationObjectBuilder setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone value)
public AssociationObjectBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AssociationObject>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<AssociationObject> augmentationValue)
public AssociationObjectBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AssociationObject>> augmentationType)
public AssociationObject build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<AssociationObject,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.