aws_sdk_resiliencehub/operation/delete_app/_delete_app_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 DeleteAppInput {
6 /// <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
7 pub app_arn: ::std::option::Option<::std::string::String>,
8 /// <p>A boolean option to force the deletion of an Resilience Hub application.</p>
9 pub force_delete: ::std::option::Option<bool>,
10 /// <p>Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.</p>
11 pub client_token: ::std::option::Option<::std::string::String>,
12}
13impl DeleteAppInput {
14 /// <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
15 pub fn app_arn(&self) -> ::std::option::Option<&str> {
16 self.app_arn.as_deref()
17 }
18 /// <p>A boolean option to force the deletion of an Resilience Hub application.</p>
19 pub fn force_delete(&self) -> ::std::option::Option<bool> {
20 self.force_delete
21 }
22 /// <p>Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.</p>
23 pub fn client_token(&self) -> ::std::option::Option<&str> {
24 self.client_token.as_deref()
25 }
26}
27impl DeleteAppInput {
28 /// Creates a new builder-style object to manufacture [`DeleteAppInput`](crate::operation::delete_app::DeleteAppInput).
29 pub fn builder() -> crate::operation::delete_app::builders::DeleteAppInputBuilder {
30 crate::operation::delete_app::builders::DeleteAppInputBuilder::default()
31 }
32}
33
34/// A builder for [`DeleteAppInput`](crate::operation::delete_app::DeleteAppInput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DeleteAppInputBuilder {
38 pub(crate) app_arn: ::std::option::Option<::std::string::String>,
39 pub(crate) force_delete: ::std::option::Option<bool>,
40 pub(crate) client_token: ::std::option::Option<::std::string::String>,
41}
42impl DeleteAppInputBuilder {
43 /// <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
44 /// This field is required.
45 pub fn app_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.app_arn = ::std::option::Option::Some(input.into());
47 self
48 }
49 /// <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
50 pub fn set_app_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.app_arn = input;
52 self
53 }
54 /// <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
55 pub fn get_app_arn(&self) -> &::std::option::Option<::std::string::String> {
56 &self.app_arn
57 }
58 /// <p>A boolean option to force the deletion of an Resilience Hub application.</p>
59 pub fn force_delete(mut self, input: bool) -> Self {
60 self.force_delete = ::std::option::Option::Some(input);
61 self
62 }
63 /// <p>A boolean option to force the deletion of an Resilience Hub application.</p>
64 pub fn set_force_delete(mut self, input: ::std::option::Option<bool>) -> Self {
65 self.force_delete = input;
66 self
67 }
68 /// <p>A boolean option to force the deletion of an Resilience Hub application.</p>
69 pub fn get_force_delete(&self) -> &::std::option::Option<bool> {
70 &self.force_delete
71 }
72 /// <p>Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.</p>
73 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
74 self.client_token = ::std::option::Option::Some(input.into());
75 self
76 }
77 /// <p>Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.</p>
78 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
79 self.client_token = input;
80 self
81 }
82 /// <p>Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.</p>
83 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
84 &self.client_token
85 }
86 /// Consumes the builder and constructs a [`DeleteAppInput`](crate::operation::delete_app::DeleteAppInput).
87 pub fn build(self) -> ::std::result::Result<crate::operation::delete_app::DeleteAppInput, ::aws_smithy_types::error::operation::BuildError> {
88 ::std::result::Result::Ok(crate::operation::delete_app::DeleteAppInput {
89 app_arn: self.app_arn,
90 force_delete: self.force_delete,
91 client_token: self.client_token,
92 })
93 }
94}