Class CfnSessionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnSessionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSessionMixinProps>
- Enclosing interface:
CfnSessionMixinProps
@Stability(Stable)
public static final class CfnSessionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSessionMixinProps>
A builder for
CfnSessionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionKeyArn(String encryptionKeyArn) Sets the value ofCfnSessionMixinProps.getEncryptionKeyArn()sessionMetadata(Map<String, String> sessionMetadata) Sets the value ofCfnSessionMixinProps.getSessionMetadata()sessionMetadata(IResolvable sessionMetadata) Sets the value ofCfnSessionMixinProps.getSessionMetadata()Sets the value ofCfnSessionMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionKeyArn
Sets the value ofCfnSessionMixinProps.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 ofCfnSessionMixinProps.getSessionMetadata()- Parameters:
sessionMetadata- A map of key-value pairs containing attributes to be persisted across the session.- Returns:
this
-
sessionMetadata
@Stability(Stable) public CfnSessionMixinProps.Builder sessionMetadata(Map<String, String> sessionMetadata) Sets the value ofCfnSessionMixinProps.getSessionMetadata()- Parameters:
sessionMetadata- A map of key-value pairs containing attributes to be persisted across the session.- Returns:
this
-
tags
Sets the value ofCfnSessionMixinProps.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<CfnSessionMixinProps>- Returns:
- a new instance of
CfnSessionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-