Class CfnSessionProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnSessionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSessionProps>
- Enclosing interface:
CfnSessionProps
@Stability(Stable)
public static final class CfnSessionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSessionProps>
A builder for
CfnSessionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionKeyArn(String encryptionKeyArn) Sets the value ofCfnSessionProps.getEncryptionKeyArn()sessionMetadata(Map<String, String> sessionMetadata) Sets the value ofCfnSessionProps.getSessionMetadata()sessionMetadata(IResolvable sessionMetadata) Sets the value ofCfnSessionProps.getSessionMetadata()Sets the value ofCfnSessionProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionKeyArn
Sets the value ofCfnSessionProps.getEncryptionKeyArn()- Parameters:
encryptionKeyArn- The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.- Returns:
this
-
sessionMetadata
Sets the value ofCfnSessionProps.getSessionMetadata()- Parameters:
sessionMetadata- A map of key-value pairs containing attributes to be persisted across the session.- Returns:
this
-
sessionMetadata
@Stability(Stable) public CfnSessionProps.Builder sessionMetadata(Map<String, String> sessionMetadata) Sets the value ofCfnSessionProps.getSessionMetadata()- Parameters:
sessionMetadata- A map of key-value pairs containing attributes to be persisted across the session.- Returns:
this
-
tags
Sets the value ofCfnSessionProps.getTags()- Parameters:
tags- A list of tags associated with the session.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSessionProps>- Returns:
- a new instance of
CfnSessionProps - Throws:
NullPointerException- if any required attribute was not provided
-