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