T
- the type that the builder will build.public interface SmithyBuilder<T>
Modifier and Type | Method and 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.
|
T build()
static <T> T requiredState(java.lang.String method, T value)
T
- Type of value being checked.method
- Method that needs to be called to set this value.value
- Value to check.