Class TunnelStateInfoBuilder


  • @Generated("org.immutables.processor.ProxyProcessor")
    public final class TunnelStateInfoBuilder
    extends java.lang.Object
    Builds instances of type TunnelStateInfo. Initialize attributes and then invoke the build() method to create an immutable instance.

    TunnelStateInfoBuilder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Constructor Detail

      • TunnelStateInfoBuilder

        public TunnelStateInfoBuilder()
        Creates a builder for TunnelStateInfo instances.
         new TunnelStateInfoBuilder()
            .setNodeConnectorInfo(org.opendaylight.genius.itm.utils.NodeConnectorInfo) // required nodeConnectorInfo
            .setTunnelEndPointInfo(org.opendaylight.genius.itm.utils.@org.eclipse.jdt.annotation.Nullable TunnelEndPointInfo | null) // nullable tunnelEndPointInfo
            .setDpnTepInterfaceInfo(org.opendaylight.genius.itm.utils.@org.eclipse.jdt.annotation.Nullable DpnTepInterfaceInfo | null) // nullable dpnTepInterfaceInfo
            .setSrcDpnTepsInfo(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.op.rev160406.dpn.endpoints.@org.eclipse.jdt.annotation.Nullable DPNTEPsInfo | null) // nullable srcDpnTepsInfo
            .setDstDpnTepsInfo(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.op.rev160406.dpn.endpoints.@org.eclipse.jdt.annotation.Nullable DPNTEPsInfo | null) // nullable dstDpnTepsInfo
            .build();
         
    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final TunnelStateInfoBuilder from​(TunnelStateInfo instance)
        Fill a builder with attribute values from the provided TunnelStateInfo 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
      • setNodeConnectorInfo

        @CanIgnoreReturnValue
        public final TunnelStateInfoBuilder setNodeConnectorInfo​(NodeConnectorInfo nodeConnectorInfo)
        Initializes the value for the nodeConnectorInfo attribute.
        Parameters:
        nodeConnectorInfo - The value for nodeConnectorInfo
        Returns:
        this builder for use in a chained invocation
      • setTunnelEndPointInfo

        @CanIgnoreReturnValue
        public final TunnelStateInfoBuilder setTunnelEndPointInfo​(@Nullable TunnelEndPointInfo tunnelEndPointInfo)
        Initializes the value for the tunnelEndPointInfo attribute.
        Parameters:
        tunnelEndPointInfo - The value for tunnelEndPointInfo (can be null)
        Returns:
        this builder for use in a chained invocation
      • setDpnTepInterfaceInfo

        @CanIgnoreReturnValue
        public final TunnelStateInfoBuilder setDpnTepInterfaceInfo​(@Nullable DpnTepInterfaceInfo dpnTepInterfaceInfo)
        Initializes the value for the dpnTepInterfaceInfo attribute.
        Parameters:
        dpnTepInterfaceInfo - The value for dpnTepInterfaceInfo (can be null)
        Returns:
        this builder for use in a chained invocation
      • setSrcDpnTepsInfo

        @CanIgnoreReturnValue
        public final TunnelStateInfoBuilder setSrcDpnTepsInfo​(@Nullable DPNTEPsInfo srcDpnTepsInfo)
        Initializes the value for the srcDpnTepsInfo attribute.
        Parameters:
        srcDpnTepsInfo - The value for srcDpnTepsInfo (can be null)
        Returns:
        this builder for use in a chained invocation
      • setDstDpnTepsInfo

        @CanIgnoreReturnValue
        public final TunnelStateInfoBuilder setDstDpnTepsInfo​(@Nullable DPNTEPsInfo dstDpnTepsInfo)
        Initializes the value for the dstDpnTepsInfo attribute.
        Parameters:
        dstDpnTepsInfo - The value for dstDpnTepsInfo (can be null)
        Returns:
        this builder for use in a chained invocation
      • build

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