aws-sdk-quicksight 1.131.0

AWS SDK for Amazon QuickSight
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, ::std::fmt::Debug)]
pub struct UpdateSelfUpgradeInput {
    /// <p>The ID of the Amazon Web Services account that contains the self-upgrade request.</p>
    pub aws_account_id: ::std::option::Option<::std::string::String>,
    /// <p>The Quick namespace for the self-upgrade request.</p>
    pub namespace: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the self-upgrade request to update.</p>
    pub upgrade_request_id: ::std::option::Option<::std::string::String>,
    /// <p>The action to perform on the self-upgrade request. Valid values are <code>APPROVE</code>, <code>DENY</code>, or <code>VERIFY</code>.</p>
    pub action: ::std::option::Option<crate::types::SelfUpgradeAdminAction>,
}
impl UpdateSelfUpgradeInput {
    /// <p>The ID of the Amazon Web Services account that contains the self-upgrade request.</p>
    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
        self.aws_account_id.as_deref()
    }
    /// <p>The Quick namespace for the self-upgrade request.</p>
    pub fn namespace(&self) -> ::std::option::Option<&str> {
        self.namespace.as_deref()
    }
    /// <p>The ID of the self-upgrade request to update.</p>
    pub fn upgrade_request_id(&self) -> ::std::option::Option<&str> {
        self.upgrade_request_id.as_deref()
    }
    /// <p>The action to perform on the self-upgrade request. Valid values are <code>APPROVE</code>, <code>DENY</code>, or <code>VERIFY</code>.</p>
    pub fn action(&self) -> ::std::option::Option<&crate::types::SelfUpgradeAdminAction> {
        self.action.as_ref()
    }
}
impl UpdateSelfUpgradeInput {
    /// Creates a new builder-style object to manufacture [`UpdateSelfUpgradeInput`](crate::operation::update_self_upgrade::UpdateSelfUpgradeInput).
    pub fn builder() -> crate::operation::update_self_upgrade::builders::UpdateSelfUpgradeInputBuilder {
        crate::operation::update_self_upgrade::builders::UpdateSelfUpgradeInputBuilder::default()
    }
}

/// A builder for [`UpdateSelfUpgradeInput`](crate::operation::update_self_upgrade::UpdateSelfUpgradeInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateSelfUpgradeInputBuilder {
    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
    pub(crate) namespace: ::std::option::Option<::std::string::String>,
    pub(crate) upgrade_request_id: ::std::option::Option<::std::string::String>,
    pub(crate) action: ::std::option::Option<crate::types::SelfUpgradeAdminAction>,
}
impl UpdateSelfUpgradeInputBuilder {
    /// <p>The ID of the Amazon Web Services account that contains the self-upgrade request.</p>
    /// This field is required.
    pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.aws_account_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Amazon Web Services account that contains the self-upgrade request.</p>
    pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.aws_account_id = input;
        self
    }
    /// <p>The ID of the Amazon Web Services account that contains the self-upgrade request.</p>
    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.aws_account_id
    }
    /// <p>The Quick namespace for the self-upgrade request.</p>
    /// This field is required.
    pub fn namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.namespace = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Quick namespace for the self-upgrade request.</p>
    pub fn set_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.namespace = input;
        self
    }
    /// <p>The Quick namespace for the self-upgrade request.</p>
    pub fn get_namespace(&self) -> &::std::option::Option<::std::string::String> {
        &self.namespace
    }
    /// <p>The ID of the self-upgrade request to update.</p>
    /// This field is required.
    pub fn upgrade_request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.upgrade_request_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the self-upgrade request to update.</p>
    pub fn set_upgrade_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.upgrade_request_id = input;
        self
    }
    /// <p>The ID of the self-upgrade request to update.</p>
    pub fn get_upgrade_request_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.upgrade_request_id
    }
    /// <p>The action to perform on the self-upgrade request. Valid values are <code>APPROVE</code>, <code>DENY</code>, or <code>VERIFY</code>.</p>
    /// This field is required.
    pub fn action(mut self, input: crate::types::SelfUpgradeAdminAction) -> Self {
        self.action = ::std::option::Option::Some(input);
        self
    }
    /// <p>The action to perform on the self-upgrade request. Valid values are <code>APPROVE</code>, <code>DENY</code>, or <code>VERIFY</code>.</p>
    pub fn set_action(mut self, input: ::std::option::Option<crate::types::SelfUpgradeAdminAction>) -> Self {
        self.action = input;
        self
    }
    /// <p>The action to perform on the self-upgrade request. Valid values are <code>APPROVE</code>, <code>DENY</code>, or <code>VERIFY</code>.</p>
    pub fn get_action(&self) -> &::std::option::Option<crate::types::SelfUpgradeAdminAction> {
        &self.action
    }
    /// Consumes the builder and constructs a [`UpdateSelfUpgradeInput`](crate::operation::update_self_upgrade::UpdateSelfUpgradeInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_self_upgrade::UpdateSelfUpgradeInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_self_upgrade::UpdateSelfUpgradeInput {
            aws_account_id: self.aws_account_id,
            namespace: self.namespace,
            upgrade_request_id: self.upgrade_request_id,
            action: self.action,
        })
    }
}