Interface Memory.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Memory.Builder,Memory>, SdkBuilder<Memory.Builder,Memory>, SdkPojo
Enclosing class:
Memory

@Mutable @NotThreadSafe public static interface Memory.Builder extends SdkPojo, CopyableBuilder<Memory.Builder,Memory>
  • 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

      Memory.Builder name(String 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

      Memory.Builder description(String 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

      Memory.Builder encryptionKeyArn(String 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

      Memory.Builder memoryExecutionRoleArn(String 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

      Memory.Builder eventExpiryDuration(Integer 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

      Memory.Builder status(String 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

      Memory.Builder status(MemoryStatus 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

      Memory.Builder failureReason(String 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

      Memory.Builder createdAt(Instant 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

      Memory.Builder updatedAt(Instant 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

      Memory.Builder strategies(Collection<MemoryStrategy> 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

      Memory.Builder strategies(MemoryStrategy... 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

      Memory.Builder strategies(Consumer<MemoryStrategy.Builder>... strategies)

      The list of memory strategies associated with this memory.

      This is a convenience method that creates an instance of the MemoryStrategy.Builder avoiding the need to create one manually via MemoryStrategy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to strategies(List<MemoryStrategy>).

      Parameters:
      strategies - a consumer that will call methods on MemoryStrategy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: