aws-sdk-cloudwatch 1.116.0

AWS SDK for Amazon CloudWatch
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 GetDatasetInput {
    /// <p>Specifies the identifier of the dataset to retrieve. For the <code>default</code> dataset, you can specify either <code>default</code> or the full dataset Amazon Resource Name (ARN) in the format <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:dataset/default</code>.</p>
    pub dataset_identifier: ::std::option::Option<::std::string::String>,
}
impl GetDatasetInput {
    /// <p>Specifies the identifier of the dataset to retrieve. For the <code>default</code> dataset, you can specify either <code>default</code> or the full dataset Amazon Resource Name (ARN) in the format <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:dataset/default</code>.</p>
    pub fn dataset_identifier(&self) -> ::std::option::Option<&str> {
        self.dataset_identifier.as_deref()
    }
}
impl GetDatasetInput {
    /// Creates a new builder-style object to manufacture [`GetDatasetInput`](crate::operation::get_dataset::GetDatasetInput).
    pub fn builder() -> crate::operation::get_dataset::builders::GetDatasetInputBuilder {
        crate::operation::get_dataset::builders::GetDatasetInputBuilder::default()
    }
}

/// A builder for [`GetDatasetInput`](crate::operation::get_dataset::GetDatasetInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDatasetInputBuilder {
    pub(crate) dataset_identifier: ::std::option::Option<::std::string::String>,
}
impl GetDatasetInputBuilder {
    /// <p>Specifies the identifier of the dataset to retrieve. For the <code>default</code> dataset, you can specify either <code>default</code> or the full dataset Amazon Resource Name (ARN) in the format <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:dataset/default</code>.</p>
    /// This field is required.
    pub fn dataset_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.dataset_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Specifies the identifier of the dataset to retrieve. For the <code>default</code> dataset, you can specify either <code>default</code> or the full dataset Amazon Resource Name (ARN) in the format <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:dataset/default</code>.</p>
    pub fn set_dataset_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.dataset_identifier = input;
        self
    }
    /// <p>Specifies the identifier of the dataset to retrieve. For the <code>default</code> dataset, you can specify either <code>default</code> or the full dataset Amazon Resource Name (ARN) in the format <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:dataset/default</code>.</p>
    pub fn get_dataset_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.dataset_identifier
    }
    /// Consumes the builder and constructs a [`GetDatasetInput`](crate::operation::get_dataset::GetDatasetInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::get_dataset::GetDatasetInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_dataset::GetDatasetInput {
            dataset_identifier: self.dataset_identifier,
        })
    }
}