public class SessionConfigBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SessionConfig>
SessionConfigBuilder 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:
SessionConfigBuilder createTarget(int fooXyzzy, int barBaz) {
return new SessionConfigBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SessionConfigBuilder, 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 methodSessionConfigBuilder,
Builder| Constructor and Description |
|---|
SessionConfigBuilder() |
SessionConfigBuilder(SessionConfig base) |
| Modifier and Type | Method and Description |
|---|---|
SessionConfigBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionConfig>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<SessionConfig> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionConfig>> |
augmentation(Class<E$$> augmentationType) |
SessionConfig |
build() |
Integer |
getDeadTimerValue() |
Integer |
getKeepAliveTimerValue() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getListenAddress() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber |
getListenPort() |
Short |
getRpcTimeout() |
SessionConfigBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionConfig>> augmentationType) |
SessionConfigBuilder |
setDeadTimerValue(Integer value) |
SessionConfigBuilder |
setKeepAliveTimerValue(Integer value) |
SessionConfigBuilder |
setListenAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
SessionConfigBuilder |
setListenPort(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber value) |
SessionConfigBuilder |
setRpcTimeout(Short value) |
public SessionConfigBuilder()
public SessionConfigBuilder(SessionConfig base)
public Integer getDeadTimerValue()
public Integer getKeepAliveTimerValue()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getListenAddress()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getListenPort()
public Short getRpcTimeout()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionConfig>> E$$ augmentation(Class<E$$> augmentationType)
public SessionConfigBuilder setDeadTimerValue(Integer value)
public SessionConfigBuilder setKeepAliveTimerValue(Integer value)
public SessionConfigBuilder setListenAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public SessionConfigBuilder setListenPort(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber value)
public SessionConfigBuilder setRpcTimeout(Short value)
public SessionConfigBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionConfig>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<SessionConfig> augmentationValue)
public SessionConfigBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionConfig>> augmentationType)
public SessionConfig build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SessionConfig,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.