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