Class NodeConnectorInfoBuilder


  • @Generated("org.immutables.processor.ProxyProcessor")
    public final class NodeConnectorInfoBuilder
    extends java.lang.Object
    Builds instances of type NodeConnectorInfo. Initialize attributes and then invoke the build() 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 Detail

      • NodeConnectorInfoBuilder

        public NodeConnectorInfoBuilder()
        Creates a builder for NodeConnectorInfo 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) // required nodeConnector
            .build();
         
    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final NodeConnectorInfoBuilder from​(NodeConnectorInfo instance)
        Fill a builder with attribute values from the provided NodeConnectorInfo 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 the nodeConnectorId 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 the nodeConnector attribute.
        Parameters:
        nodeConnector - The value for nodeConnector
        Returns:
        this builder for use in a chained invocation
      • build

        public NodeConnectorInfo build()
        Builds a new NodeConnectorInfo.
        Returns:
        An immutable instance of NodeConnectorInfo
        Throws:
        java.lang.IllegalStateException - if any required attributes are missing