public class IfL2vlanBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<IfL2vlan>
IfL2vlanBuilder
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:
IfL2vlanBuilder createTarget(int fooXyzzy, int barBaz) {
return new IfL2vlanBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of IfL2vlanBuilder, 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 methodIfL2vlanBuilder
,
Builder
Constructor and Description |
---|
IfL2vlanBuilder() |
IfL2vlanBuilder(IfL2vlan base) |
Modifier and Type | Method and Description |
---|---|
IfL2vlan |
build() |
IfL2vlan.L2vlanMode |
getL2vlanMode() |
org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId |
getVlanId() |
IfL2vlanBuilder |
setL2vlanMode(IfL2vlan.L2vlanMode value) |
IfL2vlanBuilder |
setVlanId(org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId value) |
public IfL2vlanBuilder()
public IfL2vlanBuilder(IfL2vlan base)
public IfL2vlan.L2vlanMode getL2vlanMode()
public org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId getVlanId()
public IfL2vlanBuilder setL2vlanMode(IfL2vlan.L2vlanMode value)
public IfL2vlanBuilder setVlanId(org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId value)
public IfL2vlan build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<IfL2vlan,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.