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