aws-sdk-cloudtrail 1.104.0

AWS SDK for AWS CloudTrail
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 DescribeQueryInput {
    /// <p>The ARN (or the ID suffix of the ARN) of an event data store on which the specified query was run.</p>
    #[deprecated(note = "EventDataStore is no longer required by DescribeQueryRequest")]
    pub event_data_store: ::std::option::Option<::std::string::String>,
    /// <p>The query ID.</p>
    pub query_id: ::std::option::Option<::std::string::String>,
    /// <p>The alias that identifies a query template.</p>
    pub query_alias: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the dashboard refresh.</p>
    pub refresh_id: ::std::option::Option<::std::string::String>,
    /// <p>The account ID of the event data store owner.</p>
    pub event_data_store_owner_account_id: ::std::option::Option<::std::string::String>,
}
impl DescribeQueryInput {
    /// <p>The ARN (or the ID suffix of the ARN) of an event data store on which the specified query was run.</p>
    #[deprecated(note = "EventDataStore is no longer required by DescribeQueryRequest")]
    pub fn event_data_store(&self) -> ::std::option::Option<&str> {
        self.event_data_store.as_deref()
    }
    /// <p>The query ID.</p>
    pub fn query_id(&self) -> ::std::option::Option<&str> {
        self.query_id.as_deref()
    }
    /// <p>The alias that identifies a query template.</p>
    pub fn query_alias(&self) -> ::std::option::Option<&str> {
        self.query_alias.as_deref()
    }
    /// <p>The ID of the dashboard refresh.</p>
    pub fn refresh_id(&self) -> ::std::option::Option<&str> {
        self.refresh_id.as_deref()
    }
    /// <p>The account ID of the event data store owner.</p>
    pub fn event_data_store_owner_account_id(&self) -> ::std::option::Option<&str> {
        self.event_data_store_owner_account_id.as_deref()
    }
}
impl DescribeQueryInput {
    /// Creates a new builder-style object to manufacture [`DescribeQueryInput`](crate::operation::describe_query::DescribeQueryInput).
    pub fn builder() -> crate::operation::describe_query::builders::DescribeQueryInputBuilder {
        crate::operation::describe_query::builders::DescribeQueryInputBuilder::default()
    }
}

/// A builder for [`DescribeQueryInput`](crate::operation::describe_query::DescribeQueryInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeQueryInputBuilder {
    pub(crate) event_data_store: ::std::option::Option<::std::string::String>,
    pub(crate) query_id: ::std::option::Option<::std::string::String>,
    pub(crate) query_alias: ::std::option::Option<::std::string::String>,
    pub(crate) refresh_id: ::std::option::Option<::std::string::String>,
    pub(crate) event_data_store_owner_account_id: ::std::option::Option<::std::string::String>,
}
impl DescribeQueryInputBuilder {
    /// <p>The ARN (or the ID suffix of the ARN) of an event data store on which the specified query was run.</p>
    #[deprecated(note = "EventDataStore is no longer required by DescribeQueryRequest")]
    pub fn event_data_store(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.event_data_store = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN (or the ID suffix of the ARN) of an event data store on which the specified query was run.</p>
    #[deprecated(note = "EventDataStore is no longer required by DescribeQueryRequest")]
    pub fn set_event_data_store(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.event_data_store = input;
        self
    }
    /// <p>The ARN (or the ID suffix of the ARN) of an event data store on which the specified query was run.</p>
    #[deprecated(note = "EventDataStore is no longer required by DescribeQueryRequest")]
    pub fn get_event_data_store(&self) -> &::std::option::Option<::std::string::String> {
        &self.event_data_store
    }
    /// <p>The query ID.</p>
    pub fn query_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.query_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The query ID.</p>
    pub fn set_query_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.query_id = input;
        self
    }
    /// <p>The query ID.</p>
    pub fn get_query_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.query_id
    }
    /// <p>The alias that identifies a query template.</p>
    pub fn query_alias(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.query_alias = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The alias that identifies a query template.</p>
    pub fn set_query_alias(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.query_alias = input;
        self
    }
    /// <p>The alias that identifies a query template.</p>
    pub fn get_query_alias(&self) -> &::std::option::Option<::std::string::String> {
        &self.query_alias
    }
    /// <p>The ID of the dashboard refresh.</p>
    pub fn refresh_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.refresh_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the dashboard refresh.</p>
    pub fn set_refresh_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.refresh_id = input;
        self
    }
    /// <p>The ID of the dashboard refresh.</p>
    pub fn get_refresh_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.refresh_id
    }
    /// <p>The account ID of the event data store owner.</p>
    pub fn event_data_store_owner_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.event_data_store_owner_account_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The account ID of the event data store owner.</p>
    pub fn set_event_data_store_owner_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.event_data_store_owner_account_id = input;
        self
    }
    /// <p>The account ID of the event data store owner.</p>
    pub fn get_event_data_store_owner_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.event_data_store_owner_account_id
    }
    /// Consumes the builder and constructs a [`DescribeQueryInput`](crate::operation::describe_query::DescribeQueryInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_query::DescribeQueryInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_query::DescribeQueryInput {
            event_data_store: self.event_data_store,
            query_id: self.query_id,
            query_alias: self.query_alias,
            refresh_id: self.refresh_id,
            event_data_store_owner_account_id: self.event_data_store_owner_account_id,
        })
    }
}