#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeQueryInput {
#[deprecated(note = "EventDataStore is no longer required by DescribeQueryRequest")]
pub event_data_store: ::std::option::Option<::std::string::String>,
pub query_id: ::std::option::Option<::std::string::String>,
pub query_alias: ::std::option::Option<::std::string::String>,
pub refresh_id: ::std::option::Option<::std::string::String>,
pub event_data_store_owner_account_id: ::std::option::Option<::std::string::String>,
}
impl DescribeQueryInput {
#[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()
}
pub fn query_id(&self) -> ::std::option::Option<&str> {
self.query_id.as_deref()
}
pub fn query_alias(&self) -> ::std::option::Option<&str> {
self.query_alias.as_deref()
}
pub fn refresh_id(&self) -> ::std::option::Option<&str> {
self.refresh_id.as_deref()
}
pub fn event_data_store_owner_account_id(&self) -> ::std::option::Option<&str> {
self.event_data_store_owner_account_id.as_deref()
}
}
impl DescribeQueryInput {
pub fn builder() -> crate::operation::describe_query::builders::DescribeQueryInputBuilder {
crate::operation::describe_query::builders::DescribeQueryInputBuilder::default()
}
}
#[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 {
#[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
}
#[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
}
#[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
}
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
}
pub fn set_query_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.query_id = input;
self
}
pub fn get_query_id(&self) -> &::std::option::Option<::std::string::String> {
&self.query_id
}
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
}
pub fn set_query_alias(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.query_alias = input;
self
}
pub fn get_query_alias(&self) -> &::std::option::Option<::std::string::String> {
&self.query_alias
}
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
}
pub fn set_refresh_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.refresh_id = input;
self
}
pub fn get_refresh_id(&self) -> &::std::option::Option<::std::string::String> {
&self.refresh_id
}
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
}
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
}
pub fn get_event_data_store_owner_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.event_data_store_owner_account_id
}
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,
})
}
}