Interface ApiKeySecretInput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ApiKeySecretInput.Builder,,ApiKeySecretInput> SdkBuilder<ApiKeySecretInput.Builder,,ApiKeySecretInput> SdkPojo
- Enclosing class:
ApiKeySecretInput
@Mutable
@NotThreadSafe
public static interface ApiKeySecretInput.Builder
extends SdkPojo, CopyableBuilder<ApiKeySecretInput.Builder,ApiKeySecretInput>
-
Method Summary
Modifier and TypeMethodDescriptionThe API key value.default ApiKeySecretInput.BuilderapiKeySecretReference(Consumer<SecretReference.Builder> apiKeySecretReference) An AWS Secrets Manager secret you own that holds the API key.apiKeySecretReference(SecretReference apiKeySecretReference) An AWS Secrets Manager secret you own that holds the API key.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
apiKey
The API key value. The service stores it in an AWS Secrets Manager secret that the service owns. Write-only: reads return only the ARN of the secret holding it.
- Parameters:
apiKey- The API key value. The service stores it in an AWS Secrets Manager secret that the service owns. Write-only: reads return only the ARN of the secret holding it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiKeySecretReference
An AWS Secrets Manager secret you own that holds the API key. The service reads the key from your secret rather than storing a copy of its own.
- Parameters:
apiKeySecretReference- An AWS Secrets Manager secret you own that holds the API key. The service reads the key from your secret rather than storing a copy of its own.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiKeySecretReference
default ApiKeySecretInput.Builder apiKeySecretReference(Consumer<SecretReference.Builder> apiKeySecretReference) An AWS Secrets Manager secret you own that holds the API key. The service reads the key from your secret rather than storing a copy of its own.
This is a convenience method that creates an instance of theSecretReference.Builderavoiding the need to create one manually viaSecretReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toapiKeySecretReference(SecretReference).- Parameters:
apiKeySecretReference- a consumer that will call methods onSecretReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-