Class NodeConnectorInfoBuilder
- java.lang.Object
-
- org.opendaylight.genius.itm.utils.NodeConnectorInfoBuilder
-
@Generated("org.immutables.processor.ProxyProcessor") public final class NodeConnectorInfoBuilder extends java.lang.Object
Builds instances of typeNodeConnectorInfo
. Initialize attributes and then invoke thebuild()
method to create an immutable instance.NodeConnectorInfoBuilder
is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Constructor Summary
Constructors Constructor Description NodeConnectorInfoBuilder()
Creates a builder forNodeConnectorInfo
instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeConnectorInfo
build()
Builds a newNodeConnectorInfo
.NodeConnectorInfoBuilder
from(NodeConnectorInfo instance)
Fill a builder with attribute values from the providedNodeConnectorInfo
instance.NodeConnectorInfoBuilder
setNodeConnector(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeConnector nodeConnector)
Initializes the value for thenodeConnector
attribute.NodeConnectorInfoBuilder
setNodeConnectorId(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeConnector> nodeConnectorId)
Initializes the value for thenodeConnectorId
attribute.
-
-
-
Constructor Detail
-
NodeConnectorInfoBuilder
public NodeConnectorInfoBuilder()
Creates a builder forNodeConnectorInfo
instances.new NodeConnectorInfoBuilder() .setNodeConnectorId(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeConnector>) // required
nodeConnectorId
.setNodeConnector(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeConnector) // requirednodeConnector
.build();
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final NodeConnectorInfoBuilder from(NodeConnectorInfo instance)
Fill a builder with attribute values from the providedNodeConnectorInfo
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setNodeConnectorId
@CanIgnoreReturnValue public final NodeConnectorInfoBuilder setNodeConnectorId(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeConnector> nodeConnectorId)
Initializes the value for thenodeConnectorId
attribute.- Parameters:
nodeConnectorId
- The value for nodeConnectorId- Returns:
this
builder for use in a chained invocation
-
setNodeConnector
@CanIgnoreReturnValue public final NodeConnectorInfoBuilder setNodeConnector(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeConnector nodeConnector)
Initializes the value for thenodeConnector
attribute.- Parameters:
nodeConnector
- The value for nodeConnector- Returns:
this
builder for use in a chained invocation
-
build
public NodeConnectorInfo build()
Builds a newNodeConnectorInfo
.- Returns:
- An immutable instance of NodeConnectorInfo
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-