public class SessionCaseBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SessionCase>
SessionCaseBuilder 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:
SessionCaseBuilder createTarget(int fooXyzzy, int barBaz) {
return new SessionCaseBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SessionCaseBuilder, 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 methodSessionCaseBuilder,
Builder| Constructor and Description |
|---|
SessionCaseBuilder() |
SessionCaseBuilder(SessionCase base) |
| Modifier and Type | Method and Description |
|---|---|
SessionCaseBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionCase>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<SessionCase> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionCase>> |
augmentation(Class<E$$> augmentationType) |
SessionCase |
build() |
Session |
getSession() |
SessionCaseBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionCase>> augmentationType) |
SessionCaseBuilder |
setSession(Session value) |
public SessionCaseBuilder()
public SessionCaseBuilder(SessionCase base)
public Session getSession()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionCase>> E$$ augmentation(Class<E$$> augmentationType)
public SessionCaseBuilder setSession(Session value)
public SessionCaseBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionCase>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<SessionCase> augmentationValue)
public SessionCaseBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SessionCase>> augmentationType)
public SessionCase build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SessionCase,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.