Skip to main content

aws_sdk_devopsagent/client/
update_goal.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 [`UpdateGoal`](crate::operation::update_goal::builders::UpdateGoalFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::update_goal::builders::UpdateGoalFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::update_goal::builders::UpdateGoalFluentBuilder::set_agent_space_id):<br>required: **true**<br>The unique identifier for the agent space containing the goal<br>
7    ///   - [`goal_id(impl Into<String>)`](crate::operation::update_goal::builders::UpdateGoalFluentBuilder::goal_id) / [`set_goal_id(Option<String>)`](crate::operation::update_goal::builders::UpdateGoalFluentBuilder::set_goal_id):<br>required: **true**<br>The unique identifier of the goal to update<br>
8    ///   - [`evaluation_schedule(GoalScheduleInput)`](crate::operation::update_goal::builders::UpdateGoalFluentBuilder::evaluation_schedule) / [`set_evaluation_schedule(Option<GoalScheduleInput>)`](crate::operation::update_goal::builders::UpdateGoalFluentBuilder::set_evaluation_schedule):<br>required: **false**<br>Update goal schedule state<br>
9    ///   - [`client_token(impl Into<String>)`](crate::operation::update_goal::builders::UpdateGoalFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::update_goal::builders::UpdateGoalFluentBuilder::set_client_token):<br>required: **false**<br>Client-provided token for idempotent operations<br>
10    /// - On success, responds with [`UpdateGoalOutput`](crate::operation::update_goal::UpdateGoalOutput) with field(s):
11    ///   - [`goal(Option<Goal>)`](crate::operation::update_goal::UpdateGoalOutput::goal): The updated goal object
12    /// - On failure, responds with [`SdkError<UpdateGoalError>`](crate::operation::update_goal::UpdateGoalError)
13    pub fn update_goal(&self) -> crate::operation::update_goal::builders::UpdateGoalFluentBuilder {
14        crate::operation::update_goal::builders::UpdateGoalFluentBuilder::new(self.handle.clone())
15    }
16}