Class StartRecommendationRequest

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

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

    • name

      public final String name()

      The name of the recommendation. Must be unique within your account.

      Returns:
      The name of the recommendation. Must be unique within your account.
    • 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 to generate. Valid values are SYSTEM_PROMPT_RECOMMENDATION for system prompt optimization or TOOL_DESCRIPTION_RECOMMENDATION for tool description optimization.

      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 to generate. Valid values are SYSTEM_PROMPT_RECOMMENDATION for system prompt optimization or TOOL_DESCRIPTION_RECOMMENDATION for tool description optimization.
      See Also:
    • typeAsString

      public final String typeAsString()

      The type of recommendation to generate. Valid values are SYSTEM_PROMPT_RECOMMENDATION for system prompt optimization or TOOL_DESCRIPTION_RECOMMENDATION for tool description optimization.

      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 to generate. Valid values are SYSTEM_PROMPT_RECOMMENDATION for system prompt optimization or TOOL_DESCRIPTION_RECOMMENDATION for tool description optimization.
      See Also:
    • recommendationConfig

      public final RecommendationConfig recommendationConfig()

      The configuration for the recommendation, including the input to optimize, agent traces to analyze, and evaluation settings.

      Returns:
      The configuration for the recommendation, including the input to optimize, agent traces to analyze, and evaluation settings.
    • clientToken

      public final String clientToken()

      A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.

      Returns:
      A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<StartRecommendationRequest.Builder,StartRecommendationRequest>
      Specified by:
      toBuilder in class BedrockAgentCoreRequest
    • builder

      public static StartRecommendationRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends StartRecommendationRequest.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