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