Interface GetRecommendationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<GetRecommendationResponse.Builder,,GetRecommendationResponse> SdkBuilder<GetRecommendationResponse.Builder,,GetRecommendationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetRecommendationResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe timestamp when the recommendation was created.description(String description) The description of the recommendation.The name of the recommendation.recommendationArn(String recommendationArn) The Amazon Resource Name (ARN) of the recommendation.recommendationConfig(Consumer<RecommendationConfig.Builder> recommendationConfig) The configuration for the recommendation.recommendationConfig(RecommendationConfig recommendationConfig) The configuration for the recommendation.recommendationId(String recommendationId) The unique identifier of the recommendation.recommendationResult(Consumer<RecommendationResult.Builder> recommendationResult) The result of the recommendation, containing the optimized system prompt or tool descriptions.recommendationResult(RecommendationResult recommendationResult) The result of the recommendation, containing the optimized system prompt or tool descriptions.The current status of the recommendation.status(RecommendationStatus status) The current status of the recommendation.The type of recommendation.type(RecommendationType type) The type of recommendation.The timestamp when the recommendation was last updated.Methods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
recommendationId
The unique identifier of the recommendation.
- Parameters:
recommendationId- The unique identifier of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationArn
The Amazon Resource Name (ARN) of the recommendation.
- Parameters:
recommendationArn- The Amazon Resource Name (ARN) of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the recommendation.
- Parameters:
name- The name of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the recommendation.
- Parameters:
description- The description of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of recommendation.
- Parameters:
type- The type of recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of recommendation.
- Parameters:
type- The type of recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommendationConfig
The configuration for the recommendation.
- Parameters:
recommendationConfig- The configuration for the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationConfig
default GetRecommendationResponse.Builder recommendationConfig(Consumer<RecommendationConfig.Builder> recommendationConfig) The configuration for the recommendation.
This is a convenience method that creates an instance of theRecommendationConfig.Builderavoiding the need to create one manually viaRecommendationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecommendationConfig(RecommendationConfig).- Parameters:
recommendationConfig- a consumer that will call methods onRecommendationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the recommendation.
- Parameters:
status- The current status of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the recommendation.
- Parameters:
status- The current status of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The timestamp when the recommendation was created.
- Parameters:
createdAt- The timestamp when the recommendation was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The timestamp when the recommendation was last updated.
- Parameters:
updatedAt- The timestamp when the recommendation was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationResult
The result of the recommendation, containing the optimized system prompt or tool descriptions. Only present when the recommendation status is
COMPLETED.- Parameters:
recommendationResult- The result of the recommendation, containing the optimized system prompt or tool descriptions. Only present when the recommendation status isCOMPLETED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationResult
default GetRecommendationResponse.Builder recommendationResult(Consumer<RecommendationResult.Builder> recommendationResult) The result of the recommendation, containing the optimized system prompt or tool descriptions. Only present when the recommendation status is
This is a convenience method that creates an instance of theCOMPLETED.RecommendationResult.Builderavoiding the need to create one manually viaRecommendationResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecommendationResult(RecommendationResult).- Parameters:
recommendationResult- a consumer that will call methods onRecommendationResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-