public class AddL2GwMlagDeviceInputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<AddL2GwMlagDeviceInput>
AddL2GwMlagDeviceInputBuilder
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:
AddL2GwMlagDeviceInputBuilder createTarget(int fooXyzzy, int barBaz) {
return new AddL2GwMlagDeviceInputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of AddL2GwMlagDeviceInputBuilder, 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 methodAddL2GwMlagDeviceInputBuilder
,
Builder
Constructor and Description |
---|
AddL2GwMlagDeviceInputBuilder() |
AddL2GwMlagDeviceInputBuilder(AddL2GwMlagDeviceInput base) |
Modifier and Type | Method and Description |
---|---|
AddL2GwMlagDeviceInputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AddL2GwMlagDeviceInput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<AddL2GwMlagDeviceInput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<AddL2GwMlagDeviceInput>> |
augmentation(Class<E$$> augmentationType) |
AddL2GwMlagDeviceInput |
build() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getIpAddress() |
List<String> |
getNodeId() |
String |
getTopologyId() |
AddL2GwMlagDeviceInputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AddL2GwMlagDeviceInput>> augmentationType) |
AddL2GwMlagDeviceInputBuilder |
setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
AddL2GwMlagDeviceInputBuilder |
setNodeId(List<String> values) |
AddL2GwMlagDeviceInputBuilder |
setTopologyId(String value) |
public AddL2GwMlagDeviceInputBuilder()
public AddL2GwMlagDeviceInputBuilder(AddL2GwMlagDeviceInput base)
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpAddress()
public String getTopologyId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<AddL2GwMlagDeviceInput>> E$$ augmentation(Class<E$$> augmentationType)
public AddL2GwMlagDeviceInputBuilder setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public AddL2GwMlagDeviceInputBuilder setNodeId(List<String> values)
public AddL2GwMlagDeviceInputBuilder setTopologyId(String value)
public AddL2GwMlagDeviceInputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AddL2GwMlagDeviceInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<AddL2GwMlagDeviceInput> augmentationValue)
public AddL2GwMlagDeviceInputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AddL2GwMlagDeviceInput>> augmentationType)
public AddL2GwMlagDeviceInput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<AddL2GwMlagDeviceInput,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.