Class MemoryStrategyInput
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<MemoryStrategyInput.Builder,
MemoryStrategyInput>
Contains input information for creating a memory strategy.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryStrategyInput.Builder
builder()
Input for creating a custom memory strategy.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static MemoryStrategyInput
fromCustomMemoryStrategy
(Consumer<CustomMemoryStrategyInput.Builder> customMemoryStrategy) Create an instance of this class withcustomMemoryStrategy()
initialized to the given value.static MemoryStrategyInput
fromCustomMemoryStrategy
(CustomMemoryStrategyInput customMemoryStrategy) Create an instance of this class withcustomMemoryStrategy()
initialized to the given value.static MemoryStrategyInput
fromSemanticMemoryStrategy
(Consumer<SemanticMemoryStrategyInput.Builder> semanticMemoryStrategy) Create an instance of this class withsemanticMemoryStrategy()
initialized to the given value.static MemoryStrategyInput
fromSemanticMemoryStrategy
(SemanticMemoryStrategyInput semanticMemoryStrategy) Create an instance of this class withsemanticMemoryStrategy()
initialized to the given value.static MemoryStrategyInput
fromSummaryMemoryStrategy
(Consumer<SummaryMemoryStrategyInput.Builder> summaryMemoryStrategy) Create an instance of this class withsummaryMemoryStrategy()
initialized to the given value.static MemoryStrategyInput
fromSummaryMemoryStrategy
(SummaryMemoryStrategyInput summaryMemoryStrategy) Create an instance of this class withsummaryMemoryStrategy()
initialized to the given value.static MemoryStrategyInput
fromUserPreferenceMemoryStrategy
(Consumer<UserPreferenceMemoryStrategyInput.Builder> userPreferenceMemoryStrategy) Create an instance of this class withuserPreferenceMemoryStrategy()
initialized to the given value.static MemoryStrategyInput
fromUserPreferenceMemoryStrategy
(UserPreferenceMemoryStrategyInput userPreferenceMemoryStrategy) Create an instance of this class withuserPreferenceMemoryStrategy()
initialized to the given value.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
Input for creating a semantic memory strategy.static Class
<? extends MemoryStrategyInput.Builder> Input for creating a summary memory strategy.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.type()
Retrieve an enum value representing which member of this object is populated.Input for creating a user preference memory strategy.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
semanticMemoryStrategy
Input for creating a semantic memory strategy.
- Returns:
- Input for creating a semantic memory strategy.
-
summaryMemoryStrategy
Input for creating a summary memory strategy.
- Returns:
- Input for creating a summary memory strategy.
-
userPreferenceMemoryStrategy
Input for creating a user preference memory strategy.
- Returns:
- Input for creating a user preference memory strategy.
-
customMemoryStrategy
Input for creating a custom memory strategy.
- Returns:
- Input for creating a custom memory strategy.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<MemoryStrategyInput.Builder,
MemoryStrategyInput> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromSemanticMemoryStrategy
public static MemoryStrategyInput fromSemanticMemoryStrategy(SemanticMemoryStrategyInput semanticMemoryStrategy) Create an instance of this class withsemanticMemoryStrategy()
initialized to the given value.Input for creating a semantic memory strategy.
- Parameters:
semanticMemoryStrategy
- Input for creating a semantic memory strategy.
-
fromSemanticMemoryStrategy
public static MemoryStrategyInput fromSemanticMemoryStrategy(Consumer<SemanticMemoryStrategyInput.Builder> semanticMemoryStrategy) Create an instance of this class withsemanticMemoryStrategy()
initialized to the given value.Input for creating a semantic memory strategy.
- Parameters:
semanticMemoryStrategy
- Input for creating a semantic memory strategy.
-
fromSummaryMemoryStrategy
public static MemoryStrategyInput fromSummaryMemoryStrategy(SummaryMemoryStrategyInput summaryMemoryStrategy) Create an instance of this class withsummaryMemoryStrategy()
initialized to the given value.Input for creating a summary memory strategy.
- Parameters:
summaryMemoryStrategy
- Input for creating a summary memory strategy.
-
fromSummaryMemoryStrategy
public static MemoryStrategyInput fromSummaryMemoryStrategy(Consumer<SummaryMemoryStrategyInput.Builder> summaryMemoryStrategy) Create an instance of this class withsummaryMemoryStrategy()
initialized to the given value.Input for creating a summary memory strategy.
- Parameters:
summaryMemoryStrategy
- Input for creating a summary memory strategy.
-
fromUserPreferenceMemoryStrategy
public static MemoryStrategyInput fromUserPreferenceMemoryStrategy(UserPreferenceMemoryStrategyInput userPreferenceMemoryStrategy) Create an instance of this class withuserPreferenceMemoryStrategy()
initialized to the given value.Input for creating a user preference memory strategy.
- Parameters:
userPreferenceMemoryStrategy
- Input for creating a user preference memory strategy.
-
fromUserPreferenceMemoryStrategy
public static MemoryStrategyInput fromUserPreferenceMemoryStrategy(Consumer<UserPreferenceMemoryStrategyInput.Builder> userPreferenceMemoryStrategy) Create an instance of this class withuserPreferenceMemoryStrategy()
initialized to the given value.Input for creating a user preference memory strategy.
- Parameters:
userPreferenceMemoryStrategy
- Input for creating a user preference memory strategy.
-
fromCustomMemoryStrategy
public static MemoryStrategyInput fromCustomMemoryStrategy(CustomMemoryStrategyInput customMemoryStrategy) Create an instance of this class withcustomMemoryStrategy()
initialized to the given value.Input for creating a custom memory strategy.
- Parameters:
customMemoryStrategy
- Input for creating a custom memory strategy.
-
fromCustomMemoryStrategy
public static MemoryStrategyInput fromCustomMemoryStrategy(Consumer<CustomMemoryStrategyInput.Builder> customMemoryStrategy) Create an instance of this class withcustomMemoryStrategy()
initialized to the given value.Input for creating a custom memory strategy.
- Parameters:
customMemoryStrategy
- Input for creating a custom memory strategy.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beMemoryStrategyInput.Type.UNKNOWN_TO_SDK_VERSION
if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beMemoryStrategyInput.Type.UNKNOWN_TO_SDK_VERSION
if zero members are set, andnull
if more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-