Class CfnApiKeyCredentialProviderProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnApiKeyCredentialProviderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiKeyCredentialProviderProps>
- Enclosing interface:
CfnApiKeyCredentialProviderProps
@Stability(Stable)
public static final class CfnApiKeyCredentialProviderProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiKeyCredentialProviderProps>
A builder for
CfnApiKeyCredentialProviderProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnApiKeyCredentialProviderProps.getApiKey()build()Builds the configured instance.Sets the value ofCfnApiKeyCredentialProviderProps.getName()Sets the value ofCfnApiKeyCredentialProviderProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnApiKeyCredentialProviderProps.getName()- Parameters:
name- The name of the API key credential provider. This parameter is required.- Returns:
this
-
apiKey
Sets the value ofCfnApiKeyCredentialProviderProps.getApiKey()- Parameters:
apiKey- The API key to use for authentication.- Returns:
this
-
tags
@Stability(Stable) public CfnApiKeyCredentialProviderProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnApiKeyCredentialProviderProps.getTags()- Parameters:
tags- Tags to assign to the API key credential provider.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApiKeyCredentialProviderProps>- Returns:
- a new instance of
CfnApiKeyCredentialProviderProps - Throws:
NullPointerException- if any required attribute was not provided
-