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