Interface SmithyBuilder<T>

Type Parameters:
T - the type that the builder will build.

public interface SmithyBuilder<T>
A mutable object that can be used to create an immutable object of type T.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates an immutable object that is created from the properties that have been set on the builder.
    static <T> T
    requiredState(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 Details

    • 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(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.