@NotThreadSafe public static final class ImmutableTestCredentials.Builder extends Object
ImmutableTestCredentials.
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.
| Modifier and Type | Method and Description |
|---|---|
ImmutableTestCredentials |
build()
Builds a new
ImmutableTestCredentials. |
ImmutableTestCredentials.Builder |
clientId(Optional<String> clientId)
Initializes the optional value
clientId to clientId. |
ImmutableTestCredentials.Builder |
clientId(String clientId)
Initializes the optional value
clientId to clientId. |
ImmutableTestCredentials.Builder |
clientSecret(Optional<String> clientSecret)
Initializes the optional value
clientSecret to clientSecret. |
ImmutableTestCredentials.Builder |
clientSecret(String clientSecret)
Initializes the optional value
clientSecret to clientSecret. |
ImmutableTestCredentials.Builder |
credentials(Credentials credentials)
Initializes the optional value
credentials to credentials. |
ImmutableTestCredentials.Builder |
credentials(Optional<? extends Credentials> credentials)
Initializes the optional value
credentials to credentials. |
ImmutableTestCredentials.Builder |
from(TestCredentials instance)
Fill a builder with attribute values from the provided
TestCredentials instance. |
@CanIgnoreReturnValue public final ImmutableTestCredentials.Builder from(TestCredentials instance)
TestCredentials instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTestCredentials.Builder credentials(Credentials credentials)
credentials to credentials.credentials - The value for credentialsthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableTestCredentials.Builder credentials(Optional<? extends Credentials> credentials)
credentials to credentials.credentials - The value for credentialsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTestCredentials.Builder clientId(String clientId)
clientId to clientId.clientId - The value for clientIdthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableTestCredentials.Builder clientId(Optional<String> clientId)
clientId to clientId.clientId - The value for clientIdthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTestCredentials.Builder clientSecret(String clientSecret)
clientSecret to clientSecret.clientSecret - The value for clientSecretthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableTestCredentials.Builder clientSecret(Optional<String> clientSecret)
clientSecret to clientSecret.clientSecret - The value for clientSecretthis builder for use in a chained invocationpublic ImmutableTestCredentials build()
ImmutableTestCredentials.IllegalStateException - if any required attributes are missingCopyright © 2021–2022 Amazon Web Services. All rights reserved.