#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ListMonitoringExecutionsInput {
pub monitoring_schedule_name: ::std::option::Option<::std::string::String>,
pub endpoint_name: ::std::option::Option<::std::string::String>,
pub sort_by: ::std::option::Option<crate::types::MonitoringExecutionSortKey>,
pub sort_order: ::std::option::Option<crate::types::SortOrder>,
pub next_token: ::std::option::Option<::std::string::String>,
pub max_results: ::std::option::Option<i32>,
pub scheduled_time_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub scheduled_time_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub creation_time_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub creation_time_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub last_modified_time_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub last_modified_time_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub status_equals: ::std::option::Option<crate::types::ExecutionStatus>,
pub monitoring_job_definition_name: ::std::option::Option<::std::string::String>,
pub monitoring_type_equals: ::std::option::Option<crate::types::MonitoringType>,
}
impl ListMonitoringExecutionsInput {
pub fn monitoring_schedule_name(&self) -> ::std::option::Option<&str> {
self.monitoring_schedule_name.as_deref()
}
pub fn endpoint_name(&self) -> ::std::option::Option<&str> {
self.endpoint_name.as_deref()
}
pub fn sort_by(&self) -> ::std::option::Option<&crate::types::MonitoringExecutionSortKey> {
self.sort_by.as_ref()
}
pub fn sort_order(&self) -> ::std::option::Option<&crate::types::SortOrder> {
self.sort_order.as_ref()
}
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn max_results(&self) -> ::std::option::Option<i32> {
self.max_results
}
pub fn scheduled_time_before(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.scheduled_time_before.as_ref()
}
pub fn scheduled_time_after(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.scheduled_time_after.as_ref()
}
pub fn creation_time_before(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time_before.as_ref()
}
pub fn creation_time_after(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time_after.as_ref()
}
pub fn last_modified_time_before(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified_time_before.as_ref()
}
pub fn last_modified_time_after(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified_time_after.as_ref()
}
pub fn status_equals(&self) -> ::std::option::Option<&crate::types::ExecutionStatus> {
self.status_equals.as_ref()
}
pub fn monitoring_job_definition_name(&self) -> ::std::option::Option<&str> {
self.monitoring_job_definition_name.as_deref()
}
pub fn monitoring_type_equals(&self) -> ::std::option::Option<&crate::types::MonitoringType> {
self.monitoring_type_equals.as_ref()
}
}
impl ListMonitoringExecutionsInput {
pub fn builder() -> crate::operation::list_monitoring_executions::builders::ListMonitoringExecutionsInputBuilder {
crate::operation::list_monitoring_executions::builders::ListMonitoringExecutionsInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ListMonitoringExecutionsInputBuilder {
pub(crate) monitoring_schedule_name: ::std::option::Option<::std::string::String>,
pub(crate) endpoint_name: ::std::option::Option<::std::string::String>,
pub(crate) sort_by: ::std::option::Option<crate::types::MonitoringExecutionSortKey>,
pub(crate) sort_order: ::std::option::Option<crate::types::SortOrder>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
pub(crate) max_results: ::std::option::Option<i32>,
pub(crate) scheduled_time_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) scheduled_time_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) creation_time_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) creation_time_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modified_time_before: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modified_time_after: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) status_equals: ::std::option::Option<crate::types::ExecutionStatus>,
pub(crate) monitoring_job_definition_name: ::std::option::Option<::std::string::String>,
pub(crate) monitoring_type_equals: ::std::option::Option<crate::types::MonitoringType>,
}
impl ListMonitoringExecutionsInputBuilder {
pub fn monitoring_schedule_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.monitoring_schedule_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_monitoring_schedule_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.monitoring_schedule_name = input;
self
}
pub fn get_monitoring_schedule_name(&self) -> &::std::option::Option<::std::string::String> {
&self.monitoring_schedule_name
}
pub fn endpoint_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.endpoint_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_endpoint_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.endpoint_name = input;
self
}
pub fn get_endpoint_name(&self) -> &::std::option::Option<::std::string::String> {
&self.endpoint_name
}
pub fn sort_by(mut self, input: crate::types::MonitoringExecutionSortKey) -> Self {
self.sort_by = ::std::option::Option::Some(input);
self
}
pub fn set_sort_by(mut self, input: ::std::option::Option<crate::types::MonitoringExecutionSortKey>) -> Self {
self.sort_by = input;
self
}
pub fn get_sort_by(&self) -> &::std::option::Option<crate::types::MonitoringExecutionSortKey> {
&self.sort_by
}
pub fn sort_order(mut self, input: crate::types::SortOrder) -> Self {
self.sort_order = ::std::option::Option::Some(input);
self
}
pub fn set_sort_order(mut self, input: ::std::option::Option<crate::types::SortOrder>) -> Self {
self.sort_order = input;
self
}
pub fn get_sort_order(&self) -> &::std::option::Option<crate::types::SortOrder> {
&self.sort_order
}
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
}
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
pub fn max_results(mut self, input: i32) -> Self {
self.max_results = ::std::option::Option::Some(input);
self
}
pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_results = input;
self
}
pub fn get_max_results(&self) -> &::std::option::Option<i32> {
&self.max_results
}
pub fn scheduled_time_before(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.scheduled_time_before = ::std::option::Option::Some(input);
self
}
pub fn set_scheduled_time_before(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.scheduled_time_before = input;
self
}
pub fn get_scheduled_time_before(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.scheduled_time_before
}
pub fn scheduled_time_after(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.scheduled_time_after = ::std::option::Option::Some(input);
self
}
pub fn set_scheduled_time_after(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.scheduled_time_after = input;
self
}
pub fn get_scheduled_time_after(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.scheduled_time_after
}
pub fn creation_time_before(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time_before = ::std::option::Option::Some(input);
self
}
pub fn set_creation_time_before(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_time_before = input;
self
}
pub fn get_creation_time_before(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time_before
}
pub fn creation_time_after(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time_after = ::std::option::Option::Some(input);
self
}
pub fn set_creation_time_after(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_time_after = input;
self
}
pub fn get_creation_time_after(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time_after
}
pub fn last_modified_time_before(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified_time_before = ::std::option::Option::Some(input);
self
}
pub fn set_last_modified_time_before(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified_time_before = input;
self
}
pub fn get_last_modified_time_before(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified_time_before
}
pub fn last_modified_time_after(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified_time_after = ::std::option::Option::Some(input);
self
}
pub fn set_last_modified_time_after(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified_time_after = input;
self
}
pub fn get_last_modified_time_after(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified_time_after
}
pub fn status_equals(mut self, input: crate::types::ExecutionStatus) -> Self {
self.status_equals = ::std::option::Option::Some(input);
self
}
pub fn set_status_equals(mut self, input: ::std::option::Option<crate::types::ExecutionStatus>) -> Self {
self.status_equals = input;
self
}
pub fn get_status_equals(&self) -> &::std::option::Option<crate::types::ExecutionStatus> {
&self.status_equals
}
pub fn monitoring_job_definition_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.monitoring_job_definition_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_monitoring_job_definition_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.monitoring_job_definition_name = input;
self
}
pub fn get_monitoring_job_definition_name(&self) -> &::std::option::Option<::std::string::String> {
&self.monitoring_job_definition_name
}
pub fn monitoring_type_equals(mut self, input: crate::types::MonitoringType) -> Self {
self.monitoring_type_equals = ::std::option::Option::Some(input);
self
}
pub fn set_monitoring_type_equals(mut self, input: ::std::option::Option<crate::types::MonitoringType>) -> Self {
self.monitoring_type_equals = input;
self
}
pub fn get_monitoring_type_equals(&self) -> &::std::option::Option<crate::types::MonitoringType> {
&self.monitoring_type_equals
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::list_monitoring_executions::ListMonitoringExecutionsInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::list_monitoring_executions::ListMonitoringExecutionsInput {
monitoring_schedule_name: self.monitoring_schedule_name,
endpoint_name: self.endpoint_name,
sort_by: self.sort_by,
sort_order: self.sort_order,
next_token: self.next_token,
max_results: self.max_results,
scheduled_time_before: self.scheduled_time_before,
scheduled_time_after: self.scheduled_time_after,
creation_time_before: self.creation_time_before,
creation_time_after: self.creation_time_after,
last_modified_time_before: self.last_modified_time_before,
last_modified_time_after: self.last_modified_time_after,
status_equals: self.status_equals,
monitoring_job_definition_name: self.monitoring_job_definition_name,
monitoring_type_equals: self.monitoring_type_equals,
})
}
}