Interface CreateApiKeyCredentialProviderResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreControlResponse.Builder,Buildable,CopyableBuilder<CreateApiKeyCredentialProviderResponse.Builder,,CreateApiKeyCredentialProviderResponse> SdkBuilder<CreateApiKeyCredentialProviderResponse.Builder,,CreateApiKeyCredentialProviderResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateApiKeyCredentialProviderResponse
-
Method Summary
Modifier and TypeMethodDescriptionapiKeySecretArn(Consumer<Secret.Builder> apiKeySecretArn) The Amazon Resource Name (ARN) of the secret containing the API key.apiKeySecretArn(Secret apiKeySecretArn) The Amazon Resource Name (ARN) of the secret containing the API key.apiKeySecretJsonKey(String apiKeySecretJsonKey) The JSON key used to extract the API key value from the Amazon Web Services Secrets Manager secret.apiKeySecretSource(String apiKeySecretSource) The source type of the API key secret.apiKeySecretSource(SecretSourceType apiKeySecretSource) The source type of the API key secret.credentialProviderArn(String credentialProviderArn) The Amazon Resource Name (ARN) of the created API key credential provider.The name of the created API key credential provider.Methods inherited from interface software.amazon.awssdk.services.bedrockagentcorecontrol.model.BedrockAgentCoreControlResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
apiKeySecretArn
The Amazon Resource Name (ARN) of the secret containing the API key.
- Parameters:
apiKeySecretArn- The Amazon Resource Name (ARN) of the secret containing the API key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiKeySecretArn
default CreateApiKeyCredentialProviderResponse.Builder apiKeySecretArn(Consumer<Secret.Builder> apiKeySecretArn) The Amazon Resource Name (ARN) of the secret containing the API key.
This is a convenience method that creates an instance of theSecret.Builderavoiding the need to create one manually viaSecret.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toapiKeySecretArn(Secret).- Parameters:
apiKeySecretArn- a consumer that will call methods onSecret.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
apiKeySecretJsonKey
The JSON key used to extract the API key value from the Amazon Web Services Secrets Manager secret.
- Parameters:
apiKeySecretJsonKey- The JSON key used to extract the API key value from the Amazon Web Services Secrets Manager secret.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiKeySecretSource
The source type of the API key secret. Either
MANAGEDif the secret is managed by the service, orEXTERNALif managed by the user in Amazon Web Services Secrets Manager.- Parameters:
apiKeySecretSource- The source type of the API key secret. EitherMANAGEDif the secret is managed by the service, orEXTERNALif managed by the user in Amazon Web Services Secrets Manager.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
apiKeySecretSource
CreateApiKeyCredentialProviderResponse.Builder apiKeySecretSource(SecretSourceType apiKeySecretSource) The source type of the API key secret. Either
MANAGEDif the secret is managed by the service, orEXTERNALif managed by the user in Amazon Web Services Secrets Manager.- Parameters:
apiKeySecretSource- The source type of the API key secret. EitherMANAGEDif the secret is managed by the service, orEXTERNALif managed by the user in Amazon Web Services Secrets Manager.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the created API key credential provider.
- Parameters:
name- The name of the created API key credential provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentialProviderArn
The Amazon Resource Name (ARN) of the created API key credential provider.
- Parameters:
credentialProviderArn- The Amazon Resource Name (ARN) of the created API key credential provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-