public class ParentRefsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ParentRefs>
ParentRefsBuilder
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:
ParentRefsBuilder createTarget(int fooXyzzy, int barBaz) {
return new ParentRefsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ParentRefsBuilder, 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 methodParentRefsBuilder
,
Builder
Constructor and Description |
---|
ParentRefsBuilder() |
ParentRefsBuilder(ParentRefs base) |
Modifier and Type | Method and Description |
---|---|
ParentRefs |
build() |
BigInteger |
getDatapathNodeIdentifier() |
List<NodeIdentifier> |
getNodeIdentifier() |
String |
getParentInterface() |
ParentRefsBuilder |
setDatapathNodeIdentifier(BigInteger value) |
ParentRefsBuilder |
setNodeIdentifier(List<NodeIdentifier> values) |
ParentRefsBuilder |
setParentInterface(String value) |
public ParentRefsBuilder()
public ParentRefsBuilder(ParentRefs base)
public BigInteger getDatapathNodeIdentifier()
public List<NodeIdentifier> getNodeIdentifier()
public String getParentInterface()
public ParentRefsBuilder setDatapathNodeIdentifier(BigInteger value)
public ParentRefsBuilder setNodeIdentifier(List<NodeIdentifier> values)
public ParentRefsBuilder setParentInterface(String value)
public ParentRefs build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ParentRefs,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.