Class TunnelEndPointInfoBuilder


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

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

    • Constructor Detail

      • TunnelEndPointInfoBuilder

        public TunnelEndPointInfoBuilder()
        Creates a builder for TunnelEndPointInfo instances.
         new TunnelEndPointInfoBuilder()
            .setSrcEndPointInfo(String) // required srcEndPointInfo
            .setDstEndPointInfo(String) // required dstEndPointInfo
            .build();
         
    • Method Detail

      • from

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

        @CanIgnoreReturnValue
        public final TunnelEndPointInfoBuilder setSrcEndPointInfo​(java.lang.String srcEndPointInfo)
        Initializes the value for the srcEndPointInfo attribute.
        Parameters:
        srcEndPointInfo - The value for srcEndPointInfo
        Returns:
        this builder for use in a chained invocation
      • setDstEndPointInfo

        @CanIgnoreReturnValue
        public final TunnelEndPointInfoBuilder setDstEndPointInfo​(java.lang.String dstEndPointInfo)
        Initializes the value for the dstEndPointInfo attribute.
        Parameters:
        dstEndPointInfo - The value for dstEndPointInfo
        Returns:
        this builder for use in a chained invocation
      • build

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