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