public class SupportedTunnelsParametersBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SupportedTunnelsParameters>
SupportedTunnelsParametersBuilder
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:
SupportedTunnelsParametersBuilder createTarget(int fooXyzzy, int barBaz) {
return new SupportedTunnelsParametersBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SupportedTunnelsParametersBuilder, 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 methodSupportedTunnelsParametersBuilder
,
Builder
Constructor and Description |
---|
SupportedTunnelsParametersBuilder() |
SupportedTunnelsParametersBuilder(SupportedTunnelsParameters base) |
Modifier and Type | Method and Description |
---|---|
SupportedTunnelsParameters |
build() |
List<IpPortLocatorEntry> |
getIpPortLocatorEntry() |
SupportedTunnelsParametersBuilder |
setIpPortLocatorEntry(List<IpPortLocatorEntry> values) |
public SupportedTunnelsParametersBuilder()
public SupportedTunnelsParametersBuilder(SupportedTunnelsParameters base)
public List<IpPortLocatorEntry> getIpPortLocatorEntry()
public SupportedTunnelsParametersBuilder setIpPortLocatorEntry(List<IpPortLocatorEntry> values)
public SupportedTunnelsParameters build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SupportedTunnelsParameters,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.