public class LocalPrefBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<LocalPref>
LocalPrefBuilder 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:
LocalPrefBuilder createTarget(int fooXyzzy, int barBaz) {
return new LocalPrefBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of LocalPrefBuilder, 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 methodLocalPrefBuilder,
Builder| Constructor and Description |
|---|
LocalPrefBuilder() |
LocalPrefBuilder(LocalPref base) |
LocalPrefBuilder(Preferences arg) |
| Modifier and Type | Method and Description |
|---|---|
LocalPrefBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LocalPref>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<LocalPref> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<LocalPref>> |
augmentation(Class<E$$> augmentationType) |
LocalPref |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Short |
getDeadtimer() |
String |
getIpAddress() |
Short |
getKeepalive() |
Integer |
getSessionId() |
LocalPrefBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LocalPref>> augmentationType) |
LocalPrefBuilder |
setDeadtimer(Short value) |
LocalPrefBuilder |
setIpAddress(String value) |
LocalPrefBuilder |
setKeepalive(Short value) |
LocalPrefBuilder |
setSessionId(Integer value) |
public LocalPrefBuilder()
public LocalPrefBuilder(Preferences arg)
public LocalPrefBuilder(LocalPref base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Short getDeadtimer()
public String getIpAddress()
public Short getKeepalive()
public Integer getSessionId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<LocalPref>> E$$ augmentation(Class<E$$> augmentationType)
public LocalPrefBuilder setDeadtimer(Short value)
public LocalPrefBuilder setIpAddress(String value)
public LocalPrefBuilder setKeepalive(Short value)
public LocalPrefBuilder setSessionId(Integer value)
public LocalPrefBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LocalPref>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<LocalPref> augmentationValue)
public LocalPrefBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LocalPref>> augmentationType)
public LocalPref build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<LocalPref,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.