Interface SmithyBuilder<T>

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T build()
      Creates an immutable object that is created from the properties that have been set on the builder.
      static <T> T requiredState​(java.lang.String method, T value)
      Convenience method for ensuring that a value was set on a builder, and if not, throws an IllegalStateException with a useful message.
    • Method Detail

      • build

        T build()
        Creates an immutable object that is created from the properties that have been set on the builder.
        Returns:
        an instance of T
      • requiredState

        static <T> T requiredState​(java.lang.String method,
                                   T value)
        Convenience method for ensuring that a value was set on a builder, and if not, throws an IllegalStateException with a useful message.
        Type Parameters:
        T - Type of value being checked.
        Parameters:
        method - Method that needs to be called to set this value.
        value - Value to check.
        Returns:
        Returns the value.