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