Class GetAgentMemoryRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<GetAgentMemoryRequest.Builder,GetAgentMemoryRequest>

@Generated("software.amazon.awssdk:codegen") public final class GetAgentMemoryRequest extends BedrockAgentRuntimeRequest implements ToCopyableBuilder<GetAgentMemoryRequest.Builder,GetAgentMemoryRequest>
  • Method Details

    • agentAliasId

      public final String agentAliasId()

      The unique identifier of an alias of an agent.

      Returns:
      The unique identifier of an alias of an agent.
    • agentId

      public final String agentId()

      The unique identifier of the agent to which the alias belongs.

      Returns:
      The unique identifier of the agent to which the alias belongs.
    • maxItems

      public final Integer maxItems()

      The maximum number of items to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.

      Returns:
      The maximum number of items to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.
    • memoryId

      public final String memoryId()

      The unique identifier of the memory.

      Returns:
      The unique identifier of the memory.
    • memoryType

      public final MemoryType memoryType()

      The type of memory.

      If the service returns an enum value that is not available in the current SDK version, memoryType will return MemoryType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from memoryTypeAsString().

      Returns:
      The type of memory.
      See Also:
    • memoryTypeAsString

      public final String memoryTypeAsString()

      The type of memory.

      If the service returns an enum value that is not available in the current SDK version, memoryType will return MemoryType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from memoryTypeAsString().

      Returns:
      The type of memory.
      See Also:
    • nextToken

      public final String nextToken()

      If the total number of results is greater than the maxItems value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

      Returns:
      If the total number of results is greater than the maxItems value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.
    • toBuilder

      public GetAgentMemoryRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<GetAgentMemoryRequest.Builder,GetAgentMemoryRequest>
      Specified by:
      toBuilder in class BedrockAgentRuntimeRequest
    • builder

      public static GetAgentMemoryRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends GetAgentMemoryRequest.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsRequest
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Overrides:
      getValueForField in class SdkRequest
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo