public class IfStackedVlanBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<IfStackedVlan>
IfStackedVlanBuilder
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:
IfStackedVlanBuilder createTarget(int fooXyzzy, int barBaz) {
return new IfStackedVlanBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of IfStackedVlanBuilder, 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 methodIfStackedVlanBuilder
,
Builder
Constructor and Description |
---|
IfStackedVlanBuilder() |
IfStackedVlanBuilder(IfStackedVlan base) |
Modifier and Type | Method and Description |
---|---|
IfStackedVlan |
build() |
Integer |
getStackedVlanId() |
IfStackedVlanBuilder |
setStackedVlanId(Integer value) |
public IfStackedVlanBuilder()
public IfStackedVlanBuilder(IfStackedVlan base)
public Integer getStackedVlanId()
public IfStackedVlanBuilder setStackedVlanId(Integer value)
public IfStackedVlan build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<IfStackedVlan,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.