Class ImmutableApiKeyResponse.Builder

java.lang.Object
com.iland.core.web.rest.response.iam.ImmutableApiKeyResponse.Builder
Enclosing class:
ImmutableApiKeyResponse

@Generated(from="ApiKeyResponse", generator="Immutables") @NotThreadSafe public static final class ImmutableApiKeyResponse.Builder extends Object
Builds instances of type ImmutableApiKeyResponse. 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 ImmutableApiKeyResponse.Builder from(ApiKeyResponse instance)
      Fill a builder with attribute values from the provided ApiKeyResponse 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
    • companyId

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

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

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

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

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

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

      public ImmutableApiKeyResponse build()
      Returns:
      An immutable instance of ApiKeyResponse
      Throws:
      IllegalStateException - if any required attributes are missing