#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ValidationExceptionReason {
#[allow(missing_docs)] ApiDoesNotSupportLabeledArns,
#[allow(missing_docs)] CannotUpdateCompletedMapRun,
#[allow(missing_docs)] MissingRequiredParameter,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ValidationExceptionReason {
fn from(s: &str) -> Self {
match s {
"API_DOES_NOT_SUPPORT_LABELED_ARNS" => {
ValidationExceptionReason::ApiDoesNotSupportLabeledArns
}
"CANNOT_UPDATE_COMPLETED_MAP_RUN" => {
ValidationExceptionReason::CannotUpdateCompletedMapRun
}
"MISSING_REQUIRED_PARAMETER" => ValidationExceptionReason::MissingRequiredParameter,
other => ValidationExceptionReason::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for ValidationExceptionReason {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ValidationExceptionReason::from(s))
}
}
impl ValidationExceptionReason {
pub fn as_str(&self) -> &str {
match self {
ValidationExceptionReason::ApiDoesNotSupportLabeledArns => {
"API_DOES_NOT_SUPPORT_LABELED_ARNS"
}
ValidationExceptionReason::CannotUpdateCompletedMapRun => {
"CANNOT_UPDATE_COMPLETED_MAP_RUN"
}
ValidationExceptionReason::MissingRequiredParameter => "MISSING_REQUIRED_PARAMETER",
ValidationExceptionReason::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"API_DOES_NOT_SUPPORT_LABELED_ARNS",
"CANNOT_UPDATE_COMPLETED_MAP_RUN",
"MISSING_REQUIRED_PARAMETER",
]
}
}
impl AsRef<str> for ValidationExceptionReason {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TracingConfiguration {
#[doc(hidden)]
pub enabled: bool,
}
impl TracingConfiguration {
pub fn enabled(&self) -> bool {
self.enabled
}
}
pub mod tracing_configuration {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) enabled: std::option::Option<bool>,
}
impl Builder {
pub fn enabled(mut self, input: bool) -> Self {
self.enabled = Some(input);
self
}
pub fn set_enabled(mut self, input: std::option::Option<bool>) -> Self {
self.enabled = input;
self
}
pub fn build(self) -> crate::model::TracingConfiguration {
crate::model::TracingConfiguration {
enabled: self.enabled.unwrap_or_default(),
}
}
}
}
impl TracingConfiguration {
pub fn builder() -> crate::model::tracing_configuration::Builder {
crate::model::tracing_configuration::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LoggingConfiguration {
#[doc(hidden)]
pub level: std::option::Option<crate::model::LogLevel>,
#[doc(hidden)]
pub include_execution_data: bool,
#[doc(hidden)]
pub destinations: std::option::Option<std::vec::Vec<crate::model::LogDestination>>,
}
impl LoggingConfiguration {
pub fn level(&self) -> std::option::Option<&crate::model::LogLevel> {
self.level.as_ref()
}
pub fn include_execution_data(&self) -> bool {
self.include_execution_data
}
pub fn destinations(&self) -> std::option::Option<&[crate::model::LogDestination]> {
self.destinations.as_deref()
}
}
pub mod logging_configuration {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) level: std::option::Option<crate::model::LogLevel>,
pub(crate) include_execution_data: std::option::Option<bool>,
pub(crate) destinations: std::option::Option<std::vec::Vec<crate::model::LogDestination>>,
}
impl Builder {
pub fn level(mut self, input: crate::model::LogLevel) -> Self {
self.level = Some(input);
self
}
pub fn set_level(mut self, input: std::option::Option<crate::model::LogLevel>) -> Self {
self.level = input;
self
}
pub fn include_execution_data(mut self, input: bool) -> Self {
self.include_execution_data = Some(input);
self
}
pub fn set_include_execution_data(mut self, input: std::option::Option<bool>) -> Self {
self.include_execution_data = input;
self
}
pub fn destinations(mut self, input: crate::model::LogDestination) -> Self {
let mut v = self.destinations.unwrap_or_default();
v.push(input);
self.destinations = Some(v);
self
}
pub fn set_destinations(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::LogDestination>>,
) -> Self {
self.destinations = input;
self
}
pub fn build(self) -> crate::model::LoggingConfiguration {
crate::model::LoggingConfiguration {
level: self.level,
include_execution_data: self.include_execution_data.unwrap_or_default(),
destinations: self.destinations,
}
}
}
}
impl LoggingConfiguration {
pub fn builder() -> crate::model::logging_configuration::Builder {
crate::model::logging_configuration::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LogDestination {
#[doc(hidden)]
pub cloud_watch_logs_log_group: std::option::Option<crate::model::CloudWatchLogsLogGroup>,
}
impl LogDestination {
pub fn cloud_watch_logs_log_group(
&self,
) -> std::option::Option<&crate::model::CloudWatchLogsLogGroup> {
self.cloud_watch_logs_log_group.as_ref()
}
}
pub mod log_destination {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) cloud_watch_logs_log_group:
std::option::Option<crate::model::CloudWatchLogsLogGroup>,
}
impl Builder {
pub fn cloud_watch_logs_log_group(
mut self,
input: crate::model::CloudWatchLogsLogGroup,
) -> Self {
self.cloud_watch_logs_log_group = Some(input);
self
}
pub fn set_cloud_watch_logs_log_group(
mut self,
input: std::option::Option<crate::model::CloudWatchLogsLogGroup>,
) -> Self {
self.cloud_watch_logs_log_group = input;
self
}
pub fn build(self) -> crate::model::LogDestination {
crate::model::LogDestination {
cloud_watch_logs_log_group: self.cloud_watch_logs_log_group,
}
}
}
}
impl LogDestination {
pub fn builder() -> crate::model::log_destination::Builder {
crate::model::log_destination::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CloudWatchLogsLogGroup {
#[doc(hidden)]
pub log_group_arn: std::option::Option<std::string::String>,
}
impl CloudWatchLogsLogGroup {
pub fn log_group_arn(&self) -> std::option::Option<&str> {
self.log_group_arn.as_deref()
}
}
pub mod cloud_watch_logs_log_group {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) log_group_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn log_group_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.log_group_arn = Some(input.into());
self
}
pub fn set_log_group_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.log_group_arn = input;
self
}
pub fn build(self) -> crate::model::CloudWatchLogsLogGroup {
crate::model::CloudWatchLogsLogGroup {
log_group_arn: self.log_group_arn,
}
}
}
}
impl CloudWatchLogsLogGroup {
pub fn builder() -> crate::model::cloud_watch_logs_log_group::Builder {
crate::model::cloud_watch_logs_log_group::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum LogLevel {
#[allow(missing_docs)] All,
#[allow(missing_docs)] Error,
#[allow(missing_docs)] Fatal,
#[allow(missing_docs)] Off,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for LogLevel {
fn from(s: &str) -> Self {
match s {
"ALL" => LogLevel::All,
"ERROR" => LogLevel::Error,
"FATAL" => LogLevel::Fatal,
"OFF" => LogLevel::Off,
other => LogLevel::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for LogLevel {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(LogLevel::from(s))
}
}
impl LogLevel {
pub fn as_str(&self) -> &str {
match self {
LogLevel::All => "ALL",
LogLevel::Error => "ERROR",
LogLevel::Fatal => "FATAL",
LogLevel::Off => "OFF",
LogLevel::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ALL", "ERROR", "FATAL", "OFF"]
}
}
impl AsRef<str> for LogLevel {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Tag {
#[doc(hidden)]
pub key: std::option::Option<std::string::String>,
#[doc(hidden)]
pub value: std::option::Option<std::string::String>,
}
impl Tag {
pub fn key(&self) -> std::option::Option<&str> {
self.key.as_deref()
}
pub fn value(&self) -> std::option::Option<&str> {
self.value.as_deref()
}
}
pub mod tag {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) key: std::option::Option<std::string::String>,
pub(crate) value: std::option::Option<std::string::String>,
}
impl Builder {
pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
self.key = Some(input.into());
self
}
pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.key = input;
self
}
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
self.value = Some(input.into());
self
}
pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
self.value = input;
self
}
pub fn build(self) -> crate::model::Tag {
crate::model::Tag {
key: self.key,
value: self.value,
}
}
}
}
impl Tag {
pub fn builder() -> crate::model::tag::Builder {
crate::model::tag::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BillingDetails {
#[doc(hidden)]
pub billed_memory_used_in_mb: i64,
#[doc(hidden)]
pub billed_duration_in_milliseconds: i64,
}
impl BillingDetails {
pub fn billed_memory_used_in_mb(&self) -> i64 {
self.billed_memory_used_in_mb
}
pub fn billed_duration_in_milliseconds(&self) -> i64 {
self.billed_duration_in_milliseconds
}
}
pub mod billing_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) billed_memory_used_in_mb: std::option::Option<i64>,
pub(crate) billed_duration_in_milliseconds: std::option::Option<i64>,
}
impl Builder {
pub fn billed_memory_used_in_mb(mut self, input: i64) -> Self {
self.billed_memory_used_in_mb = Some(input);
self
}
pub fn set_billed_memory_used_in_mb(mut self, input: std::option::Option<i64>) -> Self {
self.billed_memory_used_in_mb = input;
self
}
pub fn billed_duration_in_milliseconds(mut self, input: i64) -> Self {
self.billed_duration_in_milliseconds = Some(input);
self
}
pub fn set_billed_duration_in_milliseconds(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.billed_duration_in_milliseconds = input;
self
}
pub fn build(self) -> crate::model::BillingDetails {
crate::model::BillingDetails {
billed_memory_used_in_mb: self.billed_memory_used_in_mb.unwrap_or_default(),
billed_duration_in_milliseconds: self
.billed_duration_in_milliseconds
.unwrap_or_default(),
}
}
}
}
impl BillingDetails {
pub fn builder() -> crate::model::billing_details::Builder {
crate::model::billing_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CloudWatchEventsExecutionDataDetails {
#[doc(hidden)]
pub included: bool,
}
impl CloudWatchEventsExecutionDataDetails {
pub fn included(&self) -> bool {
self.included
}
}
pub mod cloud_watch_events_execution_data_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) included: std::option::Option<bool>,
}
impl Builder {
pub fn included(mut self, input: bool) -> Self {
self.included = Some(input);
self
}
pub fn set_included(mut self, input: std::option::Option<bool>) -> Self {
self.included = input;
self
}
pub fn build(self) -> crate::model::CloudWatchEventsExecutionDataDetails {
crate::model::CloudWatchEventsExecutionDataDetails {
included: self.included.unwrap_or_default(),
}
}
}
}
impl CloudWatchEventsExecutionDataDetails {
pub fn builder() -> crate::model::cloud_watch_events_execution_data_details::Builder {
crate::model::cloud_watch_events_execution_data_details::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum SyncExecutionStatus {
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] Succeeded,
#[allow(missing_docs)] TimedOut,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for SyncExecutionStatus {
fn from(s: &str) -> Self {
match s {
"FAILED" => SyncExecutionStatus::Failed,
"SUCCEEDED" => SyncExecutionStatus::Succeeded,
"TIMED_OUT" => SyncExecutionStatus::TimedOut,
other => {
SyncExecutionStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for SyncExecutionStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SyncExecutionStatus::from(s))
}
}
impl SyncExecutionStatus {
pub fn as_str(&self) -> &str {
match self {
SyncExecutionStatus::Failed => "FAILED",
SyncExecutionStatus::Succeeded => "SUCCEEDED",
SyncExecutionStatus::TimedOut => "TIMED_OUT",
SyncExecutionStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["FAILED", "SUCCEEDED", "TIMED_OUT"]
}
}
impl AsRef<str> for SyncExecutionStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StateMachineListItem {
#[doc(hidden)]
pub state_machine_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::StateMachineType>,
#[doc(hidden)]
pub creation_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl StateMachineListItem {
pub fn state_machine_arn(&self) -> std::option::Option<&str> {
self.state_machine_arn.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn r#type(&self) -> std::option::Option<&crate::model::StateMachineType> {
self.r#type.as_ref()
}
pub fn creation_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_date.as_ref()
}
}
pub mod state_machine_list_item {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) state_machine_arn: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) r#type: std::option::Option<crate::model::StateMachineType>,
pub(crate) creation_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn state_machine_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.state_machine_arn = Some(input.into());
self
}
pub fn set_state_machine_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.state_machine_arn = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn r#type(mut self, input: crate::model::StateMachineType) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(
mut self,
input: std::option::Option<crate::model::StateMachineType>,
) -> Self {
self.r#type = input;
self
}
pub fn creation_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_date = Some(input);
self
}
pub fn set_creation_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_date = input;
self
}
pub fn build(self) -> crate::model::StateMachineListItem {
crate::model::StateMachineListItem {
state_machine_arn: self.state_machine_arn,
name: self.name,
r#type: self.r#type,
creation_date: self.creation_date,
}
}
}
}
impl StateMachineListItem {
pub fn builder() -> crate::model::state_machine_list_item::Builder {
crate::model::state_machine_list_item::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum StateMachineType {
#[allow(missing_docs)] Express,
#[allow(missing_docs)] Standard,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for StateMachineType {
fn from(s: &str) -> Self {
match s {
"EXPRESS" => StateMachineType::Express,
"STANDARD" => StateMachineType::Standard,
other => StateMachineType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for StateMachineType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(StateMachineType::from(s))
}
}
impl StateMachineType {
pub fn as_str(&self) -> &str {
match self {
StateMachineType::Express => "EXPRESS",
StateMachineType::Standard => "STANDARD",
StateMachineType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["EXPRESS", "STANDARD"]
}
}
impl AsRef<str> for StateMachineType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MapRunListItem {
#[doc(hidden)]
pub execution_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub map_run_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub state_machine_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub start_date: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub stop_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl MapRunListItem {
pub fn execution_arn(&self) -> std::option::Option<&str> {
self.execution_arn.as_deref()
}
pub fn map_run_arn(&self) -> std::option::Option<&str> {
self.map_run_arn.as_deref()
}
pub fn state_machine_arn(&self) -> std::option::Option<&str> {
self.state_machine_arn.as_deref()
}
pub fn start_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.start_date.as_ref()
}
pub fn stop_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.stop_date.as_ref()
}
}
pub mod map_run_list_item {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) execution_arn: std::option::Option<std::string::String>,
pub(crate) map_run_arn: std::option::Option<std::string::String>,
pub(crate) state_machine_arn: std::option::Option<std::string::String>,
pub(crate) start_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) stop_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn execution_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.execution_arn = Some(input.into());
self
}
pub fn set_execution_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.execution_arn = input;
self
}
pub fn map_run_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.map_run_arn = Some(input.into());
self
}
pub fn set_map_run_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.map_run_arn = input;
self
}
pub fn state_machine_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.state_machine_arn = Some(input.into());
self
}
pub fn set_state_machine_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.state_machine_arn = input;
self
}
pub fn start_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.start_date = Some(input);
self
}
pub fn set_start_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.start_date = input;
self
}
pub fn stop_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.stop_date = Some(input);
self
}
pub fn set_stop_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.stop_date = input;
self
}
pub fn build(self) -> crate::model::MapRunListItem {
crate::model::MapRunListItem {
execution_arn: self.execution_arn,
map_run_arn: self.map_run_arn,
state_machine_arn: self.state_machine_arn,
start_date: self.start_date,
stop_date: self.stop_date,
}
}
}
}
impl MapRunListItem {
pub fn builder() -> crate::model::map_run_list_item::Builder {
crate::model::map_run_list_item::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ExecutionListItem {
#[doc(hidden)]
pub execution_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub state_machine_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::ExecutionStatus>,
#[doc(hidden)]
pub start_date: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub stop_date: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub map_run_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub item_count: std::option::Option<i32>,
}
impl ExecutionListItem {
pub fn execution_arn(&self) -> std::option::Option<&str> {
self.execution_arn.as_deref()
}
pub fn state_machine_arn(&self) -> std::option::Option<&str> {
self.state_machine_arn.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::ExecutionStatus> {
self.status.as_ref()
}
pub fn start_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.start_date.as_ref()
}
pub fn stop_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.stop_date.as_ref()
}
pub fn map_run_arn(&self) -> std::option::Option<&str> {
self.map_run_arn.as_deref()
}
pub fn item_count(&self) -> std::option::Option<i32> {
self.item_count
}
}
pub mod execution_list_item {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) execution_arn: std::option::Option<std::string::String>,
pub(crate) state_machine_arn: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::ExecutionStatus>,
pub(crate) start_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) stop_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) map_run_arn: std::option::Option<std::string::String>,
pub(crate) item_count: std::option::Option<i32>,
}
impl Builder {
pub fn execution_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.execution_arn = Some(input.into());
self
}
pub fn set_execution_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.execution_arn = input;
self
}
pub fn state_machine_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.state_machine_arn = Some(input.into());
self
}
pub fn set_state_machine_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.state_machine_arn = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn status(mut self, input: crate::model::ExecutionStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::ExecutionStatus>,
) -> Self {
self.status = input;
self
}
pub fn start_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.start_date = Some(input);
self
}
pub fn set_start_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.start_date = input;
self
}
pub fn stop_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.stop_date = Some(input);
self
}
pub fn set_stop_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.stop_date = input;
self
}
pub fn map_run_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.map_run_arn = Some(input.into());
self
}
pub fn set_map_run_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.map_run_arn = input;
self
}
pub fn item_count(mut self, input: i32) -> Self {
self.item_count = Some(input);
self
}
pub fn set_item_count(mut self, input: std::option::Option<i32>) -> Self {
self.item_count = input;
self
}
pub fn build(self) -> crate::model::ExecutionListItem {
crate::model::ExecutionListItem {
execution_arn: self.execution_arn,
state_machine_arn: self.state_machine_arn,
name: self.name,
status: self.status,
start_date: self.start_date,
stop_date: self.stop_date,
map_run_arn: self.map_run_arn,
item_count: self.item_count,
}
}
}
}
impl ExecutionListItem {
pub fn builder() -> crate::model::execution_list_item::Builder {
crate::model::execution_list_item::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ExecutionStatus {
#[allow(missing_docs)] Aborted,
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] Running,
#[allow(missing_docs)] Succeeded,
#[allow(missing_docs)] TimedOut,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ExecutionStatus {
fn from(s: &str) -> Self {
match s {
"ABORTED" => ExecutionStatus::Aborted,
"FAILED" => ExecutionStatus::Failed,
"RUNNING" => ExecutionStatus::Running,
"SUCCEEDED" => ExecutionStatus::Succeeded,
"TIMED_OUT" => ExecutionStatus::TimedOut,
other => ExecutionStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ExecutionStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ExecutionStatus::from(s))
}
}
impl ExecutionStatus {
pub fn as_str(&self) -> &str {
match self {
ExecutionStatus::Aborted => "ABORTED",
ExecutionStatus::Failed => "FAILED",
ExecutionStatus::Running => "RUNNING",
ExecutionStatus::Succeeded => "SUCCEEDED",
ExecutionStatus::TimedOut => "TIMED_OUT",
ExecutionStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ABORTED", "FAILED", "RUNNING", "SUCCEEDED", "TIMED_OUT"]
}
}
impl AsRef<str> for ExecutionStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ActivityListItem {
#[doc(hidden)]
pub activity_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub creation_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl ActivityListItem {
pub fn activity_arn(&self) -> std::option::Option<&str> {
self.activity_arn.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn creation_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_date.as_ref()
}
}
pub mod activity_list_item {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) activity_arn: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) creation_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn activity_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.activity_arn = Some(input.into());
self
}
pub fn set_activity_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.activity_arn = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn creation_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_date = Some(input);
self
}
pub fn set_creation_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_date = input;
self
}
pub fn build(self) -> crate::model::ActivityListItem {
crate::model::ActivityListItem {
activity_arn: self.activity_arn,
name: self.name,
creation_date: self.creation_date,
}
}
}
}
impl ActivityListItem {
pub fn builder() -> crate::model::activity_list_item::Builder {
crate::model::activity_list_item::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct HistoryEvent {
#[doc(hidden)]
pub timestamp: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::HistoryEventType>,
#[doc(hidden)]
pub id: i64,
#[doc(hidden)]
pub previous_event_id: i64,
#[doc(hidden)]
pub activity_failed_event_details:
std::option::Option<crate::model::ActivityFailedEventDetails>,
#[doc(hidden)]
pub activity_schedule_failed_event_details:
std::option::Option<crate::model::ActivityScheduleFailedEventDetails>,
#[doc(hidden)]
pub activity_scheduled_event_details:
std::option::Option<crate::model::ActivityScheduledEventDetails>,
#[doc(hidden)]
pub activity_started_event_details:
std::option::Option<crate::model::ActivityStartedEventDetails>,
#[doc(hidden)]
pub activity_succeeded_event_details:
std::option::Option<crate::model::ActivitySucceededEventDetails>,
#[doc(hidden)]
pub activity_timed_out_event_details:
std::option::Option<crate::model::ActivityTimedOutEventDetails>,
#[doc(hidden)]
pub task_failed_event_details: std::option::Option<crate::model::TaskFailedEventDetails>,
#[doc(hidden)]
pub task_scheduled_event_details: std::option::Option<crate::model::TaskScheduledEventDetails>,
#[doc(hidden)]
pub task_start_failed_event_details:
std::option::Option<crate::model::TaskStartFailedEventDetails>,
#[doc(hidden)]
pub task_started_event_details: std::option::Option<crate::model::TaskStartedEventDetails>,
#[doc(hidden)]
pub task_submit_failed_event_details:
std::option::Option<crate::model::TaskSubmitFailedEventDetails>,
#[doc(hidden)]
pub task_submitted_event_details: std::option::Option<crate::model::TaskSubmittedEventDetails>,
#[doc(hidden)]
pub task_succeeded_event_details: std::option::Option<crate::model::TaskSucceededEventDetails>,
#[doc(hidden)]
pub task_timed_out_event_details: std::option::Option<crate::model::TaskTimedOutEventDetails>,
#[doc(hidden)]
pub execution_failed_event_details:
std::option::Option<crate::model::ExecutionFailedEventDetails>,
#[doc(hidden)]
pub execution_started_event_details:
std::option::Option<crate::model::ExecutionStartedEventDetails>,
#[doc(hidden)]
pub execution_succeeded_event_details:
std::option::Option<crate::model::ExecutionSucceededEventDetails>,
#[doc(hidden)]
pub execution_aborted_event_details:
std::option::Option<crate::model::ExecutionAbortedEventDetails>,
#[doc(hidden)]
pub execution_timed_out_event_details:
std::option::Option<crate::model::ExecutionTimedOutEventDetails>,
#[doc(hidden)]
pub map_state_started_event_details:
std::option::Option<crate::model::MapStateStartedEventDetails>,
#[doc(hidden)]
pub map_iteration_started_event_details:
std::option::Option<crate::model::MapIterationEventDetails>,
#[doc(hidden)]
pub map_iteration_succeeded_event_details:
std::option::Option<crate::model::MapIterationEventDetails>,
#[doc(hidden)]
pub map_iteration_failed_event_details:
std::option::Option<crate::model::MapIterationEventDetails>,
#[doc(hidden)]
pub map_iteration_aborted_event_details:
std::option::Option<crate::model::MapIterationEventDetails>,
#[doc(hidden)]
pub lambda_function_failed_event_details:
std::option::Option<crate::model::LambdaFunctionFailedEventDetails>,
#[doc(hidden)]
pub lambda_function_schedule_failed_event_details:
std::option::Option<crate::model::LambdaFunctionScheduleFailedEventDetails>,
#[doc(hidden)]
pub lambda_function_scheduled_event_details:
std::option::Option<crate::model::LambdaFunctionScheduledEventDetails>,
#[doc(hidden)]
pub lambda_function_start_failed_event_details:
std::option::Option<crate::model::LambdaFunctionStartFailedEventDetails>,
#[doc(hidden)]
pub lambda_function_succeeded_event_details:
std::option::Option<crate::model::LambdaFunctionSucceededEventDetails>,
#[doc(hidden)]
pub lambda_function_timed_out_event_details:
std::option::Option<crate::model::LambdaFunctionTimedOutEventDetails>,
#[doc(hidden)]
pub state_entered_event_details: std::option::Option<crate::model::StateEnteredEventDetails>,
#[doc(hidden)]
pub state_exited_event_details: std::option::Option<crate::model::StateExitedEventDetails>,
#[doc(hidden)]
pub map_run_started_event_details: std::option::Option<crate::model::MapRunStartedEventDetails>,
#[doc(hidden)]
pub map_run_failed_event_details: std::option::Option<crate::model::MapRunFailedEventDetails>,
}
impl HistoryEvent {
pub fn timestamp(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.timestamp.as_ref()
}
pub fn r#type(&self) -> std::option::Option<&crate::model::HistoryEventType> {
self.r#type.as_ref()
}
pub fn id(&self) -> i64 {
self.id
}
pub fn previous_event_id(&self) -> i64 {
self.previous_event_id
}
pub fn activity_failed_event_details(
&self,
) -> std::option::Option<&crate::model::ActivityFailedEventDetails> {
self.activity_failed_event_details.as_ref()
}
pub fn activity_schedule_failed_event_details(
&self,
) -> std::option::Option<&crate::model::ActivityScheduleFailedEventDetails> {
self.activity_schedule_failed_event_details.as_ref()
}
pub fn activity_scheduled_event_details(
&self,
) -> std::option::Option<&crate::model::ActivityScheduledEventDetails> {
self.activity_scheduled_event_details.as_ref()
}
pub fn activity_started_event_details(
&self,
) -> std::option::Option<&crate::model::ActivityStartedEventDetails> {
self.activity_started_event_details.as_ref()
}
pub fn activity_succeeded_event_details(
&self,
) -> std::option::Option<&crate::model::ActivitySucceededEventDetails> {
self.activity_succeeded_event_details.as_ref()
}
pub fn activity_timed_out_event_details(
&self,
) -> std::option::Option<&crate::model::ActivityTimedOutEventDetails> {
self.activity_timed_out_event_details.as_ref()
}
pub fn task_failed_event_details(
&self,
) -> std::option::Option<&crate::model::TaskFailedEventDetails> {
self.task_failed_event_details.as_ref()
}
pub fn task_scheduled_event_details(
&self,
) -> std::option::Option<&crate::model::TaskScheduledEventDetails> {
self.task_scheduled_event_details.as_ref()
}
pub fn task_start_failed_event_details(
&self,
) -> std::option::Option<&crate::model::TaskStartFailedEventDetails> {
self.task_start_failed_event_details.as_ref()
}
pub fn task_started_event_details(
&self,
) -> std::option::Option<&crate::model::TaskStartedEventDetails> {
self.task_started_event_details.as_ref()
}
pub fn task_submit_failed_event_details(
&self,
) -> std::option::Option<&crate::model::TaskSubmitFailedEventDetails> {
self.task_submit_failed_event_details.as_ref()
}
pub fn task_submitted_event_details(
&self,
) -> std::option::Option<&crate::model::TaskSubmittedEventDetails> {
self.task_submitted_event_details.as_ref()
}
pub fn task_succeeded_event_details(
&self,
) -> std::option::Option<&crate::model::TaskSucceededEventDetails> {
self.task_succeeded_event_details.as_ref()
}
pub fn task_timed_out_event_details(
&self,
) -> std::option::Option<&crate::model::TaskTimedOutEventDetails> {
self.task_timed_out_event_details.as_ref()
}
pub fn execution_failed_event_details(
&self,
) -> std::option::Option<&crate::model::ExecutionFailedEventDetails> {
self.execution_failed_event_details.as_ref()
}
pub fn execution_started_event_details(
&self,
) -> std::option::Option<&crate::model::ExecutionStartedEventDetails> {
self.execution_started_event_details.as_ref()
}
pub fn execution_succeeded_event_details(
&self,
) -> std::option::Option<&crate::model::ExecutionSucceededEventDetails> {
self.execution_succeeded_event_details.as_ref()
}
pub fn execution_aborted_event_details(
&self,
) -> std::option::Option<&crate::model::ExecutionAbortedEventDetails> {
self.execution_aborted_event_details.as_ref()
}
pub fn execution_timed_out_event_details(
&self,
) -> std::option::Option<&crate::model::ExecutionTimedOutEventDetails> {
self.execution_timed_out_event_details.as_ref()
}
pub fn map_state_started_event_details(
&self,
) -> std::option::Option<&crate::model::MapStateStartedEventDetails> {
self.map_state_started_event_details.as_ref()
}
pub fn map_iteration_started_event_details(
&self,
) -> std::option::Option<&crate::model::MapIterationEventDetails> {
self.map_iteration_started_event_details.as_ref()
}
pub fn map_iteration_succeeded_event_details(
&self,
) -> std::option::Option<&crate::model::MapIterationEventDetails> {
self.map_iteration_succeeded_event_details.as_ref()
}
pub fn map_iteration_failed_event_details(
&self,
) -> std::option::Option<&crate::model::MapIterationEventDetails> {
self.map_iteration_failed_event_details.as_ref()
}
pub fn map_iteration_aborted_event_details(
&self,
) -> std::option::Option<&crate::model::MapIterationEventDetails> {
self.map_iteration_aborted_event_details.as_ref()
}
pub fn lambda_function_failed_event_details(
&self,
) -> std::option::Option<&crate::model::LambdaFunctionFailedEventDetails> {
self.lambda_function_failed_event_details.as_ref()
}
pub fn lambda_function_schedule_failed_event_details(
&self,
) -> std::option::Option<&crate::model::LambdaFunctionScheduleFailedEventDetails> {
self.lambda_function_schedule_failed_event_details.as_ref()
}
pub fn lambda_function_scheduled_event_details(
&self,
) -> std::option::Option<&crate::model::LambdaFunctionScheduledEventDetails> {
self.lambda_function_scheduled_event_details.as_ref()
}
pub fn lambda_function_start_failed_event_details(
&self,
) -> std::option::Option<&crate::model::LambdaFunctionStartFailedEventDetails> {
self.lambda_function_start_failed_event_details.as_ref()
}
pub fn lambda_function_succeeded_event_details(
&self,
) -> std::option::Option<&crate::model::LambdaFunctionSucceededEventDetails> {
self.lambda_function_succeeded_event_details.as_ref()
}
pub fn lambda_function_timed_out_event_details(
&self,
) -> std::option::Option<&crate::model::LambdaFunctionTimedOutEventDetails> {
self.lambda_function_timed_out_event_details.as_ref()
}
pub fn state_entered_event_details(
&self,
) -> std::option::Option<&crate::model::StateEnteredEventDetails> {
self.state_entered_event_details.as_ref()
}
pub fn state_exited_event_details(
&self,
) -> std::option::Option<&crate::model::StateExitedEventDetails> {
self.state_exited_event_details.as_ref()
}
pub fn map_run_started_event_details(
&self,
) -> std::option::Option<&crate::model::MapRunStartedEventDetails> {
self.map_run_started_event_details.as_ref()
}
pub fn map_run_failed_event_details(
&self,
) -> std::option::Option<&crate::model::MapRunFailedEventDetails> {
self.map_run_failed_event_details.as_ref()
}
}
pub mod history_event {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) timestamp: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) r#type: std::option::Option<crate::model::HistoryEventType>,
pub(crate) id: std::option::Option<i64>,
pub(crate) previous_event_id: std::option::Option<i64>,
pub(crate) activity_failed_event_details:
std::option::Option<crate::model::ActivityFailedEventDetails>,
pub(crate) activity_schedule_failed_event_details:
std::option::Option<crate::model::ActivityScheduleFailedEventDetails>,
pub(crate) activity_scheduled_event_details:
std::option::Option<crate::model::ActivityScheduledEventDetails>,
pub(crate) activity_started_event_details:
std::option::Option<crate::model::ActivityStartedEventDetails>,
pub(crate) activity_succeeded_event_details:
std::option::Option<crate::model::ActivitySucceededEventDetails>,
pub(crate) activity_timed_out_event_details:
std::option::Option<crate::model::ActivityTimedOutEventDetails>,
pub(crate) task_failed_event_details:
std::option::Option<crate::model::TaskFailedEventDetails>,
pub(crate) task_scheduled_event_details:
std::option::Option<crate::model::TaskScheduledEventDetails>,
pub(crate) task_start_failed_event_details:
std::option::Option<crate::model::TaskStartFailedEventDetails>,
pub(crate) task_started_event_details:
std::option::Option<crate::model::TaskStartedEventDetails>,
pub(crate) task_submit_failed_event_details:
std::option::Option<crate::model::TaskSubmitFailedEventDetails>,
pub(crate) task_submitted_event_details:
std::option::Option<crate::model::TaskSubmittedEventDetails>,
pub(crate) task_succeeded_event_details:
std::option::Option<crate::model::TaskSucceededEventDetails>,
pub(crate) task_timed_out_event_details:
std::option::Option<crate::model::TaskTimedOutEventDetails>,
pub(crate) execution_failed_event_details:
std::option::Option<crate::model::ExecutionFailedEventDetails>,
pub(crate) execution_started_event_details:
std::option::Option<crate::model::ExecutionStartedEventDetails>,
pub(crate) execution_succeeded_event_details:
std::option::Option<crate::model::ExecutionSucceededEventDetails>,
pub(crate) execution_aborted_event_details:
std::option::Option<crate::model::ExecutionAbortedEventDetails>,
pub(crate) execution_timed_out_event_details:
std::option::Option<crate::model::ExecutionTimedOutEventDetails>,
pub(crate) map_state_started_event_details:
std::option::Option<crate::model::MapStateStartedEventDetails>,
pub(crate) map_iteration_started_event_details:
std::option::Option<crate::model::MapIterationEventDetails>,
pub(crate) map_iteration_succeeded_event_details:
std::option::Option<crate::model::MapIterationEventDetails>,
pub(crate) map_iteration_failed_event_details:
std::option::Option<crate::model::MapIterationEventDetails>,
pub(crate) map_iteration_aborted_event_details:
std::option::Option<crate::model::MapIterationEventDetails>,
pub(crate) lambda_function_failed_event_details:
std::option::Option<crate::model::LambdaFunctionFailedEventDetails>,
pub(crate) lambda_function_schedule_failed_event_details:
std::option::Option<crate::model::LambdaFunctionScheduleFailedEventDetails>,
pub(crate) lambda_function_scheduled_event_details:
std::option::Option<crate::model::LambdaFunctionScheduledEventDetails>,
pub(crate) lambda_function_start_failed_event_details:
std::option::Option<crate::model::LambdaFunctionStartFailedEventDetails>,
pub(crate) lambda_function_succeeded_event_details:
std::option::Option<crate::model::LambdaFunctionSucceededEventDetails>,
pub(crate) lambda_function_timed_out_event_details:
std::option::Option<crate::model::LambdaFunctionTimedOutEventDetails>,
pub(crate) state_entered_event_details:
std::option::Option<crate::model::StateEnteredEventDetails>,
pub(crate) state_exited_event_details:
std::option::Option<crate::model::StateExitedEventDetails>,
pub(crate) map_run_started_event_details:
std::option::Option<crate::model::MapRunStartedEventDetails>,
pub(crate) map_run_failed_event_details:
std::option::Option<crate::model::MapRunFailedEventDetails>,
}
impl Builder {
pub fn timestamp(mut self, input: aws_smithy_types::DateTime) -> Self {
self.timestamp = Some(input);
self
}
pub fn set_timestamp(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.timestamp = input;
self
}
pub fn r#type(mut self, input: crate::model::HistoryEventType) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(
mut self,
input: std::option::Option<crate::model::HistoryEventType>,
) -> Self {
self.r#type = input;
self
}
pub fn id(mut self, input: i64) -> Self {
self.id = Some(input);
self
}
pub fn set_id(mut self, input: std::option::Option<i64>) -> Self {
self.id = input;
self
}
pub fn previous_event_id(mut self, input: i64) -> Self {
self.previous_event_id = Some(input);
self
}
pub fn set_previous_event_id(mut self, input: std::option::Option<i64>) -> Self {
self.previous_event_id = input;
self
}
pub fn activity_failed_event_details(
mut self,
input: crate::model::ActivityFailedEventDetails,
) -> Self {
self.activity_failed_event_details = Some(input);
self
}
pub fn set_activity_failed_event_details(
mut self,
input: std::option::Option<crate::model::ActivityFailedEventDetails>,
) -> Self {
self.activity_failed_event_details = input;
self
}
pub fn activity_schedule_failed_event_details(
mut self,
input: crate::model::ActivityScheduleFailedEventDetails,
) -> Self {
self.activity_schedule_failed_event_details = Some(input);
self
}
pub fn set_activity_schedule_failed_event_details(
mut self,
input: std::option::Option<crate::model::ActivityScheduleFailedEventDetails>,
) -> Self {
self.activity_schedule_failed_event_details = input;
self
}
pub fn activity_scheduled_event_details(
mut self,
input: crate::model::ActivityScheduledEventDetails,
) -> Self {
self.activity_scheduled_event_details = Some(input);
self
}
pub fn set_activity_scheduled_event_details(
mut self,
input: std::option::Option<crate::model::ActivityScheduledEventDetails>,
) -> Self {
self.activity_scheduled_event_details = input;
self
}
pub fn activity_started_event_details(
mut self,
input: crate::model::ActivityStartedEventDetails,
) -> Self {
self.activity_started_event_details = Some(input);
self
}
pub fn set_activity_started_event_details(
mut self,
input: std::option::Option<crate::model::ActivityStartedEventDetails>,
) -> Self {
self.activity_started_event_details = input;
self
}
pub fn activity_succeeded_event_details(
mut self,
input: crate::model::ActivitySucceededEventDetails,
) -> Self {
self.activity_succeeded_event_details = Some(input);
self
}
pub fn set_activity_succeeded_event_details(
mut self,
input: std::option::Option<crate::model::ActivitySucceededEventDetails>,
) -> Self {
self.activity_succeeded_event_details = input;
self
}
pub fn activity_timed_out_event_details(
mut self,
input: crate::model::ActivityTimedOutEventDetails,
) -> Self {
self.activity_timed_out_event_details = Some(input);
self
}
pub fn set_activity_timed_out_event_details(
mut self,
input: std::option::Option<crate::model::ActivityTimedOutEventDetails>,
) -> Self {
self.activity_timed_out_event_details = input;
self
}
pub fn task_failed_event_details(
mut self,
input: crate::model::TaskFailedEventDetails,
) -> Self {
self.task_failed_event_details = Some(input);
self
}
pub fn set_task_failed_event_details(
mut self,
input: std::option::Option<crate::model::TaskFailedEventDetails>,
) -> Self {
self.task_failed_event_details = input;
self
}
pub fn task_scheduled_event_details(
mut self,
input: crate::model::TaskScheduledEventDetails,
) -> Self {
self.task_scheduled_event_details = Some(input);
self
}
pub fn set_task_scheduled_event_details(
mut self,
input: std::option::Option<crate::model::TaskScheduledEventDetails>,
) -> Self {
self.task_scheduled_event_details = input;
self
}
pub fn task_start_failed_event_details(
mut self,
input: crate::model::TaskStartFailedEventDetails,
) -> Self {
self.task_start_failed_event_details = Some(input);
self
}
pub fn set_task_start_failed_event_details(
mut self,
input: std::option::Option<crate::model::TaskStartFailedEventDetails>,
) -> Self {
self.task_start_failed_event_details = input;
self
}
pub fn task_started_event_details(
mut self,
input: crate::model::TaskStartedEventDetails,
) -> Self {
self.task_started_event_details = Some(input);
self
}
pub fn set_task_started_event_details(
mut self,
input: std::option::Option<crate::model::TaskStartedEventDetails>,
) -> Self {
self.task_started_event_details = input;
self
}
pub fn task_submit_failed_event_details(
mut self,
input: crate::model::TaskSubmitFailedEventDetails,
) -> Self {
self.task_submit_failed_event_details = Some(input);
self
}
pub fn set_task_submit_failed_event_details(
mut self,
input: std::option::Option<crate::model::TaskSubmitFailedEventDetails>,
) -> Self {
self.task_submit_failed_event_details = input;
self
}
pub fn task_submitted_event_details(
mut self,
input: crate::model::TaskSubmittedEventDetails,
) -> Self {
self.task_submitted_event_details = Some(input);
self
}
pub fn set_task_submitted_event_details(
mut self,
input: std::option::Option<crate::model::TaskSubmittedEventDetails>,
) -> Self {
self.task_submitted_event_details = input;
self
}
pub fn task_succeeded_event_details(
mut self,
input: crate::model::TaskSucceededEventDetails,
) -> Self {
self.task_succeeded_event_details = Some(input);
self
}
pub fn set_task_succeeded_event_details(
mut self,
input: std::option::Option<crate::model::TaskSucceededEventDetails>,
) -> Self {
self.task_succeeded_event_details = input;
self
}
pub fn task_timed_out_event_details(
mut self,
input: crate::model::TaskTimedOutEventDetails,
) -> Self {
self.task_timed_out_event_details = Some(input);
self
}
pub fn set_task_timed_out_event_details(
mut self,
input: std::option::Option<crate::model::TaskTimedOutEventDetails>,
) -> Self {
self.task_timed_out_event_details = input;
self
}
pub fn execution_failed_event_details(
mut self,
input: crate::model::ExecutionFailedEventDetails,
) -> Self {
self.execution_failed_event_details = Some(input);
self
}
pub fn set_execution_failed_event_details(
mut self,
input: std::option::Option<crate::model::ExecutionFailedEventDetails>,
) -> Self {
self.execution_failed_event_details = input;
self
}
pub fn execution_started_event_details(
mut self,
input: crate::model::ExecutionStartedEventDetails,
) -> Self {
self.execution_started_event_details = Some(input);
self
}
pub fn set_execution_started_event_details(
mut self,
input: std::option::Option<crate::model::ExecutionStartedEventDetails>,
) -> Self {
self.execution_started_event_details = input;
self
}
pub fn execution_succeeded_event_details(
mut self,
input: crate::model::ExecutionSucceededEventDetails,
) -> Self {
self.execution_succeeded_event_details = Some(input);
self
}
pub fn set_execution_succeeded_event_details(
mut self,
input: std::option::Option<crate::model::ExecutionSucceededEventDetails>,
) -> Self {
self.execution_succeeded_event_details = input;
self
}
pub fn execution_aborted_event_details(
mut self,
input: crate::model::ExecutionAbortedEventDetails,
) -> Self {
self.execution_aborted_event_details = Some(input);
self
}
pub fn set_execution_aborted_event_details(
mut self,
input: std::option::Option<crate::model::ExecutionAbortedEventDetails>,
) -> Self {
self.execution_aborted_event_details = input;
self
}
pub fn execution_timed_out_event_details(
mut self,
input: crate::model::ExecutionTimedOutEventDetails,
) -> Self {
self.execution_timed_out_event_details = Some(input);
self
}
pub fn set_execution_timed_out_event_details(
mut self,
input: std::option::Option<crate::model::ExecutionTimedOutEventDetails>,
) -> Self {
self.execution_timed_out_event_details = input;
self
}
pub fn map_state_started_event_details(
mut self,
input: crate::model::MapStateStartedEventDetails,
) -> Self {
self.map_state_started_event_details = Some(input);
self
}
pub fn set_map_state_started_event_details(
mut self,
input: std::option::Option<crate::model::MapStateStartedEventDetails>,
) -> Self {
self.map_state_started_event_details = input;
self
}
pub fn map_iteration_started_event_details(
mut self,
input: crate::model::MapIterationEventDetails,
) -> Self {
self.map_iteration_started_event_details = Some(input);
self
}
pub fn set_map_iteration_started_event_details(
mut self,
input: std::option::Option<crate::model::MapIterationEventDetails>,
) -> Self {
self.map_iteration_started_event_details = input;
self
}
pub fn map_iteration_succeeded_event_details(
mut self,
input: crate::model::MapIterationEventDetails,
) -> Self {
self.map_iteration_succeeded_event_details = Some(input);
self
}
pub fn set_map_iteration_succeeded_event_details(
mut self,
input: std::option::Option<crate::model::MapIterationEventDetails>,
) -> Self {
self.map_iteration_succeeded_event_details = input;
self
}
pub fn map_iteration_failed_event_details(
mut self,
input: crate::model::MapIterationEventDetails,
) -> Self {
self.map_iteration_failed_event_details = Some(input);
self
}
pub fn set_map_iteration_failed_event_details(
mut self,
input: std::option::Option<crate::model::MapIterationEventDetails>,
) -> Self {
self.map_iteration_failed_event_details = input;
self
}
pub fn map_iteration_aborted_event_details(
mut self,
input: crate::model::MapIterationEventDetails,
) -> Self {
self.map_iteration_aborted_event_details = Some(input);
self
}
pub fn set_map_iteration_aborted_event_details(
mut self,
input: std::option::Option<crate::model::MapIterationEventDetails>,
) -> Self {
self.map_iteration_aborted_event_details = input;
self
}
pub fn lambda_function_failed_event_details(
mut self,
input: crate::model::LambdaFunctionFailedEventDetails,
) -> Self {
self.lambda_function_failed_event_details = Some(input);
self
}
pub fn set_lambda_function_failed_event_details(
mut self,
input: std::option::Option<crate::model::LambdaFunctionFailedEventDetails>,
) -> Self {
self.lambda_function_failed_event_details = input;
self
}
pub fn lambda_function_schedule_failed_event_details(
mut self,
input: crate::model::LambdaFunctionScheduleFailedEventDetails,
) -> Self {
self.lambda_function_schedule_failed_event_details = Some(input);
self
}
pub fn set_lambda_function_schedule_failed_event_details(
mut self,
input: std::option::Option<crate::model::LambdaFunctionScheduleFailedEventDetails>,
) -> Self {
self.lambda_function_schedule_failed_event_details = input;
self
}
pub fn lambda_function_scheduled_event_details(
mut self,
input: crate::model::LambdaFunctionScheduledEventDetails,
) -> Self {
self.lambda_function_scheduled_event_details = Some(input);
self
}
pub fn set_lambda_function_scheduled_event_details(
mut self,
input: std::option::Option<crate::model::LambdaFunctionScheduledEventDetails>,
) -> Self {
self.lambda_function_scheduled_event_details = input;
self
}
pub fn lambda_function_start_failed_event_details(
mut self,
input: crate::model::LambdaFunctionStartFailedEventDetails,
) -> Self {
self.lambda_function_start_failed_event_details = Some(input);
self
}
pub fn set_lambda_function_start_failed_event_details(
mut self,
input: std::option::Option<crate::model::LambdaFunctionStartFailedEventDetails>,
) -> Self {
self.lambda_function_start_failed_event_details = input;
self
}
pub fn lambda_function_succeeded_event_details(
mut self,
input: crate::model::LambdaFunctionSucceededEventDetails,
) -> Self {
self.lambda_function_succeeded_event_details = Some(input);
self
}
pub fn set_lambda_function_succeeded_event_details(
mut self,
input: std::option::Option<crate::model::LambdaFunctionSucceededEventDetails>,
) -> Self {
self.lambda_function_succeeded_event_details = input;
self
}
pub fn lambda_function_timed_out_event_details(
mut self,
input: crate::model::LambdaFunctionTimedOutEventDetails,
) -> Self {
self.lambda_function_timed_out_event_details = Some(input);
self
}
pub fn set_lambda_function_timed_out_event_details(
mut self,
input: std::option::Option<crate::model::LambdaFunctionTimedOutEventDetails>,
) -> Self {
self.lambda_function_timed_out_event_details = input;
self
}
pub fn state_entered_event_details(
mut self,
input: crate::model::StateEnteredEventDetails,
) -> Self {
self.state_entered_event_details = Some(input);
self
}
pub fn set_state_entered_event_details(
mut self,
input: std::option::Option<crate::model::StateEnteredEventDetails>,
) -> Self {
self.state_entered_event_details = input;
self
}
pub fn state_exited_event_details(
mut self,
input: crate::model::StateExitedEventDetails,
) -> Self {
self.state_exited_event_details = Some(input);
self
}
pub fn set_state_exited_event_details(
mut self,
input: std::option::Option<crate::model::StateExitedEventDetails>,
) -> Self {
self.state_exited_event_details = input;
self
}
pub fn map_run_started_event_details(
mut self,
input: crate::model::MapRunStartedEventDetails,
) -> Self {
self.map_run_started_event_details = Some(input);
self
}
pub fn set_map_run_started_event_details(
mut self,
input: std::option::Option<crate::model::MapRunStartedEventDetails>,
) -> Self {
self.map_run_started_event_details = input;
self
}
pub fn map_run_failed_event_details(
mut self,
input: crate::model::MapRunFailedEventDetails,
) -> Self {
self.map_run_failed_event_details = Some(input);
self
}
pub fn set_map_run_failed_event_details(
mut self,
input: std::option::Option<crate::model::MapRunFailedEventDetails>,
) -> Self {
self.map_run_failed_event_details = input;
self
}
pub fn build(self) -> crate::model::HistoryEvent {
crate::model::HistoryEvent {
timestamp: self.timestamp,
r#type: self.r#type,
id: self.id.unwrap_or_default(),
previous_event_id: self.previous_event_id.unwrap_or_default(),
activity_failed_event_details: self.activity_failed_event_details,
activity_schedule_failed_event_details: self.activity_schedule_failed_event_details,
activity_scheduled_event_details: self.activity_scheduled_event_details,
activity_started_event_details: self.activity_started_event_details,
activity_succeeded_event_details: self.activity_succeeded_event_details,
activity_timed_out_event_details: self.activity_timed_out_event_details,
task_failed_event_details: self.task_failed_event_details,
task_scheduled_event_details: self.task_scheduled_event_details,
task_start_failed_event_details: self.task_start_failed_event_details,
task_started_event_details: self.task_started_event_details,
task_submit_failed_event_details: self.task_submit_failed_event_details,
task_submitted_event_details: self.task_submitted_event_details,
task_succeeded_event_details: self.task_succeeded_event_details,
task_timed_out_event_details: self.task_timed_out_event_details,
execution_failed_event_details: self.execution_failed_event_details,
execution_started_event_details: self.execution_started_event_details,
execution_succeeded_event_details: self.execution_succeeded_event_details,
execution_aborted_event_details: self.execution_aborted_event_details,
execution_timed_out_event_details: self.execution_timed_out_event_details,
map_state_started_event_details: self.map_state_started_event_details,
map_iteration_started_event_details: self.map_iteration_started_event_details,
map_iteration_succeeded_event_details: self.map_iteration_succeeded_event_details,
map_iteration_failed_event_details: self.map_iteration_failed_event_details,
map_iteration_aborted_event_details: self.map_iteration_aborted_event_details,
lambda_function_failed_event_details: self.lambda_function_failed_event_details,
lambda_function_schedule_failed_event_details: self
.lambda_function_schedule_failed_event_details,
lambda_function_scheduled_event_details: self
.lambda_function_scheduled_event_details,
lambda_function_start_failed_event_details: self
.lambda_function_start_failed_event_details,
lambda_function_succeeded_event_details: self
.lambda_function_succeeded_event_details,
lambda_function_timed_out_event_details: self
.lambda_function_timed_out_event_details,
state_entered_event_details: self.state_entered_event_details,
state_exited_event_details: self.state_exited_event_details,
map_run_started_event_details: self.map_run_started_event_details,
map_run_failed_event_details: self.map_run_failed_event_details,
}
}
}
}
impl HistoryEvent {
pub fn builder() -> crate::model::history_event::Builder {
crate::model::history_event::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct MapRunFailedEventDetails {
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl MapRunFailedEventDetails {
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for MapRunFailedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("MapRunFailedEventDetails");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod map_run_failed_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::MapRunFailedEventDetails {
crate::model::MapRunFailedEventDetails {
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl MapRunFailedEventDetails {
pub fn builder() -> crate::model::map_run_failed_event_details::Builder {
crate::model::map_run_failed_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MapRunStartedEventDetails {
#[doc(hidden)]
pub map_run_arn: std::option::Option<std::string::String>,
}
impl MapRunStartedEventDetails {
pub fn map_run_arn(&self) -> std::option::Option<&str> {
self.map_run_arn.as_deref()
}
}
pub mod map_run_started_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) map_run_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn map_run_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.map_run_arn = Some(input.into());
self
}
pub fn set_map_run_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.map_run_arn = input;
self
}
pub fn build(self) -> crate::model::MapRunStartedEventDetails {
crate::model::MapRunStartedEventDetails {
map_run_arn: self.map_run_arn,
}
}
}
}
impl MapRunStartedEventDetails {
pub fn builder() -> crate::model::map_run_started_event_details::Builder {
crate::model::map_run_started_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct StateExitedEventDetails {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub output: std::option::Option<std::string::String>,
#[doc(hidden)]
pub output_details: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl StateExitedEventDetails {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn output(&self) -> std::option::Option<&str> {
self.output.as_deref()
}
pub fn output_details(
&self,
) -> std::option::Option<&crate::model::HistoryEventExecutionDataDetails> {
self.output_details.as_ref()
}
}
impl std::fmt::Debug for StateExitedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("StateExitedEventDetails");
formatter.field("name", &self.name);
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.finish()
}
}
pub mod state_exited_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) output: std::option::Option<std::string::String>,
pub(crate) output_details:
std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn output(mut self, input: impl Into<std::string::String>) -> Self {
self.output = Some(input.into());
self
}
pub fn set_output(mut self, input: std::option::Option<std::string::String>) -> Self {
self.output = input;
self
}
pub fn output_details(
mut self,
input: crate::model::HistoryEventExecutionDataDetails,
) -> Self {
self.output_details = Some(input);
self
}
pub fn set_output_details(
mut self,
input: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
) -> Self {
self.output_details = input;
self
}
pub fn build(self) -> crate::model::StateExitedEventDetails {
crate::model::StateExitedEventDetails {
name: self.name,
output: self.output,
output_details: self.output_details,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("name", &self.name);
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.finish()
}
}
}
impl StateExitedEventDetails {
pub fn builder() -> crate::model::state_exited_event_details::Builder {
crate::model::state_exited_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct HistoryEventExecutionDataDetails {
#[doc(hidden)]
pub truncated: bool,
}
impl HistoryEventExecutionDataDetails {
pub fn truncated(&self) -> bool {
self.truncated
}
}
pub mod history_event_execution_data_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) truncated: std::option::Option<bool>,
}
impl Builder {
pub fn truncated(mut self, input: bool) -> Self {
self.truncated = Some(input);
self
}
pub fn set_truncated(mut self, input: std::option::Option<bool>) -> Self {
self.truncated = input;
self
}
pub fn build(self) -> crate::model::HistoryEventExecutionDataDetails {
crate::model::HistoryEventExecutionDataDetails {
truncated: self.truncated.unwrap_or_default(),
}
}
}
}
impl HistoryEventExecutionDataDetails {
pub fn builder() -> crate::model::history_event_execution_data_details::Builder {
crate::model::history_event_execution_data_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct StateEnteredEventDetails {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub input: std::option::Option<std::string::String>,
#[doc(hidden)]
pub input_details: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl StateEnteredEventDetails {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn input(&self) -> std::option::Option<&str> {
self.input.as_deref()
}
pub fn input_details(
&self,
) -> std::option::Option<&crate::model::HistoryEventExecutionDataDetails> {
self.input_details.as_ref()
}
}
impl std::fmt::Debug for StateEnteredEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("StateEnteredEventDetails");
formatter.field("name", &self.name);
formatter.field("input", &"*** Sensitive Data Redacted ***");
formatter.field("input_details", &self.input_details);
formatter.finish()
}
}
pub mod state_entered_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) input: std::option::Option<std::string::String>,
pub(crate) input_details:
std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn input(mut self, input: impl Into<std::string::String>) -> Self {
self.input = Some(input.into());
self
}
pub fn set_input(mut self, input: std::option::Option<std::string::String>) -> Self {
self.input = input;
self
}
pub fn input_details(
mut self,
input: crate::model::HistoryEventExecutionDataDetails,
) -> Self {
self.input_details = Some(input);
self
}
pub fn set_input_details(
mut self,
input: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
) -> Self {
self.input_details = input;
self
}
pub fn build(self) -> crate::model::StateEnteredEventDetails {
crate::model::StateEnteredEventDetails {
name: self.name,
input: self.input,
input_details: self.input_details,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("name", &self.name);
formatter.field("input", &"*** Sensitive Data Redacted ***");
formatter.field("input_details", &self.input_details);
formatter.finish()
}
}
}
impl StateEnteredEventDetails {
pub fn builder() -> crate::model::state_entered_event_details::Builder {
crate::model::state_entered_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LambdaFunctionTimedOutEventDetails {
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl LambdaFunctionTimedOutEventDetails {
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for LambdaFunctionTimedOutEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LambdaFunctionTimedOutEventDetails");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod lambda_function_timed_out_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::LambdaFunctionTimedOutEventDetails {
crate::model::LambdaFunctionTimedOutEventDetails {
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl LambdaFunctionTimedOutEventDetails {
pub fn builder() -> crate::model::lambda_function_timed_out_event_details::Builder {
crate::model::lambda_function_timed_out_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LambdaFunctionSucceededEventDetails {
#[doc(hidden)]
pub output: std::option::Option<std::string::String>,
#[doc(hidden)]
pub output_details: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl LambdaFunctionSucceededEventDetails {
pub fn output(&self) -> std::option::Option<&str> {
self.output.as_deref()
}
pub fn output_details(
&self,
) -> std::option::Option<&crate::model::HistoryEventExecutionDataDetails> {
self.output_details.as_ref()
}
}
impl std::fmt::Debug for LambdaFunctionSucceededEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LambdaFunctionSucceededEventDetails");
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.finish()
}
}
pub mod lambda_function_succeeded_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) output: std::option::Option<std::string::String>,
pub(crate) output_details:
std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl Builder {
pub fn output(mut self, input: impl Into<std::string::String>) -> Self {
self.output = Some(input.into());
self
}
pub fn set_output(mut self, input: std::option::Option<std::string::String>) -> Self {
self.output = input;
self
}
pub fn output_details(
mut self,
input: crate::model::HistoryEventExecutionDataDetails,
) -> Self {
self.output_details = Some(input);
self
}
pub fn set_output_details(
mut self,
input: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
) -> Self {
self.output_details = input;
self
}
pub fn build(self) -> crate::model::LambdaFunctionSucceededEventDetails {
crate::model::LambdaFunctionSucceededEventDetails {
output: self.output,
output_details: self.output_details,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.finish()
}
}
}
impl LambdaFunctionSucceededEventDetails {
pub fn builder() -> crate::model::lambda_function_succeeded_event_details::Builder {
crate::model::lambda_function_succeeded_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LambdaFunctionStartFailedEventDetails {
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl LambdaFunctionStartFailedEventDetails {
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for LambdaFunctionStartFailedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LambdaFunctionStartFailedEventDetails");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod lambda_function_start_failed_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::LambdaFunctionStartFailedEventDetails {
crate::model::LambdaFunctionStartFailedEventDetails {
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl LambdaFunctionStartFailedEventDetails {
pub fn builder() -> crate::model::lambda_function_start_failed_event_details::Builder {
crate::model::lambda_function_start_failed_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LambdaFunctionScheduledEventDetails {
#[doc(hidden)]
pub resource: std::option::Option<std::string::String>,
#[doc(hidden)]
pub input: std::option::Option<std::string::String>,
#[doc(hidden)]
pub input_details: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
#[doc(hidden)]
pub timeout_in_seconds: std::option::Option<i64>,
#[doc(hidden)]
pub task_credentials: std::option::Option<crate::model::TaskCredentials>,
}
impl LambdaFunctionScheduledEventDetails {
pub fn resource(&self) -> std::option::Option<&str> {
self.resource.as_deref()
}
pub fn input(&self) -> std::option::Option<&str> {
self.input.as_deref()
}
pub fn input_details(
&self,
) -> std::option::Option<&crate::model::HistoryEventExecutionDataDetails> {
self.input_details.as_ref()
}
pub fn timeout_in_seconds(&self) -> std::option::Option<i64> {
self.timeout_in_seconds
}
pub fn task_credentials(&self) -> std::option::Option<&crate::model::TaskCredentials> {
self.task_credentials.as_ref()
}
}
impl std::fmt::Debug for LambdaFunctionScheduledEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LambdaFunctionScheduledEventDetails");
formatter.field("resource", &self.resource);
formatter.field("input", &"*** Sensitive Data Redacted ***");
formatter.field("input_details", &self.input_details);
formatter.field("timeout_in_seconds", &self.timeout_in_seconds);
formatter.field("task_credentials", &self.task_credentials);
formatter.finish()
}
}
pub mod lambda_function_scheduled_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) resource: std::option::Option<std::string::String>,
pub(crate) input: std::option::Option<std::string::String>,
pub(crate) input_details:
std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
pub(crate) timeout_in_seconds: std::option::Option<i64>,
pub(crate) task_credentials: std::option::Option<crate::model::TaskCredentials>,
}
impl Builder {
pub fn resource(mut self, input: impl Into<std::string::String>) -> Self {
self.resource = Some(input.into());
self
}
pub fn set_resource(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource = input;
self
}
pub fn input(mut self, input: impl Into<std::string::String>) -> Self {
self.input = Some(input.into());
self
}
pub fn set_input(mut self, input: std::option::Option<std::string::String>) -> Self {
self.input = input;
self
}
pub fn input_details(
mut self,
input: crate::model::HistoryEventExecutionDataDetails,
) -> Self {
self.input_details = Some(input);
self
}
pub fn set_input_details(
mut self,
input: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
) -> Self {
self.input_details = input;
self
}
pub fn timeout_in_seconds(mut self, input: i64) -> Self {
self.timeout_in_seconds = Some(input);
self
}
pub fn set_timeout_in_seconds(mut self, input: std::option::Option<i64>) -> Self {
self.timeout_in_seconds = input;
self
}
pub fn task_credentials(mut self, input: crate::model::TaskCredentials) -> Self {
self.task_credentials = Some(input);
self
}
pub fn set_task_credentials(
mut self,
input: std::option::Option<crate::model::TaskCredentials>,
) -> Self {
self.task_credentials = input;
self
}
pub fn build(self) -> crate::model::LambdaFunctionScheduledEventDetails {
crate::model::LambdaFunctionScheduledEventDetails {
resource: self.resource,
input: self.input,
input_details: self.input_details,
timeout_in_seconds: self.timeout_in_seconds,
task_credentials: self.task_credentials,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("resource", &self.resource);
formatter.field("input", &"*** Sensitive Data Redacted ***");
formatter.field("input_details", &self.input_details);
formatter.field("timeout_in_seconds", &self.timeout_in_seconds);
formatter.field("task_credentials", &self.task_credentials);
formatter.finish()
}
}
}
impl LambdaFunctionScheduledEventDetails {
pub fn builder() -> crate::model::lambda_function_scheduled_event_details::Builder {
crate::model::lambda_function_scheduled_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TaskCredentials {
#[doc(hidden)]
pub role_arn: std::option::Option<std::string::String>,
}
impl TaskCredentials {
pub fn role_arn(&self) -> std::option::Option<&str> {
self.role_arn.as_deref()
}
}
pub mod task_credentials {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) role_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.role_arn = Some(input.into());
self
}
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role_arn = input;
self
}
pub fn build(self) -> crate::model::TaskCredentials {
crate::model::TaskCredentials {
role_arn: self.role_arn,
}
}
}
}
impl TaskCredentials {
pub fn builder() -> crate::model::task_credentials::Builder {
crate::model::task_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LambdaFunctionScheduleFailedEventDetails {
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl LambdaFunctionScheduleFailedEventDetails {
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for LambdaFunctionScheduleFailedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LambdaFunctionScheduleFailedEventDetails");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod lambda_function_schedule_failed_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::LambdaFunctionScheduleFailedEventDetails {
crate::model::LambdaFunctionScheduleFailedEventDetails {
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl LambdaFunctionScheduleFailedEventDetails {
pub fn builder() -> crate::model::lambda_function_schedule_failed_event_details::Builder {
crate::model::lambda_function_schedule_failed_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LambdaFunctionFailedEventDetails {
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl LambdaFunctionFailedEventDetails {
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for LambdaFunctionFailedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LambdaFunctionFailedEventDetails");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod lambda_function_failed_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::LambdaFunctionFailedEventDetails {
crate::model::LambdaFunctionFailedEventDetails {
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl LambdaFunctionFailedEventDetails {
pub fn builder() -> crate::model::lambda_function_failed_event_details::Builder {
crate::model::lambda_function_failed_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MapIterationEventDetails {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub index: i32,
}
impl MapIterationEventDetails {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn index(&self) -> i32 {
self.index
}
}
pub mod map_iteration_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) index: std::option::Option<i32>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn index(mut self, input: i32) -> Self {
self.index = Some(input);
self
}
pub fn set_index(mut self, input: std::option::Option<i32>) -> Self {
self.index = input;
self
}
pub fn build(self) -> crate::model::MapIterationEventDetails {
crate::model::MapIterationEventDetails {
name: self.name,
index: self.index.unwrap_or_default(),
}
}
}
}
impl MapIterationEventDetails {
pub fn builder() -> crate::model::map_iteration_event_details::Builder {
crate::model::map_iteration_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MapStateStartedEventDetails {
#[doc(hidden)]
pub length: i32,
}
impl MapStateStartedEventDetails {
pub fn length(&self) -> i32 {
self.length
}
}
pub mod map_state_started_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) length: std::option::Option<i32>,
}
impl Builder {
pub fn length(mut self, input: i32) -> Self {
self.length = Some(input);
self
}
pub fn set_length(mut self, input: std::option::Option<i32>) -> Self {
self.length = input;
self
}
pub fn build(self) -> crate::model::MapStateStartedEventDetails {
crate::model::MapStateStartedEventDetails {
length: self.length.unwrap_or_default(),
}
}
}
}
impl MapStateStartedEventDetails {
pub fn builder() -> crate::model::map_state_started_event_details::Builder {
crate::model::map_state_started_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ExecutionTimedOutEventDetails {
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl ExecutionTimedOutEventDetails {
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for ExecutionTimedOutEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExecutionTimedOutEventDetails");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod execution_timed_out_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::ExecutionTimedOutEventDetails {
crate::model::ExecutionTimedOutEventDetails {
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ExecutionTimedOutEventDetails {
pub fn builder() -> crate::model::execution_timed_out_event_details::Builder {
crate::model::execution_timed_out_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ExecutionAbortedEventDetails {
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl ExecutionAbortedEventDetails {
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for ExecutionAbortedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExecutionAbortedEventDetails");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod execution_aborted_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::ExecutionAbortedEventDetails {
crate::model::ExecutionAbortedEventDetails {
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ExecutionAbortedEventDetails {
pub fn builder() -> crate::model::execution_aborted_event_details::Builder {
crate::model::execution_aborted_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ExecutionSucceededEventDetails {
#[doc(hidden)]
pub output: std::option::Option<std::string::String>,
#[doc(hidden)]
pub output_details: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl ExecutionSucceededEventDetails {
pub fn output(&self) -> std::option::Option<&str> {
self.output.as_deref()
}
pub fn output_details(
&self,
) -> std::option::Option<&crate::model::HistoryEventExecutionDataDetails> {
self.output_details.as_ref()
}
}
impl std::fmt::Debug for ExecutionSucceededEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExecutionSucceededEventDetails");
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.finish()
}
}
pub mod execution_succeeded_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) output: std::option::Option<std::string::String>,
pub(crate) output_details:
std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl Builder {
pub fn output(mut self, input: impl Into<std::string::String>) -> Self {
self.output = Some(input.into());
self
}
pub fn set_output(mut self, input: std::option::Option<std::string::String>) -> Self {
self.output = input;
self
}
pub fn output_details(
mut self,
input: crate::model::HistoryEventExecutionDataDetails,
) -> Self {
self.output_details = Some(input);
self
}
pub fn set_output_details(
mut self,
input: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
) -> Self {
self.output_details = input;
self
}
pub fn build(self) -> crate::model::ExecutionSucceededEventDetails {
crate::model::ExecutionSucceededEventDetails {
output: self.output,
output_details: self.output_details,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.finish()
}
}
}
impl ExecutionSucceededEventDetails {
pub fn builder() -> crate::model::execution_succeeded_event_details::Builder {
crate::model::execution_succeeded_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ExecutionStartedEventDetails {
#[doc(hidden)]
pub input: std::option::Option<std::string::String>,
#[doc(hidden)]
pub input_details: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
#[doc(hidden)]
pub role_arn: std::option::Option<std::string::String>,
}
impl ExecutionStartedEventDetails {
pub fn input(&self) -> std::option::Option<&str> {
self.input.as_deref()
}
pub fn input_details(
&self,
) -> std::option::Option<&crate::model::HistoryEventExecutionDataDetails> {
self.input_details.as_ref()
}
pub fn role_arn(&self) -> std::option::Option<&str> {
self.role_arn.as_deref()
}
}
impl std::fmt::Debug for ExecutionStartedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExecutionStartedEventDetails");
formatter.field("input", &"*** Sensitive Data Redacted ***");
formatter.field("input_details", &self.input_details);
formatter.field("role_arn", &self.role_arn);
formatter.finish()
}
}
pub mod execution_started_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) input: std::option::Option<std::string::String>,
pub(crate) input_details:
std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
pub(crate) role_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn input(mut self, input: impl Into<std::string::String>) -> Self {
self.input = Some(input.into());
self
}
pub fn set_input(mut self, input: std::option::Option<std::string::String>) -> Self {
self.input = input;
self
}
pub fn input_details(
mut self,
input: crate::model::HistoryEventExecutionDataDetails,
) -> Self {
self.input_details = Some(input);
self
}
pub fn set_input_details(
mut self,
input: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
) -> Self {
self.input_details = input;
self
}
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.role_arn = Some(input.into());
self
}
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role_arn = input;
self
}
pub fn build(self) -> crate::model::ExecutionStartedEventDetails {
crate::model::ExecutionStartedEventDetails {
input: self.input,
input_details: self.input_details,
role_arn: self.role_arn,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("input", &"*** Sensitive Data Redacted ***");
formatter.field("input_details", &self.input_details);
formatter.field("role_arn", &self.role_arn);
formatter.finish()
}
}
}
impl ExecutionStartedEventDetails {
pub fn builder() -> crate::model::execution_started_event_details::Builder {
crate::model::execution_started_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ExecutionFailedEventDetails {
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl ExecutionFailedEventDetails {
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for ExecutionFailedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExecutionFailedEventDetails");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod execution_failed_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::ExecutionFailedEventDetails {
crate::model::ExecutionFailedEventDetails {
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ExecutionFailedEventDetails {
pub fn builder() -> crate::model::execution_failed_event_details::Builder {
crate::model::execution_failed_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TaskTimedOutEventDetails {
#[doc(hidden)]
pub resource_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resource: std::option::Option<std::string::String>,
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl TaskTimedOutEventDetails {
pub fn resource_type(&self) -> std::option::Option<&str> {
self.resource_type.as_deref()
}
pub fn resource(&self) -> std::option::Option<&str> {
self.resource.as_deref()
}
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for TaskTimedOutEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TaskTimedOutEventDetails");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod task_timed_out_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) resource_type: std::option::Option<std::string::String>,
pub(crate) resource: std::option::Option<std::string::String>,
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn resource_type(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_type = Some(input.into());
self
}
pub fn set_resource_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_type = input;
self
}
pub fn resource(mut self, input: impl Into<std::string::String>) -> Self {
self.resource = Some(input.into());
self
}
pub fn set_resource(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource = input;
self
}
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::TaskTimedOutEventDetails {
crate::model::TaskTimedOutEventDetails {
resource_type: self.resource_type,
resource: self.resource,
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl TaskTimedOutEventDetails {
pub fn builder() -> crate::model::task_timed_out_event_details::Builder {
crate::model::task_timed_out_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TaskSucceededEventDetails {
#[doc(hidden)]
pub resource_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resource: std::option::Option<std::string::String>,
#[doc(hidden)]
pub output: std::option::Option<std::string::String>,
#[doc(hidden)]
pub output_details: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl TaskSucceededEventDetails {
pub fn resource_type(&self) -> std::option::Option<&str> {
self.resource_type.as_deref()
}
pub fn resource(&self) -> std::option::Option<&str> {
self.resource.as_deref()
}
pub fn output(&self) -> std::option::Option<&str> {
self.output.as_deref()
}
pub fn output_details(
&self,
) -> std::option::Option<&crate::model::HistoryEventExecutionDataDetails> {
self.output_details.as_ref()
}
}
impl std::fmt::Debug for TaskSucceededEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TaskSucceededEventDetails");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.finish()
}
}
pub mod task_succeeded_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) resource_type: std::option::Option<std::string::String>,
pub(crate) resource: std::option::Option<std::string::String>,
pub(crate) output: std::option::Option<std::string::String>,
pub(crate) output_details:
std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl Builder {
pub fn resource_type(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_type = Some(input.into());
self
}
pub fn set_resource_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_type = input;
self
}
pub fn resource(mut self, input: impl Into<std::string::String>) -> Self {
self.resource = Some(input.into());
self
}
pub fn set_resource(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource = input;
self
}
pub fn output(mut self, input: impl Into<std::string::String>) -> Self {
self.output = Some(input.into());
self
}
pub fn set_output(mut self, input: std::option::Option<std::string::String>) -> Self {
self.output = input;
self
}
pub fn output_details(
mut self,
input: crate::model::HistoryEventExecutionDataDetails,
) -> Self {
self.output_details = Some(input);
self
}
pub fn set_output_details(
mut self,
input: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
) -> Self {
self.output_details = input;
self
}
pub fn build(self) -> crate::model::TaskSucceededEventDetails {
crate::model::TaskSucceededEventDetails {
resource_type: self.resource_type,
resource: self.resource,
output: self.output,
output_details: self.output_details,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.finish()
}
}
}
impl TaskSucceededEventDetails {
pub fn builder() -> crate::model::task_succeeded_event_details::Builder {
crate::model::task_succeeded_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TaskSubmittedEventDetails {
#[doc(hidden)]
pub resource_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resource: std::option::Option<std::string::String>,
#[doc(hidden)]
pub output: std::option::Option<std::string::String>,
#[doc(hidden)]
pub output_details: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl TaskSubmittedEventDetails {
pub fn resource_type(&self) -> std::option::Option<&str> {
self.resource_type.as_deref()
}
pub fn resource(&self) -> std::option::Option<&str> {
self.resource.as_deref()
}
pub fn output(&self) -> std::option::Option<&str> {
self.output.as_deref()
}
pub fn output_details(
&self,
) -> std::option::Option<&crate::model::HistoryEventExecutionDataDetails> {
self.output_details.as_ref()
}
}
impl std::fmt::Debug for TaskSubmittedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TaskSubmittedEventDetails");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.finish()
}
}
pub mod task_submitted_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) resource_type: std::option::Option<std::string::String>,
pub(crate) resource: std::option::Option<std::string::String>,
pub(crate) output: std::option::Option<std::string::String>,
pub(crate) output_details:
std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl Builder {
pub fn resource_type(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_type = Some(input.into());
self
}
pub fn set_resource_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_type = input;
self
}
pub fn resource(mut self, input: impl Into<std::string::String>) -> Self {
self.resource = Some(input.into());
self
}
pub fn set_resource(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource = input;
self
}
pub fn output(mut self, input: impl Into<std::string::String>) -> Self {
self.output = Some(input.into());
self
}
pub fn set_output(mut self, input: std::option::Option<std::string::String>) -> Self {
self.output = input;
self
}
pub fn output_details(
mut self,
input: crate::model::HistoryEventExecutionDataDetails,
) -> Self {
self.output_details = Some(input);
self
}
pub fn set_output_details(
mut self,
input: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
) -> Self {
self.output_details = input;
self
}
pub fn build(self) -> crate::model::TaskSubmittedEventDetails {
crate::model::TaskSubmittedEventDetails {
resource_type: self.resource_type,
resource: self.resource,
output: self.output,
output_details: self.output_details,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.finish()
}
}
}
impl TaskSubmittedEventDetails {
pub fn builder() -> crate::model::task_submitted_event_details::Builder {
crate::model::task_submitted_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TaskSubmitFailedEventDetails {
#[doc(hidden)]
pub resource_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resource: std::option::Option<std::string::String>,
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl TaskSubmitFailedEventDetails {
pub fn resource_type(&self) -> std::option::Option<&str> {
self.resource_type.as_deref()
}
pub fn resource(&self) -> std::option::Option<&str> {
self.resource.as_deref()
}
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for TaskSubmitFailedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TaskSubmitFailedEventDetails");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod task_submit_failed_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) resource_type: std::option::Option<std::string::String>,
pub(crate) resource: std::option::Option<std::string::String>,
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn resource_type(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_type = Some(input.into());
self
}
pub fn set_resource_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_type = input;
self
}
pub fn resource(mut self, input: impl Into<std::string::String>) -> Self {
self.resource = Some(input.into());
self
}
pub fn set_resource(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource = input;
self
}
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::TaskSubmitFailedEventDetails {
crate::model::TaskSubmitFailedEventDetails {
resource_type: self.resource_type,
resource: self.resource,
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl TaskSubmitFailedEventDetails {
pub fn builder() -> crate::model::task_submit_failed_event_details::Builder {
crate::model::task_submit_failed_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TaskStartedEventDetails {
#[doc(hidden)]
pub resource_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resource: std::option::Option<std::string::String>,
}
impl TaskStartedEventDetails {
pub fn resource_type(&self) -> std::option::Option<&str> {
self.resource_type.as_deref()
}
pub fn resource(&self) -> std::option::Option<&str> {
self.resource.as_deref()
}
}
pub mod task_started_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) resource_type: std::option::Option<std::string::String>,
pub(crate) resource: std::option::Option<std::string::String>,
}
impl Builder {
pub fn resource_type(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_type = Some(input.into());
self
}
pub fn set_resource_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_type = input;
self
}
pub fn resource(mut self, input: impl Into<std::string::String>) -> Self {
self.resource = Some(input.into());
self
}
pub fn set_resource(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource = input;
self
}
pub fn build(self) -> crate::model::TaskStartedEventDetails {
crate::model::TaskStartedEventDetails {
resource_type: self.resource_type,
resource: self.resource,
}
}
}
}
impl TaskStartedEventDetails {
pub fn builder() -> crate::model::task_started_event_details::Builder {
crate::model::task_started_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TaskStartFailedEventDetails {
#[doc(hidden)]
pub resource_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resource: std::option::Option<std::string::String>,
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl TaskStartFailedEventDetails {
pub fn resource_type(&self) -> std::option::Option<&str> {
self.resource_type.as_deref()
}
pub fn resource(&self) -> std::option::Option<&str> {
self.resource.as_deref()
}
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for TaskStartFailedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TaskStartFailedEventDetails");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod task_start_failed_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) resource_type: std::option::Option<std::string::String>,
pub(crate) resource: std::option::Option<std::string::String>,
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn resource_type(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_type = Some(input.into());
self
}
pub fn set_resource_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_type = input;
self
}
pub fn resource(mut self, input: impl Into<std::string::String>) -> Self {
self.resource = Some(input.into());
self
}
pub fn set_resource(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource = input;
self
}
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::TaskStartFailedEventDetails {
crate::model::TaskStartFailedEventDetails {
resource_type: self.resource_type,
resource: self.resource,
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl TaskStartFailedEventDetails {
pub fn builder() -> crate::model::task_start_failed_event_details::Builder {
crate::model::task_start_failed_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TaskScheduledEventDetails {
#[doc(hidden)]
pub resource_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resource: std::option::Option<std::string::String>,
#[doc(hidden)]
pub region: std::option::Option<std::string::String>,
#[doc(hidden)]
pub parameters: std::option::Option<std::string::String>,
#[doc(hidden)]
pub timeout_in_seconds: std::option::Option<i64>,
#[doc(hidden)]
pub heartbeat_in_seconds: std::option::Option<i64>,
#[doc(hidden)]
pub task_credentials: std::option::Option<crate::model::TaskCredentials>,
}
impl TaskScheduledEventDetails {
pub fn resource_type(&self) -> std::option::Option<&str> {
self.resource_type.as_deref()
}
pub fn resource(&self) -> std::option::Option<&str> {
self.resource.as_deref()
}
pub fn region(&self) -> std::option::Option<&str> {
self.region.as_deref()
}
pub fn parameters(&self) -> std::option::Option<&str> {
self.parameters.as_deref()
}
pub fn timeout_in_seconds(&self) -> std::option::Option<i64> {
self.timeout_in_seconds
}
pub fn heartbeat_in_seconds(&self) -> std::option::Option<i64> {
self.heartbeat_in_seconds
}
pub fn task_credentials(&self) -> std::option::Option<&crate::model::TaskCredentials> {
self.task_credentials.as_ref()
}
}
impl std::fmt::Debug for TaskScheduledEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TaskScheduledEventDetails");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("region", &self.region);
formatter.field("parameters", &"*** Sensitive Data Redacted ***");
formatter.field("timeout_in_seconds", &self.timeout_in_seconds);
formatter.field("heartbeat_in_seconds", &self.heartbeat_in_seconds);
formatter.field("task_credentials", &self.task_credentials);
formatter.finish()
}
}
pub mod task_scheduled_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) resource_type: std::option::Option<std::string::String>,
pub(crate) resource: std::option::Option<std::string::String>,
pub(crate) region: std::option::Option<std::string::String>,
pub(crate) parameters: std::option::Option<std::string::String>,
pub(crate) timeout_in_seconds: std::option::Option<i64>,
pub(crate) heartbeat_in_seconds: std::option::Option<i64>,
pub(crate) task_credentials: std::option::Option<crate::model::TaskCredentials>,
}
impl Builder {
pub fn resource_type(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_type = Some(input.into());
self
}
pub fn set_resource_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_type = input;
self
}
pub fn resource(mut self, input: impl Into<std::string::String>) -> Self {
self.resource = Some(input.into());
self
}
pub fn set_resource(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource = input;
self
}
pub fn region(mut self, input: impl Into<std::string::String>) -> Self {
self.region = Some(input.into());
self
}
pub fn set_region(mut self, input: std::option::Option<std::string::String>) -> Self {
self.region = input;
self
}
pub fn parameters(mut self, input: impl Into<std::string::String>) -> Self {
self.parameters = Some(input.into());
self
}
pub fn set_parameters(mut self, input: std::option::Option<std::string::String>) -> Self {
self.parameters = input;
self
}
pub fn timeout_in_seconds(mut self, input: i64) -> Self {
self.timeout_in_seconds = Some(input);
self
}
pub fn set_timeout_in_seconds(mut self, input: std::option::Option<i64>) -> Self {
self.timeout_in_seconds = input;
self
}
pub fn heartbeat_in_seconds(mut self, input: i64) -> Self {
self.heartbeat_in_seconds = Some(input);
self
}
pub fn set_heartbeat_in_seconds(mut self, input: std::option::Option<i64>) -> Self {
self.heartbeat_in_seconds = input;
self
}
pub fn task_credentials(mut self, input: crate::model::TaskCredentials) -> Self {
self.task_credentials = Some(input);
self
}
pub fn set_task_credentials(
mut self,
input: std::option::Option<crate::model::TaskCredentials>,
) -> Self {
self.task_credentials = input;
self
}
pub fn build(self) -> crate::model::TaskScheduledEventDetails {
crate::model::TaskScheduledEventDetails {
resource_type: self.resource_type,
resource: self.resource,
region: self.region,
parameters: self.parameters,
timeout_in_seconds: self.timeout_in_seconds,
heartbeat_in_seconds: self.heartbeat_in_seconds,
task_credentials: self.task_credentials,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("region", &self.region);
formatter.field("parameters", &"*** Sensitive Data Redacted ***");
formatter.field("timeout_in_seconds", &self.timeout_in_seconds);
formatter.field("heartbeat_in_seconds", &self.heartbeat_in_seconds);
formatter.field("task_credentials", &self.task_credentials);
formatter.finish()
}
}
}
impl TaskScheduledEventDetails {
pub fn builder() -> crate::model::task_scheduled_event_details::Builder {
crate::model::task_scheduled_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TaskFailedEventDetails {
#[doc(hidden)]
pub resource_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resource: std::option::Option<std::string::String>,
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl TaskFailedEventDetails {
pub fn resource_type(&self) -> std::option::Option<&str> {
self.resource_type.as_deref()
}
pub fn resource(&self) -> std::option::Option<&str> {
self.resource.as_deref()
}
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for TaskFailedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TaskFailedEventDetails");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod task_failed_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) resource_type: std::option::Option<std::string::String>,
pub(crate) resource: std::option::Option<std::string::String>,
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn resource_type(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_type = Some(input.into());
self
}
pub fn set_resource_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_type = input;
self
}
pub fn resource(mut self, input: impl Into<std::string::String>) -> Self {
self.resource = Some(input.into());
self
}
pub fn set_resource(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource = input;
self
}
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::TaskFailedEventDetails {
crate::model::TaskFailedEventDetails {
resource_type: self.resource_type,
resource: self.resource,
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("resource_type", &self.resource_type);
formatter.field("resource", &self.resource);
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl TaskFailedEventDetails {
pub fn builder() -> crate::model::task_failed_event_details::Builder {
crate::model::task_failed_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ActivityTimedOutEventDetails {
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl ActivityTimedOutEventDetails {
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for ActivityTimedOutEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ActivityTimedOutEventDetails");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod activity_timed_out_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::ActivityTimedOutEventDetails {
crate::model::ActivityTimedOutEventDetails {
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ActivityTimedOutEventDetails {
pub fn builder() -> crate::model::activity_timed_out_event_details::Builder {
crate::model::activity_timed_out_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ActivitySucceededEventDetails {
#[doc(hidden)]
pub output: std::option::Option<std::string::String>,
#[doc(hidden)]
pub output_details: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl ActivitySucceededEventDetails {
pub fn output(&self) -> std::option::Option<&str> {
self.output.as_deref()
}
pub fn output_details(
&self,
) -> std::option::Option<&crate::model::HistoryEventExecutionDataDetails> {
self.output_details.as_ref()
}
}
impl std::fmt::Debug for ActivitySucceededEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ActivitySucceededEventDetails");
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.finish()
}
}
pub mod activity_succeeded_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) output: std::option::Option<std::string::String>,
pub(crate) output_details:
std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
}
impl Builder {
pub fn output(mut self, input: impl Into<std::string::String>) -> Self {
self.output = Some(input.into());
self
}
pub fn set_output(mut self, input: std::option::Option<std::string::String>) -> Self {
self.output = input;
self
}
pub fn output_details(
mut self,
input: crate::model::HistoryEventExecutionDataDetails,
) -> Self {
self.output_details = Some(input);
self
}
pub fn set_output_details(
mut self,
input: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
) -> Self {
self.output_details = input;
self
}
pub fn build(self) -> crate::model::ActivitySucceededEventDetails {
crate::model::ActivitySucceededEventDetails {
output: self.output,
output_details: self.output_details,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("output", &"*** Sensitive Data Redacted ***");
formatter.field("output_details", &self.output_details);
formatter.finish()
}
}
}
impl ActivitySucceededEventDetails {
pub fn builder() -> crate::model::activity_succeeded_event_details::Builder {
crate::model::activity_succeeded_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ActivityStartedEventDetails {
#[doc(hidden)]
pub worker_name: std::option::Option<std::string::String>,
}
impl ActivityStartedEventDetails {
pub fn worker_name(&self) -> std::option::Option<&str> {
self.worker_name.as_deref()
}
}
pub mod activity_started_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) worker_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn worker_name(mut self, input: impl Into<std::string::String>) -> Self {
self.worker_name = Some(input.into());
self
}
pub fn set_worker_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.worker_name = input;
self
}
pub fn build(self) -> crate::model::ActivityStartedEventDetails {
crate::model::ActivityStartedEventDetails {
worker_name: self.worker_name,
}
}
}
}
impl ActivityStartedEventDetails {
pub fn builder() -> crate::model::activity_started_event_details::Builder {
crate::model::activity_started_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ActivityScheduledEventDetails {
#[doc(hidden)]
pub resource: std::option::Option<std::string::String>,
#[doc(hidden)]
pub input: std::option::Option<std::string::String>,
#[doc(hidden)]
pub input_details: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
#[doc(hidden)]
pub timeout_in_seconds: std::option::Option<i64>,
#[doc(hidden)]
pub heartbeat_in_seconds: std::option::Option<i64>,
}
impl ActivityScheduledEventDetails {
pub fn resource(&self) -> std::option::Option<&str> {
self.resource.as_deref()
}
pub fn input(&self) -> std::option::Option<&str> {
self.input.as_deref()
}
pub fn input_details(
&self,
) -> std::option::Option<&crate::model::HistoryEventExecutionDataDetails> {
self.input_details.as_ref()
}
pub fn timeout_in_seconds(&self) -> std::option::Option<i64> {
self.timeout_in_seconds
}
pub fn heartbeat_in_seconds(&self) -> std::option::Option<i64> {
self.heartbeat_in_seconds
}
}
impl std::fmt::Debug for ActivityScheduledEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ActivityScheduledEventDetails");
formatter.field("resource", &self.resource);
formatter.field("input", &"*** Sensitive Data Redacted ***");
formatter.field("input_details", &self.input_details);
formatter.field("timeout_in_seconds", &self.timeout_in_seconds);
formatter.field("heartbeat_in_seconds", &self.heartbeat_in_seconds);
formatter.finish()
}
}
pub mod activity_scheduled_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) resource: std::option::Option<std::string::String>,
pub(crate) input: std::option::Option<std::string::String>,
pub(crate) input_details:
std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
pub(crate) timeout_in_seconds: std::option::Option<i64>,
pub(crate) heartbeat_in_seconds: std::option::Option<i64>,
}
impl Builder {
pub fn resource(mut self, input: impl Into<std::string::String>) -> Self {
self.resource = Some(input.into());
self
}
pub fn set_resource(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource = input;
self
}
pub fn input(mut self, input: impl Into<std::string::String>) -> Self {
self.input = Some(input.into());
self
}
pub fn set_input(mut self, input: std::option::Option<std::string::String>) -> Self {
self.input = input;
self
}
pub fn input_details(
mut self,
input: crate::model::HistoryEventExecutionDataDetails,
) -> Self {
self.input_details = Some(input);
self
}
pub fn set_input_details(
mut self,
input: std::option::Option<crate::model::HistoryEventExecutionDataDetails>,
) -> Self {
self.input_details = input;
self
}
pub fn timeout_in_seconds(mut self, input: i64) -> Self {
self.timeout_in_seconds = Some(input);
self
}
pub fn set_timeout_in_seconds(mut self, input: std::option::Option<i64>) -> Self {
self.timeout_in_seconds = input;
self
}
pub fn heartbeat_in_seconds(mut self, input: i64) -> Self {
self.heartbeat_in_seconds = Some(input);
self
}
pub fn set_heartbeat_in_seconds(mut self, input: std::option::Option<i64>) -> Self {
self.heartbeat_in_seconds = input;
self
}
pub fn build(self) -> crate::model::ActivityScheduledEventDetails {
crate::model::ActivityScheduledEventDetails {
resource: self.resource,
input: self.input,
input_details: self.input_details,
timeout_in_seconds: self.timeout_in_seconds,
heartbeat_in_seconds: self.heartbeat_in_seconds,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("resource", &self.resource);
formatter.field("input", &"*** Sensitive Data Redacted ***");
formatter.field("input_details", &self.input_details);
formatter.field("timeout_in_seconds", &self.timeout_in_seconds);
formatter.field("heartbeat_in_seconds", &self.heartbeat_in_seconds);
formatter.finish()
}
}
}
impl ActivityScheduledEventDetails {
pub fn builder() -> crate::model::activity_scheduled_event_details::Builder {
crate::model::activity_scheduled_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ActivityScheduleFailedEventDetails {
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl ActivityScheduleFailedEventDetails {
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for ActivityScheduleFailedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ActivityScheduleFailedEventDetails");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod activity_schedule_failed_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::ActivityScheduleFailedEventDetails {
crate::model::ActivityScheduleFailedEventDetails {
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ActivityScheduleFailedEventDetails {
pub fn builder() -> crate::model::activity_schedule_failed_event_details::Builder {
crate::model::activity_schedule_failed_event_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ActivityFailedEventDetails {
#[doc(hidden)]
pub error: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cause: std::option::Option<std::string::String>,
}
impl ActivityFailedEventDetails {
pub fn error(&self) -> std::option::Option<&str> {
self.error.as_deref()
}
pub fn cause(&self) -> std::option::Option<&str> {
self.cause.as_deref()
}
}
impl std::fmt::Debug for ActivityFailedEventDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ActivityFailedEventDetails");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod activity_failed_event_details {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) error: std::option::Option<std::string::String>,
pub(crate) cause: std::option::Option<std::string::String>,
}
impl Builder {
pub fn error(mut self, input: impl Into<std::string::String>) -> Self {
self.error = Some(input.into());
self
}
pub fn set_error(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error = input;
self
}
pub fn cause(mut self, input: impl Into<std::string::String>) -> Self {
self.cause = Some(input.into());
self
}
pub fn set_cause(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cause = input;
self
}
pub fn build(self) -> crate::model::ActivityFailedEventDetails {
crate::model::ActivityFailedEventDetails {
error: self.error,
cause: self.cause,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("error", &"*** Sensitive Data Redacted ***");
formatter.field("cause", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ActivityFailedEventDetails {
pub fn builder() -> crate::model::activity_failed_event_details::Builder {
crate::model::activity_failed_event_details::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum HistoryEventType {
#[allow(missing_docs)] ActivityFailed,
#[allow(missing_docs)] ActivityScheduleFailed,
#[allow(missing_docs)] ActivityScheduled,
#[allow(missing_docs)] ActivityStarted,
#[allow(missing_docs)] ActivitySucceeded,
#[allow(missing_docs)] ActivityTimedOut,
#[allow(missing_docs)] ChoiceStateEntered,
#[allow(missing_docs)] ChoiceStateExited,
#[allow(missing_docs)] ExecutionAborted,
#[allow(missing_docs)] ExecutionFailed,
#[allow(missing_docs)] ExecutionStarted,
#[allow(missing_docs)] ExecutionSucceeded,
#[allow(missing_docs)] ExecutionTimedOut,
#[allow(missing_docs)] FailStateEntered,
#[allow(missing_docs)] LambdaFunctionFailed,
#[allow(missing_docs)] LambdaFunctionScheduleFailed,
#[allow(missing_docs)] LambdaFunctionScheduled,
#[allow(missing_docs)] LambdaFunctionStartFailed,
#[allow(missing_docs)] LambdaFunctionStarted,
#[allow(missing_docs)] LambdaFunctionSucceeded,
#[allow(missing_docs)] LambdaFunctionTimedOut,
#[allow(missing_docs)] MapIterationAborted,
#[allow(missing_docs)] MapIterationFailed,
#[allow(missing_docs)] MapIterationStarted,
#[allow(missing_docs)] MapIterationSucceeded,
#[allow(missing_docs)] MapRunAborted,
#[allow(missing_docs)] MapRunFailed,
#[allow(missing_docs)] MapRunStarted,
#[allow(missing_docs)] MapRunSucceeded,
#[allow(missing_docs)] MapStateAborted,
#[allow(missing_docs)] MapStateEntered,
#[allow(missing_docs)] MapStateExited,
#[allow(missing_docs)] MapStateFailed,
#[allow(missing_docs)] MapStateStarted,
#[allow(missing_docs)] MapStateSucceeded,
#[allow(missing_docs)] ParallelStateAborted,
#[allow(missing_docs)] ParallelStateEntered,
#[allow(missing_docs)] ParallelStateExited,
#[allow(missing_docs)] ParallelStateFailed,
#[allow(missing_docs)] ParallelStateStarted,
#[allow(missing_docs)] ParallelStateSucceeded,
#[allow(missing_docs)] PassStateEntered,
#[allow(missing_docs)] PassStateExited,
#[allow(missing_docs)] SucceedStateEntered,
#[allow(missing_docs)] SucceedStateExited,
#[allow(missing_docs)] TaskFailed,
#[allow(missing_docs)] TaskScheduled,
#[allow(missing_docs)] TaskStartFailed,
#[allow(missing_docs)] TaskStarted,
#[allow(missing_docs)] TaskStateAborted,
#[allow(missing_docs)] TaskStateEntered,
#[allow(missing_docs)] TaskStateExited,
#[allow(missing_docs)] TaskSubmitFailed,
#[allow(missing_docs)] TaskSubmitted,
#[allow(missing_docs)] TaskSucceeded,
#[allow(missing_docs)] TaskTimedOut,
#[allow(missing_docs)] WaitStateAborted,
#[allow(missing_docs)] WaitStateEntered,
#[allow(missing_docs)] WaitStateExited,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for HistoryEventType {
fn from(s: &str) -> Self {
match s {
"ActivityFailed" => HistoryEventType::ActivityFailed,
"ActivityScheduleFailed" => HistoryEventType::ActivityScheduleFailed,
"ActivityScheduled" => HistoryEventType::ActivityScheduled,
"ActivityStarted" => HistoryEventType::ActivityStarted,
"ActivitySucceeded" => HistoryEventType::ActivitySucceeded,
"ActivityTimedOut" => HistoryEventType::ActivityTimedOut,
"ChoiceStateEntered" => HistoryEventType::ChoiceStateEntered,
"ChoiceStateExited" => HistoryEventType::ChoiceStateExited,
"ExecutionAborted" => HistoryEventType::ExecutionAborted,
"ExecutionFailed" => HistoryEventType::ExecutionFailed,
"ExecutionStarted" => HistoryEventType::ExecutionStarted,
"ExecutionSucceeded" => HistoryEventType::ExecutionSucceeded,
"ExecutionTimedOut" => HistoryEventType::ExecutionTimedOut,
"FailStateEntered" => HistoryEventType::FailStateEntered,
"LambdaFunctionFailed" => HistoryEventType::LambdaFunctionFailed,
"LambdaFunctionScheduleFailed" => HistoryEventType::LambdaFunctionScheduleFailed,
"LambdaFunctionScheduled" => HistoryEventType::LambdaFunctionScheduled,
"LambdaFunctionStartFailed" => HistoryEventType::LambdaFunctionStartFailed,
"LambdaFunctionStarted" => HistoryEventType::LambdaFunctionStarted,
"LambdaFunctionSucceeded" => HistoryEventType::LambdaFunctionSucceeded,
"LambdaFunctionTimedOut" => HistoryEventType::LambdaFunctionTimedOut,
"MapIterationAborted" => HistoryEventType::MapIterationAborted,
"MapIterationFailed" => HistoryEventType::MapIterationFailed,
"MapIterationStarted" => HistoryEventType::MapIterationStarted,
"MapIterationSucceeded" => HistoryEventType::MapIterationSucceeded,
"MapRunAborted" => HistoryEventType::MapRunAborted,
"MapRunFailed" => HistoryEventType::MapRunFailed,
"MapRunStarted" => HistoryEventType::MapRunStarted,
"MapRunSucceeded" => HistoryEventType::MapRunSucceeded,
"MapStateAborted" => HistoryEventType::MapStateAborted,
"MapStateEntered" => HistoryEventType::MapStateEntered,
"MapStateExited" => HistoryEventType::MapStateExited,
"MapStateFailed" => HistoryEventType::MapStateFailed,
"MapStateStarted" => HistoryEventType::MapStateStarted,
"MapStateSucceeded" => HistoryEventType::MapStateSucceeded,
"ParallelStateAborted" => HistoryEventType::ParallelStateAborted,
"ParallelStateEntered" => HistoryEventType::ParallelStateEntered,
"ParallelStateExited" => HistoryEventType::ParallelStateExited,
"ParallelStateFailed" => HistoryEventType::ParallelStateFailed,
"ParallelStateStarted" => HistoryEventType::ParallelStateStarted,
"ParallelStateSucceeded" => HistoryEventType::ParallelStateSucceeded,
"PassStateEntered" => HistoryEventType::PassStateEntered,
"PassStateExited" => HistoryEventType::PassStateExited,
"SucceedStateEntered" => HistoryEventType::SucceedStateEntered,
"SucceedStateExited" => HistoryEventType::SucceedStateExited,
"TaskFailed" => HistoryEventType::TaskFailed,
"TaskScheduled" => HistoryEventType::TaskScheduled,
"TaskStartFailed" => HistoryEventType::TaskStartFailed,
"TaskStarted" => HistoryEventType::TaskStarted,
"TaskStateAborted" => HistoryEventType::TaskStateAborted,
"TaskStateEntered" => HistoryEventType::TaskStateEntered,
"TaskStateExited" => HistoryEventType::TaskStateExited,
"TaskSubmitFailed" => HistoryEventType::TaskSubmitFailed,
"TaskSubmitted" => HistoryEventType::TaskSubmitted,
"TaskSucceeded" => HistoryEventType::TaskSucceeded,
"TaskTimedOut" => HistoryEventType::TaskTimedOut,
"WaitStateAborted" => HistoryEventType::WaitStateAborted,
"WaitStateEntered" => HistoryEventType::WaitStateEntered,
"WaitStateExited" => HistoryEventType::WaitStateExited,
other => HistoryEventType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for HistoryEventType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(HistoryEventType::from(s))
}
}
impl HistoryEventType {
pub fn as_str(&self) -> &str {
match self {
HistoryEventType::ActivityFailed => "ActivityFailed",
HistoryEventType::ActivityScheduleFailed => "ActivityScheduleFailed",
HistoryEventType::ActivityScheduled => "ActivityScheduled",
HistoryEventType::ActivityStarted => "ActivityStarted",
HistoryEventType::ActivitySucceeded => "ActivitySucceeded",
HistoryEventType::ActivityTimedOut => "ActivityTimedOut",
HistoryEventType::ChoiceStateEntered => "ChoiceStateEntered",
HistoryEventType::ChoiceStateExited => "ChoiceStateExited",
HistoryEventType::ExecutionAborted => "ExecutionAborted",
HistoryEventType::ExecutionFailed => "ExecutionFailed",
HistoryEventType::ExecutionStarted => "ExecutionStarted",
HistoryEventType::ExecutionSucceeded => "ExecutionSucceeded",
HistoryEventType::ExecutionTimedOut => "ExecutionTimedOut",
HistoryEventType::FailStateEntered => "FailStateEntered",
HistoryEventType::LambdaFunctionFailed => "LambdaFunctionFailed",
HistoryEventType::LambdaFunctionScheduleFailed => "LambdaFunctionScheduleFailed",
HistoryEventType::LambdaFunctionScheduled => "LambdaFunctionScheduled",
HistoryEventType::LambdaFunctionStartFailed => "LambdaFunctionStartFailed",
HistoryEventType::LambdaFunctionStarted => "LambdaFunctionStarted",
HistoryEventType::LambdaFunctionSucceeded => "LambdaFunctionSucceeded",
HistoryEventType::LambdaFunctionTimedOut => "LambdaFunctionTimedOut",
HistoryEventType::MapIterationAborted => "MapIterationAborted",
HistoryEventType::MapIterationFailed => "MapIterationFailed",
HistoryEventType::MapIterationStarted => "MapIterationStarted",
HistoryEventType::MapIterationSucceeded => "MapIterationSucceeded",
HistoryEventType::MapRunAborted => "MapRunAborted",
HistoryEventType::MapRunFailed => "MapRunFailed",
HistoryEventType::MapRunStarted => "MapRunStarted",
HistoryEventType::MapRunSucceeded => "MapRunSucceeded",
HistoryEventType::MapStateAborted => "MapStateAborted",
HistoryEventType::MapStateEntered => "MapStateEntered",
HistoryEventType::MapStateExited => "MapStateExited",
HistoryEventType::MapStateFailed => "MapStateFailed",
HistoryEventType::MapStateStarted => "MapStateStarted",
HistoryEventType::MapStateSucceeded => "MapStateSucceeded",
HistoryEventType::ParallelStateAborted => "ParallelStateAborted",
HistoryEventType::ParallelStateEntered => "ParallelStateEntered",
HistoryEventType::ParallelStateExited => "ParallelStateExited",
HistoryEventType::ParallelStateFailed => "ParallelStateFailed",
HistoryEventType::ParallelStateStarted => "ParallelStateStarted",
HistoryEventType::ParallelStateSucceeded => "ParallelStateSucceeded",
HistoryEventType::PassStateEntered => "PassStateEntered",
HistoryEventType::PassStateExited => "PassStateExited",
HistoryEventType::SucceedStateEntered => "SucceedStateEntered",
HistoryEventType::SucceedStateExited => "SucceedStateExited",
HistoryEventType::TaskFailed => "TaskFailed",
HistoryEventType::TaskScheduled => "TaskScheduled",
HistoryEventType::TaskStartFailed => "TaskStartFailed",
HistoryEventType::TaskStarted => "TaskStarted",
HistoryEventType::TaskStateAborted => "TaskStateAborted",
HistoryEventType::TaskStateEntered => "TaskStateEntered",
HistoryEventType::TaskStateExited => "TaskStateExited",
HistoryEventType::TaskSubmitFailed => "TaskSubmitFailed",
HistoryEventType::TaskSubmitted => "TaskSubmitted",
HistoryEventType::TaskSucceeded => "TaskSucceeded",
HistoryEventType::TaskTimedOut => "TaskTimedOut",
HistoryEventType::WaitStateAborted => "WaitStateAborted",
HistoryEventType::WaitStateEntered => "WaitStateEntered",
HistoryEventType::WaitStateExited => "WaitStateExited",
HistoryEventType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"ActivityFailed",
"ActivityScheduleFailed",
"ActivityScheduled",
"ActivityStarted",
"ActivitySucceeded",
"ActivityTimedOut",
"ChoiceStateEntered",
"ChoiceStateExited",
"ExecutionAborted",
"ExecutionFailed",
"ExecutionStarted",
"ExecutionSucceeded",
"ExecutionTimedOut",
"FailStateEntered",
"LambdaFunctionFailed",
"LambdaFunctionScheduleFailed",
"LambdaFunctionScheduled",
"LambdaFunctionStartFailed",
"LambdaFunctionStarted",
"LambdaFunctionSucceeded",
"LambdaFunctionTimedOut",
"MapIterationAborted",
"MapIterationFailed",
"MapIterationStarted",
"MapIterationSucceeded",
"MapRunAborted",
"MapRunFailed",
"MapRunStarted",
"MapRunSucceeded",
"MapStateAborted",
"MapStateEntered",
"MapStateExited",
"MapStateFailed",
"MapStateStarted",
"MapStateSucceeded",
"ParallelStateAborted",
"ParallelStateEntered",
"ParallelStateExited",
"ParallelStateFailed",
"ParallelStateStarted",
"ParallelStateSucceeded",
"PassStateEntered",
"PassStateExited",
"SucceedStateEntered",
"SucceedStateExited",
"TaskFailed",
"TaskScheduled",
"TaskStartFailed",
"TaskStarted",
"TaskStateAborted",
"TaskStateEntered",
"TaskStateExited",
"TaskSubmitFailed",
"TaskSubmitted",
"TaskSucceeded",
"TaskTimedOut",
"WaitStateAborted",
"WaitStateEntered",
"WaitStateExited",
]
}
}
impl AsRef<str> for HistoryEventType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum StateMachineStatus {
#[allow(missing_docs)] Active,
#[allow(missing_docs)] Deleting,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for StateMachineStatus {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => StateMachineStatus::Active,
"DELETING" => StateMachineStatus::Deleting,
other => {
StateMachineStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for StateMachineStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(StateMachineStatus::from(s))
}
}
impl StateMachineStatus {
pub fn as_str(&self) -> &str {
match self {
StateMachineStatus::Active => "ACTIVE",
StateMachineStatus::Deleting => "DELETING",
StateMachineStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ACTIVE", "DELETING"]
}
}
impl AsRef<str> for StateMachineStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MapRunExecutionCounts {
#[doc(hidden)]
pub pending: i64,
#[doc(hidden)]
pub running: i64,
#[doc(hidden)]
pub succeeded: i64,
#[doc(hidden)]
pub failed: i64,
#[doc(hidden)]
pub timed_out: i64,
#[doc(hidden)]
pub aborted: i64,
#[doc(hidden)]
pub total: i64,
#[doc(hidden)]
pub results_written: i64,
}
impl MapRunExecutionCounts {
pub fn pending(&self) -> i64 {
self.pending
}
pub fn running(&self) -> i64 {
self.running
}
pub fn succeeded(&self) -> i64 {
self.succeeded
}
pub fn failed(&self) -> i64 {
self.failed
}
pub fn timed_out(&self) -> i64 {
self.timed_out
}
pub fn aborted(&self) -> i64 {
self.aborted
}
pub fn total(&self) -> i64 {
self.total
}
pub fn results_written(&self) -> i64 {
self.results_written
}
}
pub mod map_run_execution_counts {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) pending: std::option::Option<i64>,
pub(crate) running: std::option::Option<i64>,
pub(crate) succeeded: std::option::Option<i64>,
pub(crate) failed: std::option::Option<i64>,
pub(crate) timed_out: std::option::Option<i64>,
pub(crate) aborted: std::option::Option<i64>,
pub(crate) total: std::option::Option<i64>,
pub(crate) results_written: std::option::Option<i64>,
}
impl Builder {
pub fn pending(mut self, input: i64) -> Self {
self.pending = Some(input);
self
}
pub fn set_pending(mut self, input: std::option::Option<i64>) -> Self {
self.pending = input;
self
}
pub fn running(mut self, input: i64) -> Self {
self.running = Some(input);
self
}
pub fn set_running(mut self, input: std::option::Option<i64>) -> Self {
self.running = input;
self
}
pub fn succeeded(mut self, input: i64) -> Self {
self.succeeded = Some(input);
self
}
pub fn set_succeeded(mut self, input: std::option::Option<i64>) -> Self {
self.succeeded = input;
self
}
pub fn failed(mut self, input: i64) -> Self {
self.failed = Some(input);
self
}
pub fn set_failed(mut self, input: std::option::Option<i64>) -> Self {
self.failed = input;
self
}
pub fn timed_out(mut self, input: i64) -> Self {
self.timed_out = Some(input);
self
}
pub fn set_timed_out(mut self, input: std::option::Option<i64>) -> Self {
self.timed_out = input;
self
}
pub fn aborted(mut self, input: i64) -> Self {
self.aborted = Some(input);
self
}
pub fn set_aborted(mut self, input: std::option::Option<i64>) -> Self {
self.aborted = input;
self
}
pub fn total(mut self, input: i64) -> Self {
self.total = Some(input);
self
}
pub fn set_total(mut self, input: std::option::Option<i64>) -> Self {
self.total = input;
self
}
pub fn results_written(mut self, input: i64) -> Self {
self.results_written = Some(input);
self
}
pub fn set_results_written(mut self, input: std::option::Option<i64>) -> Self {
self.results_written = input;
self
}
pub fn build(self) -> crate::model::MapRunExecutionCounts {
crate::model::MapRunExecutionCounts {
pending: self.pending.unwrap_or_default(),
running: self.running.unwrap_or_default(),
succeeded: self.succeeded.unwrap_or_default(),
failed: self.failed.unwrap_or_default(),
timed_out: self.timed_out.unwrap_or_default(),
aborted: self.aborted.unwrap_or_default(),
total: self.total.unwrap_or_default(),
results_written: self.results_written.unwrap_or_default(),
}
}
}
}
impl MapRunExecutionCounts {
pub fn builder() -> crate::model::map_run_execution_counts::Builder {
crate::model::map_run_execution_counts::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MapRunItemCounts {
#[doc(hidden)]
pub pending: i64,
#[doc(hidden)]
pub running: i64,
#[doc(hidden)]
pub succeeded: i64,
#[doc(hidden)]
pub failed: i64,
#[doc(hidden)]
pub timed_out: i64,
#[doc(hidden)]
pub aborted: i64,
#[doc(hidden)]
pub total: i64,
#[doc(hidden)]
pub results_written: i64,
}
impl MapRunItemCounts {
pub fn pending(&self) -> i64 {
self.pending
}
pub fn running(&self) -> i64 {
self.running
}
pub fn succeeded(&self) -> i64 {
self.succeeded
}
pub fn failed(&self) -> i64 {
self.failed
}
pub fn timed_out(&self) -> i64 {
self.timed_out
}
pub fn aborted(&self) -> i64 {
self.aborted
}
pub fn total(&self) -> i64 {
self.total
}
pub fn results_written(&self) -> i64 {
self.results_written
}
}
pub mod map_run_item_counts {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) pending: std::option::Option<i64>,
pub(crate) running: std::option::Option<i64>,
pub(crate) succeeded: std::option::Option<i64>,
pub(crate) failed: std::option::Option<i64>,
pub(crate) timed_out: std::option::Option<i64>,
pub(crate) aborted: std::option::Option<i64>,
pub(crate) total: std::option::Option<i64>,
pub(crate) results_written: std::option::Option<i64>,
}
impl Builder {
pub fn pending(mut self, input: i64) -> Self {
self.pending = Some(input);
self
}
pub fn set_pending(mut self, input: std::option::Option<i64>) -> Self {
self.pending = input;
self
}
pub fn running(mut self, input: i64) -> Self {
self.running = Some(input);
self
}
pub fn set_running(mut self, input: std::option::Option<i64>) -> Self {
self.running = input;
self
}
pub fn succeeded(mut self, input: i64) -> Self {
self.succeeded = Some(input);
self
}
pub fn set_succeeded(mut self, input: std::option::Option<i64>) -> Self {
self.succeeded = input;
self
}
pub fn failed(mut self, input: i64) -> Self {
self.failed = Some(input);
self
}
pub fn set_failed(mut self, input: std::option::Option<i64>) -> Self {
self.failed = input;
self
}
pub fn timed_out(mut self, input: i64) -> Self {
self.timed_out = Some(input);
self
}
pub fn set_timed_out(mut self, input: std::option::Option<i64>) -> Self {
self.timed_out = input;
self
}
pub fn aborted(mut self, input: i64) -> Self {
self.aborted = Some(input);
self
}
pub fn set_aborted(mut self, input: std::option::Option<i64>) -> Self {
self.aborted = input;
self
}
pub fn total(mut self, input: i64) -> Self {
self.total = Some(input);
self
}
pub fn set_total(mut self, input: std::option::Option<i64>) -> Self {
self.total = input;
self
}
pub fn results_written(mut self, input: i64) -> Self {
self.results_written = Some(input);
self
}
pub fn set_results_written(mut self, input: std::option::Option<i64>) -> Self {
self.results_written = input;
self
}
pub fn build(self) -> crate::model::MapRunItemCounts {
crate::model::MapRunItemCounts {
pending: self.pending.unwrap_or_default(),
running: self.running.unwrap_or_default(),
succeeded: self.succeeded.unwrap_or_default(),
failed: self.failed.unwrap_or_default(),
timed_out: self.timed_out.unwrap_or_default(),
aborted: self.aborted.unwrap_or_default(),
total: self.total.unwrap_or_default(),
results_written: self.results_written.unwrap_or_default(),
}
}
}
}
impl MapRunItemCounts {
pub fn builder() -> crate::model::map_run_item_counts::Builder {
crate::model::map_run_item_counts::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum MapRunStatus {
#[allow(missing_docs)] Aborted,
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] Running,
#[allow(missing_docs)] Succeeded,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for MapRunStatus {
fn from(s: &str) -> Self {
match s {
"ABORTED" => MapRunStatus::Aborted,
"FAILED" => MapRunStatus::Failed,
"RUNNING" => MapRunStatus::Running,
"SUCCEEDED" => MapRunStatus::Succeeded,
other => MapRunStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for MapRunStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(MapRunStatus::from(s))
}
}
impl MapRunStatus {
pub fn as_str(&self) -> &str {
match self {
MapRunStatus::Aborted => "ABORTED",
MapRunStatus::Failed => "FAILED",
MapRunStatus::Running => "RUNNING",
MapRunStatus::Succeeded => "SUCCEEDED",
MapRunStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ABORTED", "FAILED", "RUNNING", "SUCCEEDED"]
}
}
impl AsRef<str> for MapRunStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}