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