public class ConnectionInfoBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ConnectionInfo>
ConnectionInfoBuilder
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:
ConnectionInfoBuilder createTarget(int fooXyzzy, int barBaz) {
return new ConnectionInfoBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ConnectionInfoBuilder, 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 methodConnectionInfoBuilder
,
Builder
Constructor and Description |
---|
ConnectionInfoBuilder() |
ConnectionInfoBuilder(ConnectionInfo base) |
ConnectionInfoBuilder(HwvtepConnectionInfoAttributes arg) |
Modifier and Type | Method and Description |
---|---|
ConnectionInfoBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ConnectionInfo>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<ConnectionInfo> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ConnectionInfo>> |
augmentation(Class<E$$> augmentationType) |
ConnectionInfo |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getLocalIp() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber |
getLocalPort() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getRemoteIp() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber |
getRemotePort() |
ConnectionInfoBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ConnectionInfo>> augmentationType) |
ConnectionInfoBuilder |
setLocalIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
ConnectionInfoBuilder |
setLocalPort(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber value) |
ConnectionInfoBuilder |
setRemoteIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
ConnectionInfoBuilder |
setRemotePort(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber value) |
public ConnectionInfoBuilder()
public ConnectionInfoBuilder(HwvtepConnectionInfoAttributes arg)
public ConnectionInfoBuilder(ConnectionInfo base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getLocalIp()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getLocalPort()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getRemoteIp()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getRemotePort()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ConnectionInfo>> E$$ augmentation(Class<E$$> augmentationType)
public ConnectionInfoBuilder setLocalIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public ConnectionInfoBuilder setLocalPort(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber value)
public ConnectionInfoBuilder setRemoteIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public ConnectionInfoBuilder setRemotePort(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber value)
public ConnectionInfoBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ConnectionInfo>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<ConnectionInfo> augmentationValue)
public ConnectionInfoBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ConnectionInfo>> augmentationType)
public ConnectionInfo build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ConnectionInfo,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.