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 GetQueryResultsInput {
    /// <p>The ARN (or ID suffix of the ARN) of the event data store against which the query was run.</p>
    #[deprecated(note = "EventDataStore is no longer required by GetQueryResultsRequest")]
    pub event_data_store: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the query for which you want to get results.</p>
    pub query_id: ::std::option::Option<::std::string::String>,
    /// <p>A token you can use to get the next page of query results.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
    /// <p>The maximum number of query results to display on a single page.</p>
    pub max_query_results: ::std::option::Option<i32>,
    /// <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 GetQueryResultsInput {
    /// <p>The ARN (or ID suffix of the ARN) of the event data store against which the query was run.</p>
    #[deprecated(note = "EventDataStore is no longer required by GetQueryResultsRequest")]
    pub fn event_data_store(&self) -> ::std::option::Option<&str> {
        self.event_data_store.as_deref()
    }
    /// <p>The ID of the query for which you want to get results.</p>
    pub fn query_id(&self) -> ::std::option::Option<&str> {
        self.query_id.as_deref()
    }
    /// <p>A token you can use to get the next page of query results.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
    /// <p>The maximum number of query results to display on a single page.</p>
    pub fn max_query_results(&self) -> ::std::option::Option<i32> {
        self.max_query_results
    }
    /// <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 GetQueryResultsInput {
    /// Creates a new builder-style object to manufacture [`GetQueryResultsInput`](crate::operation::get_query_results::GetQueryResultsInput).
    pub fn builder() -> crate::operation::get_query_results::builders::GetQueryResultsInputBuilder {
        crate::operation::get_query_results::builders::GetQueryResultsInputBuilder::default()
    }
}

/// A builder for [`GetQueryResultsInput`](crate::operation::get_query_results::GetQueryResultsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetQueryResultsInputBuilder {
    pub(crate) event_data_store: ::std::option::Option<::std::string::String>,
    pub(crate) query_id: ::std::option::Option<::std::string::String>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
    pub(crate) max_query_results: ::std::option::Option<i32>,
    pub(crate) event_data_store_owner_account_id: ::std::option::Option<::std::string::String>,
}
impl GetQueryResultsInputBuilder {
    /// <p>The ARN (or ID suffix of the ARN) of the event data store against which the query was run.</p>
    #[deprecated(note = "EventDataStore is no longer required by GetQueryResultsRequest")]
    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 ID suffix of the ARN) of the event data store against which the query was run.</p>
    #[deprecated(note = "EventDataStore is no longer required by GetQueryResultsRequest")]
    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 ID suffix of the ARN) of the event data store against which the query was run.</p>
    #[deprecated(note = "EventDataStore is no longer required by GetQueryResultsRequest")]
    pub fn get_event_data_store(&self) -> &::std::option::Option<::std::string::String> {
        &self.event_data_store
    }
    /// <p>The ID of the query for which you want to get results.</p>
    /// This field is required.
    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 ID of the query for which you want to get results.</p>
    pub fn set_query_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.query_id = input;
        self
    }
    /// <p>The ID of the query for which you want to get results.</p>
    pub fn get_query_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.query_id
    }
    /// <p>A token you can use to get the next page of query results.</p>
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.next_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A token you can use to get the next page of query results.</p>
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>A token you can use to get the next page of query results.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// <p>The maximum number of query results to display on a single page.</p>
    pub fn max_query_results(mut self, input: i32) -> Self {
        self.max_query_results = ::std::option::Option::Some(input);
        self
    }
    /// <p>The maximum number of query results to display on a single page.</p>
    pub fn set_max_query_results(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_query_results = input;
        self
    }
    /// <p>The maximum number of query results to display on a single page.</p>
    pub fn get_max_query_results(&self) -> &::std::option::Option<i32> {
        &self.max_query_results
    }
    /// <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 [`GetQueryResultsInput`](crate::operation::get_query_results::GetQueryResultsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_query_results::GetQueryResultsInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_query_results::GetQueryResultsInput {
            event_data_store: self.event_data_store,
            query_id: self.query_id,
            next_token: self.next_token,
            max_query_results: self.max_query_results,
            event_data_store_owner_account_id: self.event_data_store_owner_account_id,
        })
    }
}