public class KeepaliveBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Keepalive>
KeepaliveBuilder 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:
KeepaliveBuilder createTarget(int fooXyzzy, int barBaz) {
return new KeepaliveBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of KeepaliveBuilder, 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 methodKeepaliveBuilder,
Builder| Constructor and Description |
|---|
KeepaliveBuilder() |
KeepaliveBuilder(Keepalive base) |
KeepaliveBuilder(KeepaliveMessage arg) |
KeepaliveBuilder(Message arg) |
| Modifier and Type | Method and Description |
|---|---|
KeepaliveBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Keepalive>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Keepalive> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Keepalive>> |
augmentation(Class<E$$> augmentationType) |
Keepalive |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
KeepaliveMessage |
getKeepaliveMessage() |
KeepaliveBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Keepalive>> augmentationType) |
KeepaliveBuilder |
setKeepaliveMessage(KeepaliveMessage value) |
public KeepaliveBuilder()
public KeepaliveBuilder(KeepaliveMessage arg)
public KeepaliveBuilder(Message arg)
public KeepaliveBuilder(Keepalive base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic KeepaliveMessage getKeepaliveMessage()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Keepalive>> E$$ augmentation(Class<E$$> augmentationType)
public KeepaliveBuilder setKeepaliveMessage(KeepaliveMessage value)
public KeepaliveBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Keepalive>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Keepalive> augmentationValue)
public KeepaliveBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Keepalive>> augmentationType)
public Keepalive build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Keepalive,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.