aws-sdk-wellarchitected 1.110.0

AWS SDK for AWS Well-Architected Tool
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct UpdateAgentContextInput {
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
    pub client_token: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the profile containing the context.</p>
    pub profile_arn: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the context to update.</p>
    pub id: ::std::option::Option<::std::string::String>,
    /// <p>The updated title of the context.</p>
    pub title: ::std::option::Option<::std::string::String>,
    /// <p>The updated typed content of the context. The structure contains application-specific fields such as account IDs, Regions, services, and resource types.</p>
    pub content: ::std::option::Option<crate::types::ContextContent>,
}
impl UpdateAgentContextInput {
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
    pub fn client_token(&self) -> ::std::option::Option<&str> {
        self.client_token.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the profile containing the context.</p>
    pub fn profile_arn(&self) -> ::std::option::Option<&str> {
        self.profile_arn.as_deref()
    }
    /// <p>The unique identifier of the context to update.</p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The updated title of the context.</p>
    pub fn title(&self) -> ::std::option::Option<&str> {
        self.title.as_deref()
    }
    /// <p>The updated typed content of the context. The structure contains application-specific fields such as account IDs, Regions, services, and resource types.</p>
    pub fn content(&self) -> ::std::option::Option<&crate::types::ContextContent> {
        self.content.as_ref()
    }
}
impl ::std::fmt::Debug for UpdateAgentContextInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateAgentContextInput");
        formatter.field("client_token", &self.client_token);
        formatter.field("profile_arn", &self.profile_arn);
        formatter.field("id", &self.id);
        formatter.field("title", &"*** Sensitive Data Redacted ***");
        formatter.field("content", &self.content);
        formatter.finish()
    }
}
impl UpdateAgentContextInput {
    /// Creates a new builder-style object to manufacture [`UpdateAgentContextInput`](crate::operation::update_agent_context::UpdateAgentContextInput).
    pub fn builder() -> crate::operation::update_agent_context::builders::UpdateAgentContextInputBuilder {
        crate::operation::update_agent_context::builders::UpdateAgentContextInputBuilder::default()
    }
}

/// A builder for [`UpdateAgentContextInput`](crate::operation::update_agent_context::UpdateAgentContextInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct UpdateAgentContextInputBuilder {
    pub(crate) client_token: ::std::option::Option<::std::string::String>,
    pub(crate) profile_arn: ::std::option::Option<::std::string::String>,
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) title: ::std::option::Option<::std::string::String>,
    pub(crate) content: ::std::option::Option<crate::types::ContextContent>,
}
impl UpdateAgentContextInputBuilder {
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_token = input;
        self
    }
    /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_token
    }
    /// <p>The Amazon Resource Name (ARN) of the profile containing the context.</p>
    /// This field is required.
    pub fn profile_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.profile_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the profile containing the context.</p>
    pub fn set_profile_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.profile_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the profile containing the context.</p>
    pub fn get_profile_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.profile_arn
    }
    /// <p>The unique identifier of the context to update.</p>
    /// This field is required.
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the context to update.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The unique identifier of the context to update.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The updated title of the context.</p>
    pub fn title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.title = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The updated title of the context.</p>
    pub fn set_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.title = input;
        self
    }
    /// <p>The updated title of the context.</p>
    pub fn get_title(&self) -> &::std::option::Option<::std::string::String> {
        &self.title
    }
    /// <p>The updated typed content of the context. The structure contains application-specific fields such as account IDs, Regions, services, and resource types.</p>
    pub fn content(mut self, input: crate::types::ContextContent) -> Self {
        self.content = ::std::option::Option::Some(input);
        self
    }
    /// <p>The updated typed content of the context. The structure contains application-specific fields such as account IDs, Regions, services, and resource types.</p>
    pub fn set_content(mut self, input: ::std::option::Option<crate::types::ContextContent>) -> Self {
        self.content = input;
        self
    }
    /// <p>The updated typed content of the context. The structure contains application-specific fields such as account IDs, Regions, services, and resource types.</p>
    pub fn get_content(&self) -> &::std::option::Option<crate::types::ContextContent> {
        &self.content
    }
    /// Consumes the builder and constructs a [`UpdateAgentContextInput`](crate::operation::update_agent_context::UpdateAgentContextInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_agent_context::UpdateAgentContextInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_agent_context::UpdateAgentContextInput {
            client_token: self.client_token,
            profile_arn: self.profile_arn,
            id: self.id,
            title: self.title,
            content: self.content,
        })
    }
}
impl ::std::fmt::Debug for UpdateAgentContextInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateAgentContextInputBuilder");
        formatter.field("client_token", &self.client_token);
        formatter.field("profile_arn", &self.profile_arn);
        formatter.field("id", &self.id);
        formatter.field("title", &"*** Sensitive Data Redacted ***");
        formatter.field("content", &self.content);
        formatter.finish()
    }
}