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 UpdateAgentProfileInput {
    /// <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 to update.</p>
    pub profile_arn: ::std::option::Option<::std::string::String>,
    /// <p>The updated display name of the profile.</p>
    pub display_name: ::std::option::Option<::std::string::String>,
    /// <p>The updated description of the profile.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The updated ARN of the IAM execution role.</p>
    pub execution_role_arn: ::std::option::Option<::std::string::String>,
    /// <p>The updated aggregation configuration.</p>
    pub aggregation_configuration: ::std::option::Option<::std::vec::Vec<crate::types::AggregationConfiguration>>,
    /// <p>The updated business overview for the profile.</p>
    pub business_overview: ::std::option::Option<::std::string::String>,
    /// <p>The updated Well-Architected Tool Framework pillars for the profile.</p>
    pub pillars: ::std::option::Option<::std::vec::Vec<crate::types::Pillar>>,
    /// <p>Indicates whether deletion protection is enabled for the profile.</p>
    pub deletion_protection: ::std::option::Option<bool>,
}
impl UpdateAgentProfileInput {
    /// <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 to update.</p>
    pub fn profile_arn(&self) -> ::std::option::Option<&str> {
        self.profile_arn.as_deref()
    }
    /// <p>The updated display name of the profile.</p>
    pub fn display_name(&self) -> ::std::option::Option<&str> {
        self.display_name.as_deref()
    }
    /// <p>The updated description of the profile.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The updated ARN of the IAM execution role.</p>
    pub fn execution_role_arn(&self) -> ::std::option::Option<&str> {
        self.execution_role_arn.as_deref()
    }
    /// <p>The updated aggregation configuration.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.aggregation_configuration.is_none()`.
    pub fn aggregation_configuration(&self) -> &[crate::types::AggregationConfiguration] {
        self.aggregation_configuration.as_deref().unwrap_or_default()
    }
    /// <p>The updated business overview for the profile.</p>
    pub fn business_overview(&self) -> ::std::option::Option<&str> {
        self.business_overview.as_deref()
    }
    /// <p>The updated Well-Architected Tool Framework pillars for the profile.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.pillars.is_none()`.
    pub fn pillars(&self) -> &[crate::types::Pillar] {
        self.pillars.as_deref().unwrap_or_default()
    }
    /// <p>Indicates whether deletion protection is enabled for the profile.</p>
    pub fn deletion_protection(&self) -> ::std::option::Option<bool> {
        self.deletion_protection
    }
}
impl ::std::fmt::Debug for UpdateAgentProfileInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateAgentProfileInput");
        formatter.field("client_token", &self.client_token);
        formatter.field("profile_arn", &self.profile_arn);
        formatter.field("display_name", &"*** Sensitive Data Redacted ***");
        formatter.field("description", &"*** Sensitive Data Redacted ***");
        formatter.field("execution_role_arn", &self.execution_role_arn);
        formatter.field("aggregation_configuration", &self.aggregation_configuration);
        formatter.field("business_overview", &"*** Sensitive Data Redacted ***");
        formatter.field("pillars", &self.pillars);
        formatter.field("deletion_protection", &self.deletion_protection);
        formatter.finish()
    }
}
impl UpdateAgentProfileInput {
    /// Creates a new builder-style object to manufacture [`UpdateAgentProfileInput`](crate::operation::update_agent_profile::UpdateAgentProfileInput).
    pub fn builder() -> crate::operation::update_agent_profile::builders::UpdateAgentProfileInputBuilder {
        crate::operation::update_agent_profile::builders::UpdateAgentProfileInputBuilder::default()
    }
}

