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