Interface ModifyMemoryStrategyInput.Builder

  • Method Details

    • memoryStrategyId

      ModifyMemoryStrategyInput.Builder memoryStrategyId(String memoryStrategyId)

      The unique identifier of the memory strategy to modify.

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

      ModifyMemoryStrategyInput.Builder description(String description)

      The updated description of the memory strategy.

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

      Deprecated.
      Use namespaceTemplates instead

      This is a legacy parameter, use namespaceTemplates. The updated namespaces for the memory strategy.

      Parameters:
      namespaces - This is a legacy parameter, use namespaceTemplates. The updated namespaces for the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaces

      Deprecated.
      Use namespaceTemplates instead

      This is a legacy parameter, use namespaceTemplates. The updated namespaces for the memory strategy.

      Parameters:
      namespaces - This is a legacy parameter, use namespaceTemplates. The updated namespaces for the memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaceTemplates

      ModifyMemoryStrategyInput.Builder namespaceTemplates(Collection<String> namespaceTemplates)

      The updated namespaceTemplates for the memory strategy.

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

      ModifyMemoryStrategyInput.Builder namespaceTemplates(String... namespaceTemplates)

      The updated namespaceTemplates for the memory strategy.

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

      The updated configuration for the memory strategy.

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

      The updated configuration for the memory strategy.

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

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

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

      ModifyMemoryStrategyInput.Builder memoryRecordSchema(MemoryRecordSchema memoryRecordSchema)

      Updated metadata schema for records generated by this strategy.

      Parameters:
      memoryRecordSchema - Updated metadata schema for records generated by this strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryRecordSchema

      default ModifyMemoryStrategyInput.Builder memoryRecordSchema(Consumer<MemoryRecordSchema.Builder> memoryRecordSchema)

      Updated metadata schema for records generated by this strategy.

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

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

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

      ModifyMemoryStrategyInput.Builder recordExpirySpecification(RecordExpirySpecification recordExpirySpecification)

      Updates or removes the record expiry (long-term memory time-to-live) for this strategy. Set recordExpiryDurationDays to configure or update the number of days after which records expire, or set action to REMOVE to remove a previously configured time-to-live so that newer records no longer expire. The change applies only to records created after the update.

      Parameters:
      recordExpirySpecification - Updates or removes the record expiry (long-term memory time-to-live) for this strategy. Set recordExpiryDurationDays to configure or update the number of days after which records expire, or set action to REMOVE to remove a previously configured time-to-live so that newer records no longer expire. The change applies only to records created after the update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recordExpirySpecification

      default ModifyMemoryStrategyInput.Builder recordExpirySpecification(Consumer<RecordExpirySpecification.Builder> recordExpirySpecification)

      Updates or removes the record expiry (long-term memory time-to-live) for this strategy. Set recordExpiryDurationDays to configure or update the number of days after which records expire, or set action to REMOVE to remove a previously configured time-to-live so that newer records no longer expire. The change applies only to records created after the update.

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

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

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