/// A builder for [`UpdateAgentProfileInput`](crate::operation::update_agent_profile::UpdateAgentProfileInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct UpdateAgentProfileInputBuilder {
    pub(crate) client_token: ::std::option::Option<::std::string::String>,
    pub(crate) profile_arn: ::std::option::Option<::std::string::String>,
    pub(crate) display_name: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) execution_role_arn: ::std::option::Option<::std::string::String>,
    pub(crate) aggregation_configuration: ::std::option::Option<::std::vec::Vec<crate::types::AggregationConfiguration>>,
    pub(crate) business_overview: ::std::option::Option<::std::string::String>,
    pub(crate) pillars: ::std::option::Option<::std::vec::Vec<crate::types::Pillar>>,
    pub(crate) deletion_protection: ::std::option::Option<bool>,
}
impl UpdateAgentProfileInputBuilder {
    /// <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 to update.</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 to update.</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 to update.</p>
    pub fn get_profile_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.profile_arn
    }
    /// <p>The updated display name of the profile.</p>
    pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.display_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The updated display name of the profile.</p>
    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.display_name = input;
        self
    }
    /// <p>The updated display name of the profile.</p>
    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.display_name
    }
    /// <p>The updated description of the profile.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The updated description of the profile.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>The updated description of the profile.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The updated ARN of the IAM execution role.</p>
    pub fn execution_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.execution_role_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The updated ARN of the IAM execution role.</p>
    pub fn set_execution_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.execution_role_arn = input;
        self
    }
    /// <p>The updated ARN of the IAM execution role.</p>
    pub fn get_execution_role_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.execution_role_arn
    }
    /// Appends an item to `aggregation_configuration`.
    ///
    /// To override the contents of this collection use [`set_aggregation_configuration`](Self::set_aggregation_configuration).
    ///
    /// <p>The updated aggregation configuration.</p>
    pub fn aggregation_configuration(mut self, input: crate::types::AggregationConfiguration) -> Self {
        let mut v = self.aggregation_configuration.unwrap_or_default();
        v.push(input);
        self.aggregation_configuration = ::std::option::Option::Some(v);
        self
    }
    /// <p>The updated aggregation configuration.</p>
    pub fn set_aggregation_configuration(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AggregationConfiguration>>) -> Self {
        self.aggregation_configuration = input;
        self
    }
    /// <p>The updated aggregation configuration.</p>
    pub fn get_aggregation_configuration(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AggregationConfiguration>> {
        &self.aggregation_configuration
    }
    /// <p>The updated business overview for the profile.</p>
    pub fn business_overview(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.business_overview = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The updated business overview for the profile.</p>
    pub fn set_business_overview(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.business_overview = input;
        self
    }
    /// <p>The updated business overview for the profile.</p>
    pub fn get_business_overview(&self) -> &::std::option::Option<::std::string::String> {
        &self.business_overview
    }
    /// Appends an item to `pillars`.
    ///
    /// To override the contents of this collection use [`set_pillars`](Self::set_pillars).
    ///
    /// <p>The updated Well-Architected Tool Framework pillars for the profile.</p>
    pub fn pillars(mut self, input: crate::types::Pillar) -> Self {
        let mut v = self.pillars.unwrap_or_default();
        v.push(input);
        self.pillars = ::std::option::Option::Some(v);
        self
    }
    /// <p>The updated Well-Architected Tool Framework pillars for the profile.</p>
    pub fn set_pillars(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Pillar>>) -> Self {
        self.pillars = input;
        self
    }
    /// <p>The updated Well-Architected Tool Framework pillars for the profile.</p>
    pub fn get_pillars(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Pillar>> {
        &self.pillars
    }
    /// <p>Indicates whether deletion protection is enabled for the profile.</p>
    pub fn deletion_protection(mut self, input: bool) -> Self {
        self.deletion_protection = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether deletion protection is enabled for the profile.</p>
    pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
        self.deletion_protection = input;
        self
    }
    /// <p>Indicates whether deletion protection is enabled for the profile.</p>
    pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
        &self.deletion_protection
    }
    /// Consumes the builder and constructs a [`UpdateAgentProfileInput`](crate::operation::update_agent_profile::UpdateAgentProfileInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_agent_profile::UpdateAgentProfileInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_agent_profile::UpdateAgentProfileInput {
            client_token: self.client_token,
            profile_arn: self.profile_arn,
            display_name: self.display_name,
            description: self.description,
            execution_role_arn: self.execution_role_arn,
            aggregation_configuration: self.aggregation_configuration,
            business_overview: self.business_overview,
            pillars: self.pillars,
            deletion_protection: self.deletion_protection,
        })
    }
}
impl ::std::fmt::Debug for UpdateAgentProfileInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateAgentProfileInputBuilder");
        formatter.field("client_token", &self.client_token);
        formatter.field("profile_arn", &self.profile_arn);
        formatter.field("display_name", &"*** Sensitive Data Redacted ***");
        formatter.field("description", &"*** Sensitive Data Redacted ***");
        formatter.field("execution_role_arn", &self.execution_role_arn);
        formatter.field("aggregation_configuration", &self.aggregation_configuration);
        formatter.field("business_overview", &"*** Sensitive Data Redacted ***");
        formatter.field("pillars", &self.pillars);
        formatter.field("deletion_protection", &self.deletion_protection);
        formatter.finish()
    }
}