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