Interface CustomMemoryStrategyInput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CustomMemoryStrategyInput.Builder,,CustomMemoryStrategyInput> SdkBuilder<CustomMemoryStrategyInput.Builder,,CustomMemoryStrategyInput> SdkPojo
- Enclosing class:
CustomMemoryStrategyInput
-
Method Summary
Modifier and TypeMethodDescriptionconfiguration(Consumer<CustomConfigurationInput.Builder> configuration) The configuration for the custom memory strategy.configuration(CustomConfigurationInput configuration) The configuration for the custom memory strategy.description(String description) The description of the custom memory strategy.memoryRecordSchema(Consumer<MemoryRecordSchema.Builder> memoryRecordSchema) Schema for metadata fields on records generated by this strategy.memoryRecordSchema(MemoryRecordSchema memoryRecordSchema) Schema for metadata fields on records generated by this strategy.The name of the custom memory strategy.namespaces(String... namespaces) Deprecated.Use namespaceTemplates insteadnamespaces(Collection<String> namespaces) Deprecated.Use namespaceTemplates insteadnamespaceTemplates(String... namespaceTemplates) The namespaceTemplates associated with the custom memory strategy.namespaceTemplates(Collection<String> namespaceTemplates) The namespaceTemplates associated with the custom memory strategy.recordExpirySpecification(Consumer<RecordExpirySpecification.Builder> recordExpirySpecification) The record expiry (long-term memory time-to-live) configuration for memory records generated by this strategy.recordExpirySpecification(RecordExpirySpecification recordExpirySpecification) The record expiry (long-term memory time-to-live) configuration for memory records generated by this strategy.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the custom memory strategy.
- Parameters:
name- The name of the custom memory strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the custom memory strategy.
- Parameters:
description- The description of the custom memory strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaces
Deprecated.Use namespaceTemplates insteadThis is a legacy parameter, use
namespaceTemplates. The namespaces associated with the custom memory strategy.- Parameters:
namespaces- This is a legacy parameter, usenamespaceTemplates. The namespaces associated with the custom memory strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaces
Deprecated.Use namespaceTemplates insteadThis is a legacy parameter, use
namespaceTemplates. The namespaces associated with the custom memory strategy.- Parameters:
namespaces- This is a legacy parameter, usenamespaceTemplates. The namespaces associated with the custom memory strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaceTemplates
The namespaceTemplates associated with the custom memory strategy.
- Parameters:
namespaceTemplates- The namespaceTemplates associated with the custom memory strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespaceTemplates
The namespaceTemplates associated with the custom memory strategy.
- Parameters:
namespaceTemplates- The namespaceTemplates associated with the custom memory strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
The configuration for the custom memory strategy.
- Parameters:
configuration- The configuration for the custom memory strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default CustomMemoryStrategyInput.Builder configuration(Consumer<CustomConfigurationInput.Builder> configuration) The configuration for the custom memory strategy.
This is a convenience method that creates an instance of theCustomConfigurationInput.Builderavoiding the need to create one manually viaCustomConfigurationInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfiguration(CustomConfigurationInput).- Parameters:
configuration- a consumer that will call methods onCustomConfigurationInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
memoryRecordSchema
Schema for metadata fields on records generated by this strategy.
- Parameters:
memoryRecordSchema- Schema for metadata fields on records generated by this strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryRecordSchema
default CustomMemoryStrategyInput.Builder memoryRecordSchema(Consumer<MemoryRecordSchema.Builder> memoryRecordSchema) Schema for metadata fields on records generated by this strategy.
This is a convenience method that creates an instance of theMemoryRecordSchema.Builderavoiding the need to create one manually viaMemoryRecordSchema.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemoryRecordSchema(MemoryRecordSchema).- Parameters:
memoryRecordSchema- a consumer that will call methods onMemoryRecordSchema.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recordExpirySpecification
CustomMemoryStrategyInput.Builder recordExpirySpecification(RecordExpirySpecification recordExpirySpecification) The record expiry (long-term memory time-to-live) configuration for memory records generated by this strategy. Set
recordExpiryDurationDaysto the number of days after which records expire. If not specified, records generated by this strategy do not expire.- Parameters:
recordExpirySpecification- The record expiry (long-term memory time-to-live) configuration for memory records generated by this strategy. SetrecordExpiryDurationDaysto the number of days after which records expire. If not specified, records generated by this strategy do not expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recordExpirySpecification
default CustomMemoryStrategyInput.Builder recordExpirySpecification(Consumer<RecordExpirySpecification.Builder> recordExpirySpecification) The record expiry (long-term memory time-to-live) configuration for memory records generated by this strategy. Set
This is a convenience method that creates an instance of therecordExpiryDurationDaysto the number of days after which records expire. If not specified, records generated by this strategy do not expire.RecordExpirySpecification.Builderavoiding the need to create one manually viaRecordExpirySpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecordExpirySpecification(RecordExpirySpecification).- Parameters:
recordExpirySpecification- a consumer that will call methods onRecordExpirySpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-