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