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