aws_sdk_devopsagent/client/get_recommendation.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetRecommendation`](crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`agent_space_id(impl Into<String>)`](crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder::set_agent_space_id):<br>required: **true**<br>The unique identifier for the agent space containing the recommendation<br>
7 /// - [`recommendation_id(impl Into<String>)`](crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder::recommendation_id) / [`set_recommendation_id(Option<String>)`](crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder::set_recommendation_id):<br>required: **true**<br>The unique identifier for the recommendation to retrieve<br>
8 /// - [`recommendation_version(i64)`](crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder::recommendation_version) / [`set_recommendation_version(Option<i64>)`](crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder::set_recommendation_version):<br>required: **false**<br>Specific version of the recommendation to retrieve. If not specified, returns the latest version.<br>
9 /// - On success, responds with [`GetRecommendationOutput`](crate::operation::get_recommendation::GetRecommendationOutput) with field(s):
10 /// - [`recommendation(Option<Recommendation>)`](crate::operation::get_recommendation::GetRecommendationOutput::recommendation): The requested recommendation
11 /// - On failure, responds with [`SdkError<GetRecommendationError>`](crate::operation::get_recommendation::GetRecommendationError)
12 pub fn get_recommendation(&self) -> crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder {
13 crate::operation::get_recommendation::builders::GetRecommendationFluentBuilder::new(self.handle.clone())
14 }
15}