Interface MemoryStrategy.Builder

  • Method Details

    • strategyId

      MemoryStrategy.Builder strategyId(String strategyId)

      The unique identifier of the memory strategy.

      Parameters:
      strategyId - The unique identifier of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the memory strategy.

      Parameters:
      name - The name of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      MemoryStrategy.Builder description(String description)

      The description of the memory strategy.

      Parameters:
      description - The description of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configuration

      MemoryStrategy.Builder configuration(StrategyConfiguration configuration)

      The configuration of the memory strategy.

      Parameters:
      configuration - The configuration of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configuration

      default MemoryStrategy.Builder configuration(Consumer<StrategyConfiguration.Builder> configuration)

      The configuration of the memory strategy.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to configuration(StrategyConfiguration).

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

      The type of the memory strategy.

      Parameters:
      type - The type of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of the memory strategy.

      Parameters:
      type - The type of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • namespaces

      MemoryStrategy.Builder namespaces(Collection<String> namespaces)

      The namespaces associated with the memory strategy.

      Parameters:
      namespaces - The namespaces associated with the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaces

      MemoryStrategy.Builder namespaces(String... namespaces)

      The namespaces associated with the memory strategy.

      Parameters:
      namespaces - The namespaces associated with the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      MemoryStrategy.Builder createdAt(Instant createdAt)

      The timestamp when the memory strategy was created.

      Parameters:
      createdAt - The timestamp when the memory strategy was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      MemoryStrategy.Builder updatedAt(Instant updatedAt)

      The timestamp when the memory strategy was last updated.

      Parameters:
      updatedAt - The timestamp when the memory strategy was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the memory strategy.

      Parameters:
      status - The current status of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the memory strategy.

      Parameters:
      status - The current status of the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: