Class ImmutableUserCreationResponse.Builder

java.lang.Object
com.iland.core.web.rest.response.user.ImmutableUserCreationResponse.Builder
Enclosing class:
ImmutableUserCreationResponse

@Generated(from="UserCreationResponse", generator="Immutables") @NotThreadSafe public static final class ImmutableUserCreationResponse.Builder extends Object
Builds instances of type ImmutableUserCreationResponse. Initialize attributes and then invoke the build() method to create an immutable instance.

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

  • Method Details

    • from

      @CanIgnoreReturnValue public final ImmutableUserCreationResponse.Builder from(UserCreationResponse instance)
      Fill a builder with attribute values from the provided UserCreationResponse 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
    • username

      @CanIgnoreReturnValue public final ImmutableUserCreationResponse.Builder username(String username)
      Initializes the value for the username attribute.
      Parameters:
      username - The value for username
      Returns:
      this builder for use in a chained invocation
    • created

      @CanIgnoreReturnValue public final ImmutableUserCreationResponse.Builder created(boolean created)
      Initializes the value for the created attribute.
      Parameters:
      created - The value for created
      Returns:
      this builder for use in a chained invocation
    • error

      @CanIgnoreReturnValue public final ImmutableUserCreationResponse.Builder error(String error)
      Initializes the optional value error to error.
      Parameters:
      error - The value for error
      Returns:
      this builder for chained invocation
    • error

      @CanIgnoreReturnValue public final ImmutableUserCreationResponse.Builder error(Optional<String> error)
      Initializes the optional value error to error.
      Parameters:
      error - The value for error
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of UserCreationResponse
      Throws:
      IllegalStateException - if any required attributes are missing