Interface Memory.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Memory.Builder,
,Memory> SdkBuilder<Memory.Builder,
,Memory> SdkPojo
- Enclosing class:
Memory
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the memory.The timestamp when the memory was created.description
(String description) The description of the memory.encryptionKeyArn
(String encryptionKeyArn) The ARN of the KMS key used to encrypt the memory.eventExpiryDuration
(Integer eventExpiryDuration) The number of days after which memory events will expire.failureReason
(String failureReason) The reason for failure if the memory is in a failed state.The unique identifier of the memory.memoryExecutionRoleArn
(String memoryExecutionRoleArn) The ARN of the IAM role that provides permissions for the memory.The name of the memory.The current status of the memory.status
(MemoryStatus status) The current status of the memory.strategies
(Collection<MemoryStrategy> strategies) The list of memory strategies associated with this memory.strategies
(Consumer<MemoryStrategy.Builder>... strategies) The list of memory strategies associated with this memory.strategies
(MemoryStrategy... strategies) The list of memory strategies associated with this memory.The timestamp when the memory was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
arn
The Amazon Resource Name (ARN) of the memory.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The unique identifier of the memory.
- Parameters:
id
- The unique identifier of the memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the memory.
- Parameters:
name
- The name of the memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the memory.
- Parameters:
description
- The description of the memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionKeyArn
The ARN of the KMS key used to encrypt the memory.
- Parameters:
encryptionKeyArn
- The ARN of the KMS key used to encrypt the memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryExecutionRoleArn
The ARN of the IAM role that provides permissions for the memory.
- Parameters:
memoryExecutionRoleArn
- The ARN of the IAM role that provides permissions for the memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventExpiryDuration
The number of days after which memory events will expire.
- Parameters:
eventExpiryDuration
- The number of days after which memory events will expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the memory.
- Parameters:
status
- The current status of the memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the memory.
- Parameters:
status
- The current status of the memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureReason
The reason for failure if the memory is in a failed state.
- Parameters:
failureReason
- The reason for failure if the memory is in a failed state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the memory was created.
- Parameters:
createdAt
- The timestamp when the memory was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The timestamp when the memory was last updated.
- Parameters:
updatedAt
- The timestamp when the memory was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
strategies
The list of memory strategies associated with this memory.
- Parameters:
strategies
- The list of memory strategies associated with this memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
strategies
The list of memory strategies associated with this memory.
- Parameters:
strategies
- The list of memory strategies associated with this memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
strategies
The list of memory strategies associated with this memory.
This is a convenience method that creates an instance of theMemoryStrategy.Builder
avoiding the need to create one manually viaMemoryStrategy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostrategies(List<MemoryStrategy>)
.- Parameters:
strategies
- a consumer that will call methods onMemoryStrategy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-