aws_sdk_sfn/operation/redrive_execution/_redrive_execution_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct RedriveExecutionInput {
6 /// <p>The Amazon Resource Name (ARN) of the execution to be redriven.</p>
7 pub execution_arn: ::std::option::Option<::std::string::String>,
8 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. The API will return idempotent responses for the last 10 client tokens used to successfully redrive the execution. These client tokens are valid for up to 15 minutes after they are first used.</p>
9 pub client_token: ::std::option::Option<::std::string::String>,
10}
11impl RedriveExecutionInput {
12 /// <p>The Amazon Resource Name (ARN) of the execution to be redriven.</p>
13 pub fn execution_arn(&self) -> ::std::option::Option<&str> {
14 self.execution_arn.as_deref()
15 }
16 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. The API will return idempotent responses for the last 10 client tokens used to successfully redrive the execution. These client tokens are valid for up to 15 minutes after they are first used.</p>
17 pub fn client_token(&self) -> ::std::option::Option<&str> {
18 self.client_token.as_deref()
19 }
20}
21impl RedriveExecutionInput {
22 /// Creates a new builder-style object to manufacture [`RedriveExecutionInput`](crate::operation::redrive_execution::RedriveExecutionInput).
23 pub fn builder() -> crate::operation::redrive_execution::builders::RedriveExecutionInputBuilder {
24 crate::operation::redrive_execution::builders::RedriveExecutionInputBuilder::default()
25 }
26}
27
28/// A builder for [`RedriveExecutionInput`](crate::operation::redrive_execution::RedriveExecutionInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct RedriveExecutionInputBuilder {
32 pub(crate) execution_arn: ::std::option::Option<::std::string::String>,
33 pub(crate) client_token: ::std::option::Option<::std::string::String>,
34}
35impl RedriveExecutionInputBuilder {
36 /// <p>The Amazon Resource Name (ARN) of the execution to be redriven.</p>
37 /// This field is required.
38 pub fn execution_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39 self.execution_arn = ::std::option::Option::Some(input.into());
40 self
41 }
42 /// <p>The Amazon Resource Name (ARN) of the execution to be redriven.</p>
43 pub fn set_execution_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.execution_arn = input;
45 self
46 }
47 /// <p>The Amazon Resource Name (ARN) of the execution to be redriven.</p>
48 pub fn get_execution_arn(&self) -> &::std::option::Option<::std::string::String> {
49 &self.execution_arn
50 }
51 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. The API will return idempotent responses for the last 10 client tokens used to successfully redrive the execution. These client tokens are valid for up to 15 minutes after they are first used.</p>
52 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53 self.client_token = ::std::option::Option::Some(input.into());
54 self
55 }
56 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. The API will return idempotent responses for the last 10 client tokens used to successfully redrive the execution. These client tokens are valid for up to 15 minutes after they are first used.</p>
57 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.client_token = input;
59 self
60 }
61 /// <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. The API will return idempotent responses for the last 10 client tokens used to successfully redrive the execution. These client tokens are valid for up to 15 minutes after they are first used.</p>
62 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
63 &self.client_token
64 }
65 /// Consumes the builder and constructs a [`RedriveExecutionInput`](crate::operation::redrive_execution::RedriveExecutionInput).
66 pub fn build(
67 self,
68 ) -> ::std::result::Result<crate::operation::redrive_execution::RedriveExecutionInput, ::aws_smithy_types::error::operation::BuildError> {
69 ::std::result::Result::Ok(crate::operation::redrive_execution::RedriveExecutionInput {
70 execution_arn: self.execution_arn,
71 client_token: self.client_token,
72 })
73 }
74}