Class ApiKeyCredentialProviderAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.ApiKeyCredentialProviderAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiKeyCredentialProviderAttributes>
- Enclosing interface:
ApiKeyCredentialProviderAttributes
@Stability(Stable)
public static final class ApiKeyCredentialProviderAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ApiKeyCredentialProviderAttributes>
A builder for
ApiKeyCredentialProviderAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKeySecretArn(String apiKeySecretArn) Sets the value ofApiKeyCredentialProviderAttributes.getApiKeySecretArn()build()Builds the configured instance.createdTime(String createdTime) Sets the value ofApiKeyCredentialProviderAttributes.getCreatedTime()credentialProviderArn(String credentialProviderArn) Sets the value ofApiKeyCredentialProviderAttributes.getCredentialProviderArn()lastUpdatedTime(String lastUpdatedTime) Sets the value ofApiKeyCredentialProviderAttributes.getLastUpdatedTime()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
credentialProviderArn
@Stability(Stable) public ApiKeyCredentialProviderAttributes.Builder credentialProviderArn(String credentialProviderArn) Sets the value ofApiKeyCredentialProviderAttributes.getCredentialProviderArn()- Parameters:
credentialProviderArn- ARN of the credential provider. This parameter is required.- Returns:
this
-
apiKeySecretArn
@Stability(Stable) public ApiKeyCredentialProviderAttributes.Builder apiKeySecretArn(String apiKeySecretArn) Sets the value ofApiKeyCredentialProviderAttributes.getApiKeySecretArn()- Parameters:
apiKeySecretArn- ARN of the Secrets Manager secret for the API key, if known.- Returns:
this
-
createdTime
@Stability(Stable) public ApiKeyCredentialProviderAttributes.Builder createdTime(String createdTime) Sets the value ofApiKeyCredentialProviderAttributes.getCreatedTime()- Parameters:
createdTime- Resource creation time.- Returns:
this
-
lastUpdatedTime
@Stability(Stable) public ApiKeyCredentialProviderAttributes.Builder lastUpdatedTime(String lastUpdatedTime) Sets the value ofApiKeyCredentialProviderAttributes.getLastUpdatedTime()- Parameters:
lastUpdatedTime- Resource last-updated time.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApiKeyCredentialProviderAttributes>- Returns:
- a new instance of
ApiKeyCredentialProviderAttributes - Throws:
NullPointerException- if any required attribute was not provided
-