Class MemoryAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.MemoryAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MemoryAttributes>
- Enclosing interface:
MemoryAttributes
@Stability(Stable)
public static final class MemoryAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<MemoryAttributes>
A builder for
MemoryAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofMemoryAttributes.getCreatedAt()Sets the value ofMemoryAttributes.getKmsKeyArn()Sets the value ofMemoryAttributes.getMemoryArn()Sets the value ofMemoryAttributes.getRoleArn()Sets the value ofMemoryAttributes.getStatus()Sets the value ofMemoryAttributes.getUpdatedAt()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
memoryArn
Sets the value ofMemoryAttributes.getMemoryArn()- Parameters:
memoryArn- The ARN of the memory. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofMemoryAttributes.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role associated to the memory. This parameter is required.- Returns:
this
-
createdAt
Sets the value ofMemoryAttributes.getCreatedAt()- Parameters:
createdAt- The created timestamp of the memory.- Returns:
this
-
kmsKeyArn
Sets the value ofMemoryAttributes.getKmsKeyArn()- Parameters:
kmsKeyArn- Optional KMS encryption key associated with this memory.- Returns:
this
-
status
Sets the value ofMemoryAttributes.getStatus()- Parameters:
status- The status of the memory.- Returns:
this
-
updatedAt
Sets the value ofMemoryAttributes.getUpdatedAt()- Parameters:
updatedAt- When this memory was last updated.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MemoryAttributes>- Returns:
- a new instance of
MemoryAttributes - Throws:
NullPointerException- if any required attribute was not provided
-