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 Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableApiKeyResponse.Initializes the value for theclientIdattribute.clientSecret(String clientSecret) Initializes the value for theclientSecretattribute.Initializes the value for thecompanyIdattribute.description(String description) Initializes the optional valuedescriptionto description.description(Optional<String> description) Initializes the optional valuedescriptionto description.from(ApiKeyResponse instance) Fill a builder with attribute values from the providedApiKeyResponseinstance.Initializes the value for theidattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedApiKeyResponseinstance. 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:
thisbuilder for use in a chained invocation
-
companyId
Initializes the value for thecompanyIdattribute.- Parameters:
companyId- The value for companyId- Returns:
thisbuilder for use in a chained invocation
-
clientId
Initializes the value for theclientIdattribute.- Parameters:
clientId- The value for clientId- Returns:
thisbuilder for use in a chained invocation
-
id
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
clientSecret
@CanIgnoreReturnValue public final ImmutableApiKeyResponse.Builder clientSecret(String clientSecret) Initializes the value for theclientSecretattribute.- Parameters:
clientSecret- The value for clientSecret- Returns:
thisbuilder for use in a chained invocation
-
description
Initializes the optional valuedescriptionto description.- Parameters:
description- The value for description- Returns:
thisbuilder for chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableApiKeyResponse.Builder description(Optional<String> description) Initializes the optional valuedescriptionto description.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableApiKeyResponse.- Returns:
- An immutable instance of ApiKeyResponse
- Throws:
IllegalStateException- if any required attributes are missing
-