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