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