public class InterfaceBfdStatusBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<InterfaceBfdStatus>
InterfaceBfdStatusBuilder
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:
InterfaceBfdStatusBuilder createTarget(int fooXyzzy, int barBaz) {
return new InterfaceBfdStatusBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of InterfaceBfdStatusBuilder, 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 methodInterfaceBfdStatusBuilder
,
Builder
Constructor and Description |
---|
InterfaceBfdStatusBuilder() |
InterfaceBfdStatusBuilder(InterfaceBfdStatus base) |
Modifier and Type | Method and Description |
---|---|
InterfaceBfdStatusBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceBfdStatus>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceBfdStatus> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceBfdStatus>> |
augmentation(Class<E$$> augmentationType) |
InterfaceBfdStatus |
build() |
String |
getBfdStatusKey() |
String |
getBfdStatusValue() |
InterfaceBfdStatusKey |
key() |
InterfaceBfdStatusBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceBfdStatus>> augmentationType) |
InterfaceBfdStatusBuilder |
setBfdStatusKey(String value) |
InterfaceBfdStatusBuilder |
setBfdStatusValue(String value) |
InterfaceBfdStatusBuilder |
withKey(InterfaceBfdStatusKey key) |
public InterfaceBfdStatusBuilder()
public InterfaceBfdStatusBuilder(InterfaceBfdStatus base)
public InterfaceBfdStatusKey key()
public String getBfdStatusKey()
public String getBfdStatusValue()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceBfdStatus>> E$$ augmentation(Class<E$$> augmentationType)
public InterfaceBfdStatusBuilder withKey(InterfaceBfdStatusKey key)
public InterfaceBfdStatusBuilder setBfdStatusKey(String value)
public InterfaceBfdStatusBuilder setBfdStatusValue(String value)
public InterfaceBfdStatusBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceBfdStatus>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceBfdStatus> augmentationValue)
public InterfaceBfdStatusBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceBfdStatus>> augmentationType)
public InterfaceBfdStatus build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<InterfaceBfdStatus,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.