#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetScheduledQueryOutput {
pub scheduled_query_arn: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub query_language: ::std::option::Option<crate::types::QueryLanguage>,
pub query_string: ::std::option::Option<::std::string::String>,
pub log_group_identifiers: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub schedule_expression: ::std::option::Option<::std::string::String>,
pub timezone: ::std::option::Option<::std::string::String>,
pub start_time_offset: ::std::option::Option<i64>,
pub destination_configuration: ::std::option::Option<crate::types::DestinationConfiguration>,
pub state: ::std::option::Option<crate::types::ScheduledQueryState>,
pub last_triggered_time: ::std::option::Option<i64>,
pub last_execution_status: ::std::option::Option<crate::types::ExecutionStatus>,
pub schedule_start_time: ::std::option::Option<i64>,
pub schedule_end_time: ::std::option::Option<i64>,
pub execution_role_arn: ::std::option::Option<::std::string::String>,
pub creation_time: ::std::option::Option<i64>,
pub last_updated_time: ::std::option::Option<i64>,
_request_id: Option<String>,
}
impl GetScheduledQueryOutput {
pub fn scheduled_query_arn(&self) -> ::std::option::Option<&str> {
self.scheduled_query_arn.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn query_language(&self) -> ::std::option::Option<&crate::types::QueryLanguage> {
self.query_language.as_ref()
}
pub fn query_string(&self) -> ::std::option::Option<&str> {
self.query_string.as_deref()
}
pub fn log_group_identifiers(&self) -> &[::std::string::String] {
self.log_group_identifiers.as_deref().unwrap_or_default()
}
pub fn schedule_expression(&self) -> ::std::option::Option<&str> {
self.schedule_expression.as_deref()
}
pub fn timezone(&self) -> ::std::option::Option<&str> {
self.timezone.as_deref()
}
pub fn start_time_offset(&self) -> ::std::option::Option<i64> {
self.start_time_offset
}
pub fn destination_configuration(&self) -> ::std::option::Option<&crate::types::DestinationConfiguration> {
self.destination_configuration.as_ref()
}
pub fn state(&self) -> ::std::option::Option<&crate::types::ScheduledQueryState> {
self.state.as_ref()
}
pub fn last_triggered_time(&self) -> ::std::option::Option<i64> {
self.last_triggered_time
}
pub fn last_execution_status(&self) -> ::std::option::Option<&crate::types::ExecutionStatus> {
self.last_execution_status.as_ref()
}
pub fn schedule_start_time(&self) -> ::std::option::Option<i64> {
self.schedule_start_time
}
pub fn schedule_end_time(&self) -> ::std::option::Option<i64> {
self.schedule_end_time
}
pub fn execution_role_arn(&self) -> ::std::option::Option<&str> {
self.execution_role_arn.as_deref()
}
pub fn creation_time(&self) -> ::std::option::Option<i64> {
self.creation_time
}
pub fn last_updated_time(&self) -> ::std::option::Option<i64> {
self.last_updated_time
}
}
impl ::aws_types::request_id::RequestId for GetScheduledQueryOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetScheduledQueryOutput {
pub fn builder() -> crate::operation::get_scheduled_query::builders::GetScheduledQueryOutputBuilder {
crate::operation::get_scheduled_query::builders::GetScheduledQueryOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetScheduledQueryOutputBuilder {
pub(crate) scheduled_query_arn: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) query_language: ::std::option::Option<crate::types::QueryLanguage>,
pub(crate) query_string: ::std::option::Option<::std::string::String>,
pub(crate) log_group_identifiers: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) schedule_expression: ::std::option::Option<::std::string::String>,
pub(crate) timezone: ::std::option::Option<::std::string::String>,
pub(crate) start_time_offset: ::std::option::Option<i64>,
pub(crate) destination_configuration: ::std::option::Option<crate::types::DestinationConfiguration>,
pub(crate) state: ::std::option::Option<crate::types::ScheduledQueryState>,
pub(crate) last_triggered_time: ::std::option::Option<i64>,
pub(crate) last_execution_status: ::std::option::Option<crate::types::ExecutionStatus>,
pub(crate) schedule_start_time: ::std::option::Option<i64>,
pub(crate) schedule_end_time: ::std::option::Option<i64>,
pub(crate) execution_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) creation_time: ::std::option::Option<i64>,
pub(crate) last_updated_time: ::std::option::Option<i64>,
_request_id: Option<String>,
}
impl GetScheduledQueryOutputBuilder {
pub fn scheduled_query_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.scheduled_query_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_scheduled_query_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.scheduled_query_arn = input;
self
}
pub fn get_scheduled_query_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.scheduled_query_arn
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn query_language(mut self, input: crate::types::QueryLanguage) -> Self {
self.query_language = ::std::option::Option::Some(input);
self
}
pub fn set_query_language(mut self, input: ::std::option::Option<crate::types::QueryLanguage>) -> Self {
self.query_language = input;
self
}
pub fn get_query_language(&self) -> &::std::option::Option<crate::types::QueryLanguage> {
&self.query_language
}
pub fn query_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.query_string = ::std::option::Option::Some(input.into());
self
}
pub fn set_query_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.query_string = input;
self
}
pub fn get_query_string(&self) -> &::std::option::Option<::std::string::String> {
&self.query_string
}
pub fn log_group_identifiers(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.log_group_identifiers.unwrap_or_default();
v.push(input.into());
self.log_group_identifiers = ::std::option::Option::Some(v);
self
}
pub fn set_log_group_identifiers(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.log_group_identifiers = input;
self
}
pub fn get_log_group_identifiers(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.log_group_identifiers
}
pub fn schedule_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schedule_expression = ::std::option::Option::Some(input.into());
self
}
pub fn set_schedule_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schedule_expression = input;
self
}
pub fn get_schedule_expression(&self) -> &::std::option::Option<::std::string::String> {
&self.schedule_expression
}
pub fn timezone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.timezone = ::std::option::Option::Some(input.into());
self
}
pub fn set_timezone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.timezone = input;
self
}
pub fn get_timezone(&self) -> &::std::option::Option<::std::string::String> {
&self.timezone
}
pub fn start_time_offset(mut self, input: i64) -> Self {
self.start_time_offset = ::std::option::Option::Some(input);
self
}
pub fn set_start_time_offset(mut self, input: ::std::option::Option<i64>) -> Self {
self.start_time_offset = input;
self
}
pub fn get_start_time_offset(&self) -> &::std::option::Option<i64> {
&self.start_time_offset
}
pub fn destination_configuration(mut self, input: crate::types::DestinationConfiguration) -> Self {
self.destination_configuration = ::std::option::Option::Some(input);
self
}
pub fn set_destination_configuration(mut self, input: ::std::option::Option<crate::types::DestinationConfiguration>) -> Self {
self.destination_configuration = input;
self
}
pub fn get_destination_configuration(&self) -> &::std::option::Option<crate::types::DestinationConfiguration> {
&self.destination_configuration
}
pub fn state(mut self, input: crate::types::ScheduledQueryState) -> Self {
self.state = ::std::option::Option::Some(input);
self
}
pub fn set_state(mut self, input: ::std::option::Option<crate::types::ScheduledQueryState>) -> Self {
self.state = input;
self
}
pub fn get_state(&self) -> &::std::option::Option<crate::types::ScheduledQueryState> {
&self.state
}
pub fn last_triggered_time(mut self, input: i64) -> Self {
self.last_triggered_time = ::std::option::Option::Some(input);
self
}
pub fn set_last_triggered_time(mut self, input: ::std::option::Option<i64>) -> Self {
self.last_triggered_time = input;
self
}
pub fn get_last_triggered_time(&self) -> &::std::option::Option<i64> {
&self.last_triggered_time
}
pub fn last_execution_status(mut self, input: crate::types::ExecutionStatus) -> Self {
self.last_execution_status = ::std::option::Option::Some(input);
self
}
pub fn set_last_execution_status(mut self, input: ::std::option::Option<crate::types::ExecutionStatus>) -> Self {
self.last_execution_status = input;
self
}
pub fn get_last_execution_status(&self) -> &::std::option::Option<crate::types::ExecutionStatus> {
&self.last_execution_status
}
pub fn schedule_start_time(mut self, input: i64) -> Self {
self.schedule_start_time = ::std::option::Option::Some(input);
self
}
pub fn set_schedule_start_time(mut self, input: ::std::option::Option<i64>) -> Self {
self.schedule_start_time = input;
self
}
pub fn get_schedule_start_time(&self) -> &::std::option::Option<i64> {
&self.schedule_start_time
}
pub fn schedule_end_time(mut self, input: i64) -> Self {
self.schedule_end_time = ::std::option::Option::Some(input);
self
}
pub fn set_schedule_end_time(mut self, input: ::std::option::Option<i64>) -> Self {
self.schedule_end_time = input;
self
}
pub fn get_schedule_end_time(&self) -> &::std::option::Option<i64> {
&self.schedule_end_time
}
pub fn execution_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.execution_role_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_execution_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.execution_role_arn = input;
self
}
pub fn get_execution_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.execution_role_arn
}
pub fn creation_time(mut self, input: i64) -> Self {
self.creation_time = ::std::option::Option::Some(input);
self
}
pub fn set_creation_time(mut self, input: ::std::option::Option<i64>) -> Self {
self.creation_time = input;
self
}
pub fn get_creation_time(&self) -> &::std::option::Option<i64> {
&self.creation_time
}
pub fn last_updated_time(mut self, input: i64) -> Self {
self.last_updated_time = ::std::option::Option::Some(input);
self
}
pub fn set_last_updated_time(mut self, input: ::std::option::Option<i64>) -> Self {
self.last_updated_time = input;
self
}
pub fn get_last_updated_time(&self) -> &::std::option::Option<i64> {
&self.last_updated_time
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_scheduled_query::GetScheduledQueryOutput {
crate::operation::get_scheduled_query::GetScheduledQueryOutput {
scheduled_query_arn: self.scheduled_query_arn,
name: self.name,
description: self.description,
query_language: self.query_language,
query_string: self.query_string,
log_group_identifiers: self.log_group_identifiers,
schedule_expression: self.schedule_expression,
timezone: self.timezone,
start_time_offset: self.start_time_offset,
destination_configuration: self.destination_configuration,
state: self.state,
last_triggered_time: self.last_triggered_time,
last_execution_status: self.last_execution_status,
schedule_start_time: self.schedule_start_time,
schedule_end_time: self.schedule_end_time,
execution_role_arn: self.execution_role_arn,
creation_time: self.creation_time,
last_updated_time: self.last_updated_time,
_request_id: self._request_id,
}
}
}