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