Class CfnMemory.NamespaceKeyEntryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnMemory.NamespaceKeyEntryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMemory.NamespaceKeyEntryProperty>
- Enclosing interface:
CfnMemory.NamespaceKeyEntryProperty
@Stability(Stable)
public static final class CfnMemory.NamespaceKeyEntryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMemory.NamespaceKeyEntryProperty>
A builder for
CfnMemory.NamespaceKeyEntryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnMemory.NamespaceKeyEntryProperty.getKey()validation(IResolvable validation) Sets the value ofCfnMemory.NamespaceKeyEntryProperty.getValidation()validation(CfnMemory.NamespaceKeyValidationProperty validation) Sets the value ofCfnMemory.NamespaceKeyEntryProperty.getValidation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnMemory.NamespaceKeyEntryProperty.getKey()- Parameters:
key- A namespace variable key name. This parameter is required. Must start with a lowercase letter and contain only lowercase alphanumeric characters. Cannot be a built-in variable (memoryStrategyId, sessionId, actorId).- Returns:
this
-
validation
@Stability(Stable) public CfnMemory.NamespaceKeyEntryProperty.Builder validation(IResolvable validation) Sets the value ofCfnMemory.NamespaceKeyEntryProperty.getValidation()- Parameters:
validation- Validation rules for namespace variable values. Multiple rules can be specified and all must pass.- Returns:
this
-
validation
@Stability(Stable) public CfnMemory.NamespaceKeyEntryProperty.Builder validation(CfnMemory.NamespaceKeyValidationProperty validation) Sets the value ofCfnMemory.NamespaceKeyEntryProperty.getValidation()- Parameters:
validation- Validation rules for namespace variable values. Multiple rules can be specified and all must pass.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMemory.NamespaceKeyEntryProperty>- Returns:
- a new instance of
CfnMemory.NamespaceKeyEntryProperty - Throws:
NullPointerException- if any required attribute was not provided
-