@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTestCredentials extends Object implements TestCredentials
TestCredentials.
Use the builder to create immutable instances:
ImmutableTestCredentials.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTestCredentials.Builder
Builds instances of type
ImmutableTestCredentials. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableTestCredentials.Builder |
builder()
Creates a builder for
ImmutableTestCredentials. |
Optional<String> |
clientId() |
Optional<String> |
clientSecret() |
static ImmutableTestCredentials |
copyOf(TestCredentials instance)
Creates an immutable copy of a
TestCredentials value. |
Optional<Credentials> |
credentials() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTestCredentials that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
credentials, clientId, clientSecret. |
String |
toString()
Prints the immutable value
TestCredentials with attribute values. |
ImmutableTestCredentials |
withClientId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
clientId attribute. |
ImmutableTestCredentials |
withClientId(String value)
Copy the current immutable object by setting a present value for the optional
clientId attribute. |
ImmutableTestCredentials |
withClientSecret(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
clientSecret attribute. |
ImmutableTestCredentials |
withClientSecret(String value)
Copy the current immutable object by setting a present value for the optional
clientSecret attribute. |
ImmutableTestCredentials |
withCredentials(Credentials value)
Copy the current immutable object by setting a present value for the optional
credentials attribute. |
ImmutableTestCredentials |
withCredentials(Optional<? extends Credentials> optional)
Copy the current immutable object by setting an optional value for the
credentials attribute. |
public Optional<Credentials> credentials()
credentials in interface TestCredentialscredentials attributepublic Optional<String> clientId()
clientId in interface TestCredentialsclientId attributepublic Optional<String> clientSecret()
clientSecret in interface TestCredentialsclientSecret attributepublic final ImmutableTestCredentials withCredentials(Credentials value)
credentials attribute.value - The value for credentialsthis objectpublic final ImmutableTestCredentials withCredentials(Optional<? extends Credentials> optional)
credentials attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for credentialsthis objectpublic final ImmutableTestCredentials withClientId(String value)
clientId attribute.value - The value for clientIdthis objectpublic final ImmutableTestCredentials withClientId(Optional<String> optional)
clientId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for clientIdthis objectpublic final ImmutableTestCredentials withClientSecret(String value)
clientSecret attribute.value - The value for clientSecretthis objectpublic final ImmutableTestCredentials withClientSecret(Optional<String> optional)
clientSecret attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for clientSecretthis objectpublic boolean equals(@Nullable Object another)
ImmutableTestCredentials that have equal attribute values.public int hashCode()
credentials, clientId, clientSecret.public String toString()
TestCredentials with attribute values.public static ImmutableTestCredentials copyOf(TestCredentials instance)
TestCredentials 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 ImmutableTestCredentials.Builder builder()
ImmutableTestCredentials.
ImmutableTestCredentials.builder()
.credentials(com.amazonaws.appflow.custom.connector.model.credentials.Credentials) // optional credentials
.clientId(String) // optional clientId
.clientSecret(String) // optional clientSecret
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.