@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableApiKeyCredentials extends Object implements ApiKeyCredentials
ApiKeyCredentials.
Use the builder to create immutable instances:
ImmutableApiKeyCredentials.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableApiKeyCredentials.Builder
Builds instances of type
ImmutableApiKeyCredentials. |
| Modifier and Type | Method and Description |
|---|---|
String |
apiKey()
API key.
|
static ImmutableApiKeyCredentials.Builder |
builder()
Creates a builder for
ImmutableApiKeyCredentials. |
static ImmutableApiKeyCredentials |
copyOf(ApiKeyCredentials instance)
Creates an immutable copy of a
ApiKeyCredentials value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableApiKeyCredentials that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
apiKey, secretKey. |
String |
secretKey()
Secret key.
|
String |
toString()
Prints the immutable value
ApiKeyCredentials with attribute values. |
ImmutableApiKeyCredentials |
withApiKey(String value)
Copy the current immutable object by setting a value for the
apiKey attribute. |
ImmutableApiKeyCredentials |
withSecretKey(String value)
Copy the current immutable object by setting a value for the
secretKey attribute. |
public String apiKey()
apiKey in interface ApiKeyCredentials@Nullable public String secretKey()
secretKey in interface ApiKeyCredentialspublic final ImmutableApiKeyCredentials withApiKey(String value)
apiKey attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for apiKeythis objectpublic final ImmutableApiKeyCredentials withSecretKey(@Nullable String value)
secretKey attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for secretKey (can be null)this objectpublic boolean equals(@Nullable Object another)
ImmutableApiKeyCredentials that have equal attribute values.public int hashCode()
apiKey, secretKey.public String toString()
ApiKeyCredentials with attribute values.public static ImmutableApiKeyCredentials copyOf(ApiKeyCredentials instance)
ApiKeyCredentials 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 ImmutableApiKeyCredentials.Builder builder()
ImmutableApiKeyCredentials.
ImmutableApiKeyCredentials.builder()
.apiKey(String) // required apiKey
.secretKey(String | null) // nullable secretKey
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.