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