Skip to main content

aws_sdk_devopsagent/client/
update_agent_space.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 [`UpdateAgentSpace`](crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder::set_agent_space_id):<br>required: **true**<br><p>The unique identifier of the AgentSpace</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder::set_name):<br>required: **false**<br><p>The updated name of the AgentSpace.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder::set_description):<br>required: **false**<br><p>The updated description of the AgentSpace.</p><br>
9    ///   - [`locale(impl Into<String>)`](crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder::locale) / [`set_locale(Option<String>)`](crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder::set_locale):<br>required: **false**<br><p>The updated locale for the AgentSpace, which determines the language used in agent responses.</p><br>
10    ///   - [`preferences(AgentSpacePreferenceKey, bool)`](crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder::preferences) / [`set_preferences(Option<HashMap::<AgentSpacePreferenceKey, bool>>)`](crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder::set_preferences):<br>required: **false**<br><p>The preferences to configure on the agent space. When provided, this replaces the full set of configured preferences; preferences not included revert to their default values. When omitted, the current preferences are left unchanged.</p><br>
11    /// - On success, responds with [`UpdateAgentSpaceOutput`](crate::operation::update_agent_space::UpdateAgentSpaceOutput) with field(s):
12    ///   - [`agent_space(Option<AgentSpace>)`](crate::operation::update_agent_space::UpdateAgentSpaceOutput::agent_space): <p>Represents a complete AgentSpace with all its properties, timestamps, encryption settings, and unique identifier.</p>
13    /// - On failure, responds with [`SdkError<UpdateAgentSpaceError>`](crate::operation::update_agent_space::UpdateAgentSpaceError)
14    pub fn update_agent_space(&self) -> crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder {
15        crate::operation::update_agent_space::builders::UpdateAgentSpaceFluentBuilder::new(self.handle.clone())
16    }
17}