@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableCredentials extends Object implements Credentials
Credentials.
Use the builder to create immutable instances:
ImmutableCredentials.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCredentials.Builder
Builds instances of type
ImmutableCredentials. |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationType |
authenticationType()
Authentication type associated with the credentials stored in AWS Secret Manager.
|
static ImmutableCredentials.Builder |
builder()
Creates a builder for
ImmutableCredentials. |
static ImmutableCredentials |
copyOf(Credentials instance)
Creates an immutable copy of a
Credentials value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCredentials that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
secretArn, authenticationType. |
String |
secretArn()
ARN of the secret (authentication credentials) stored in AWS Secret Manager.
|
String |
toString()
Prints the immutable value
Credentials with attribute values. |
ImmutableCredentials |
withAuthenticationType(AuthenticationType value)
Copy the current immutable object by setting a value for the
authenticationType attribute. |
ImmutableCredentials |
withSecretArn(String value)
Copy the current immutable object by setting a value for the
secretArn attribute. |
@Nullable public String secretArn()
secretArn in interface Credentials@Nullable public AuthenticationType authenticationType()
authenticationType in interface Credentialspublic final ImmutableCredentials withSecretArn(@Nullable String value)
secretArn attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for secretArn (can be null)this objectpublic final ImmutableCredentials withAuthenticationType(@Nullable AuthenticationType value)
authenticationType attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for authenticationType (can be null)this objectpublic boolean equals(@Nullable Object another)
ImmutableCredentials that have equal attribute values.public int hashCode()
secretArn, authenticationType.public String toString()
Credentials with attribute values.public static ImmutableCredentials copyOf(Credentials instance)
Credentials value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableCredentials.Builder builder()
ImmutableCredentials.
ImmutableCredentials.builder()
.secretArn(String | null) // nullable secretArn
.authenticationType(com.amazonaws.appflow.custom.connector.model.credentials.AuthenticationType | null) // nullable authenticationType
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.