aws-sdk-quicksight 1.134.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 UpdateTemplateAliasInput {
    /// <p>The ID of the Amazon Web Services account that contains the template alias that you're updating.</p>
    pub aws_account_id: ::std::option::Option<::std::string::String>,
    /// <p>The ID for the template.</p>
    pub template_id: ::std::option::Option<::std::string::String>,
    /// <p>The alias of the template that you want to update. If you name a specific alias, you update the version that the alias points to. You can specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter. The keyword <code>$PUBLISHED</code> doesn't apply to templates.</p>
    pub alias_name: ::std::option::Option<::std::string::String>,
    /// <p>The version number of the template.</p>
    pub template_version_number: ::std::option::Option<i64>,
}
impl UpdateTemplateAliasInput {
    /// <p>The ID of the Amazon Web Services account that contains the template alias that you're updating.</p>
    pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
        self.aws_account_id.as_deref()
    }
    /// <p>The ID for the template.</p>
    pub fn template_id(&self) -> ::std::option::Option<&str> {
        self.template_id.as_deref()
    }
    /// <p>The alias of the template that you want to update. If you name a specific alias, you update the version that the alias points to. You can specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter. The keyword <code>$PUBLISHED</code> doesn't apply to templates.</p>
    pub fn alias_name(&self) -> ::std::option::Option<&str> {
        self.alias_name.as_deref()
    }
    /// <p>The version number of the template.</p>
    pub fn template_version_number(&self) -> ::std::option::Option<i64> {
        self.template_version_number
    }
}
impl UpdateTemplateAliasInput {
    /// Creates a new builder-style object to manufacture [`UpdateTemplateAliasInput`](crate::operation::update_template_alias::UpdateTemplateAliasInput).
    pub fn builder() -> crate::operation::update_template_alias::builders::UpdateTemplateAliasInputBuilder {
        crate::operation::update_template_alias::builders::UpdateTemplateAliasInputBuilder::default()
    }
}

/// A builder for [`UpdateTemplateAliasInput`](crate::operation::update_template_alias::UpdateTemplateAliasInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateTemplateAliasInputBuilder {
    pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
    pub(crate) template_id: ::std::option::Option<::std::string::String>,
    pub(crate) alias_name: ::std::option::Option<::std::string::String>,
    pub(crate) template_version_number: ::std::option::Option<i64>,
}
impl UpdateTemplateAliasInputBuilder {
    /// <p>The ID of the Amazon Web Services account that contains the template alias that you're updating.</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 template alias that you're updating.</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 template alias that you're updating.</p>
    pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.aws_account_id
    }
    /// <p>The ID for the template.</p>
    /// This field is required.
    pub fn template_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.template_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID for the template.</p>
    pub fn set_template_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.template_id = input;
        self
    }
    /// <p>The ID for the template.</p>
    pub fn get_template_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.template_id
    }
    /// <p>The alias of the template that you want to update. If you name a specific alias, you update the version that the alias points to. You can specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter. The keyword <code>$PUBLISHED</code> doesn't apply to templates.</p>
    /// This field is required.
    pub fn alias_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.alias_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The alias of the template that you want to update. If you name a specific alias, you update the version that the alias points to. You can specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter. The keyword <code>$PUBLISHED</code> doesn't apply to templates.</p>
    pub fn set_alias_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.alias_name = input;
        self
    }
    /// <p>The alias of the template that you want to update. If you name a specific alias, you update the version that the alias points to. You can specify the latest version of the template by providing the keyword <code>$LATEST</code> in the <code>AliasName</code> parameter. The keyword <code>$PUBLISHED</code> doesn't apply to templates.</p>
    pub fn get_alias_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.alias_name
    }
    /// <p>The version number of the template.</p>
    /// This field is required.
    pub fn template_version_number(mut self, input: i64) -> Self {
        self.template_version_number = ::std::option::Option::Some(input);
        self
    }
    /// <p>The version number of the template.</p>
    pub fn set_template_version_number(mut self, input: ::std::option::Option<i64>) -> Self {
        self.template_version_number = input;
        self
    }
    /// <p>The version number of the template.</p>
    pub fn get_template_version_number(&self) -> &::std::option::Option<i64> {
        &self.template_version_number
    }
    /// Consumes the builder and constructs a [`UpdateTemplateAliasInput`](crate::operation::update_template_alias::UpdateTemplateAliasInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_template_alias::UpdateTemplateAliasInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_template_alias::UpdateTemplateAliasInput {
            aws_account_id: self.aws_account_id,
            template_id: self.template_id,
            alias_name: self.alias_name,
            template_version_number: self.template_version_number,
        })
    }
}