@NotThreadSafe public static final class ImmutableCredentials.Builder extends Object
ImmutableCredentials.
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 |
|---|---|
ImmutableCredentials.Builder |
authenticationType(AuthenticationType authenticationType)
Initializes the value for the
authenticationType attribute. |
ImmutableCredentials |
build()
Builds a new
ImmutableCredentials. |
ImmutableCredentials.Builder |
from(Credentials instance)
Fill a builder with attribute values from the provided
Credentials instance. |
ImmutableCredentials.Builder |
secretArn(String secretArn)
Initializes the value for the
secretArn attribute. |
public final ImmutableCredentials.Builder from(Credentials instance)
Credentials 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 invocationpublic final ImmutableCredentials.Builder secretArn(@Nullable String secretArn)
secretArn attribute.secretArn - The value for secretArn (can be null)this builder for use in a chained invocationpublic final ImmutableCredentials.Builder authenticationType(@Nullable AuthenticationType authenticationType)
authenticationType attribute.authenticationType - The value for authenticationType (can be null)this builder for use in a chained invocationpublic ImmutableCredentials build()
ImmutableCredentials.IllegalStateException - if any required attributes are missingCopyright © 2021–2022 Amazon Web Services. All rights reserved.