Class GetRecommendationResponse

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

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

    • recommendationId

      public final String recommendationId()

      The unique identifier of the recommendation.

      Returns:
      The unique identifier of the recommendation.
    • recommendationArn

      public final String recommendationArn()

      The Amazon Resource Name (ARN) of the recommendation.

      Returns:
      The Amazon Resource Name (ARN) of the recommendation.
    • name

      public final String name()

      The name of the recommendation.

      Returns:
      The name of the recommendation.
    • description

      public final String description()

      The description of the recommendation.

      Returns:
      The description of the recommendation.
    • type

      public final RecommendationType type()

      The type of recommendation.

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

      Returns:
      The type of recommendation.
      See Also:
    • typeAsString

      public final String typeAsString()

      The type of recommendation.

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

      Returns:
      The type of recommendation.
      See Also:
    • recommendationConfig

      public final RecommendationConfig recommendationConfig()

      The configuration for the recommendation.

      Returns:
      The configuration for the recommendation.
    • status

      public final RecommendationStatus status()

      The current status of the recommendation.

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

      Returns:
      The current status of the recommendation.
      See Also:
    • statusAsString

      public final String statusAsString()

      The current status of the recommendation.

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

      Returns:
      The current status of the recommendation.
      See Also:
    • createdAt

      public final Instant createdAt()

      The timestamp when the recommendation was created.

      Returns:
      The timestamp when the recommendation was created.
    • updatedAt

      public final Instant updatedAt()

      The timestamp when the recommendation was last updated.

      Returns:
      The timestamp when the recommendation was last updated.
    • recommendationResult

      public final RecommendationResult recommendationResult()

      The result of the recommendation, containing the optimized system prompt or tool descriptions. Only present when the recommendation status is COMPLETED.

      Returns:
      The result of the recommendation, containing the optimized system prompt or tool descriptions. Only present when the recommendation status is COMPLETED.
    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<GetRecommendationResponse.Builder,GetRecommendationResponse>
      Specified by:
      toBuilder in class AwsResponse
    • builder

      public static GetRecommendationResponse.Builder builder()
    • serializableBuilderClass

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

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

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsResponse
    • 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 SdkResponse
    • 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