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() |
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.rfc2385.cfg.rev160324.Rfc2385Key |
getPassword() |
SessionConfigBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionConfig>> augmentationType) |
SessionConfigBuilder |
setPassword(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.rfc2385.cfg.rev160324.Rfc2385Key value) |
public SessionConfigBuilder()
public SessionConfigBuilder(SessionConfig base)
public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.rfc2385.cfg.rev160324.Rfc2385Key getPassword()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionConfig>> E$$ augmentation(Class<E$$> augmentationType)
public SessionConfigBuilder setPassword(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.rfc2385.cfg.rev160324.Rfc2385Key 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.