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>The domain ID.</p>
7pub domain_id: ::std::option::Option<::std::string::String>,
8/// <p>The user profile name. If this value is not set, then <code>SpaceName</code> must be set.</p>
9pub user_profile_name: ::std::option::Option<::std::string::String>,
10/// <p>The name of the space. If this value is not set, then <code>UserProfileName</code> must be set.</p>
11pub space_name: ::std::option::Option<::std::string::String>,
12/// <p>The type of app.</p>
13pub app_type: ::std::option::Option<crate::types::AppType>,
14/// <p>The name of the app.</p>
15pub app_name: ::std::option::Option<::std::string::String>,
16}
17impl DeleteAppInput {
18/// <p>The domain ID.</p>
19pub fn domain_id(&self) -> ::std::option::Option<&str> {
20self.domain_id.as_deref()
21 }
22/// <p>The user profile name. If this value is not set, then <code>SpaceName</code> must be set.</p>
23pub fn user_profile_name(&self) -> ::std::option::Option<&str> {
24self.user_profile_name.as_deref()
25 }
26/// <p>The name of the space. If this value is not set, then <code>UserProfileName</code> must be set.</p>
27pub fn space_name(&self) -> ::std::option::Option<&str> {
28self.space_name.as_deref()
29 }
30/// <p>The type of app.</p>
31pub fn app_type(&self) -> ::std::option::Option<&crate::types::AppType> {
32self.app_type.as_ref()
33 }
34/// <p>The name of the app.</p>
35pub fn app_name(&self) -> ::std::option::Option<&str> {
36self.app_name.as_deref()
37 }
38}
39impl DeleteAppInput {
40/// Creates a new builder-style object to manufacture [`DeleteAppInput`](crate::operation::delete_app::DeleteAppInput).
41pub fn builder() -> crate::operation::delete_app::builders::DeleteAppInputBuilder {
42crate::operation::delete_app::builders::DeleteAppInputBuilder::default()
43 }
44}
4546/// A builder for [`DeleteAppInput`](crate::operation::delete_app::DeleteAppInput).
47#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
48#[non_exhaustive]
49pub struct DeleteAppInputBuilder {
50pub(crate) domain_id: ::std::option::Option<::std::string::String>,
51pub(crate) user_profile_name: ::std::option::Option<::std::string::String>,
52pub(crate) space_name: ::std::option::Option<::std::string::String>,
53pub(crate) app_type: ::std::option::Option<crate::types::AppType>,
54pub(crate) app_name: ::std::option::Option<::std::string::String>,
55}
56impl DeleteAppInputBuilder {
57/// <p>The domain ID.</p>
58 /// This field is required.
59pub fn domain_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60self.domain_id = ::std::option::Option::Some(input.into());
61self
62}
63/// <p>The domain ID.</p>
64pub fn set_domain_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65self.domain_id = input;
66self
67}
68/// <p>The domain ID.</p>
69pub fn get_domain_id(&self) -> &::std::option::Option<::std::string::String> {
70&self.domain_id
71 }
72/// <p>The user profile name. If this value is not set, then <code>SpaceName</code> must be set.</p>
73pub fn user_profile_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
74self.user_profile_name = ::std::option::Option::Some(input.into());
75self
76}
77/// <p>The user profile name. If this value is not set, then <code>SpaceName</code> must be set.</p>
78pub fn set_user_profile_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
79self.user_profile_name = input;
80self
81}
82/// <p>The user profile name. If this value is not set, then <code>SpaceName</code> must be set.</p>
83pub fn get_user_profile_name(&self) -> &::std::option::Option<::std::string::String> {
84&self.user_profile_name
85 }
86/// <p>The name of the space. If this value is not set, then <code>UserProfileName</code> must be set.</p>
87pub fn space_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
88self.space_name = ::std::option::Option::Some(input.into());
89self
90}
91/// <p>The name of the space. If this value is not set, then <code>UserProfileName</code> must be set.</p>
92pub fn set_space_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
93self.space_name = input;
94self
95}
96/// <p>The name of the space. If this value is not set, then <code>UserProfileName</code> must be set.</p>
97pub fn get_space_name(&self) -> &::std::option::Option<::std::string::String> {
98&self.space_name
99 }
100/// <p>The type of app.</p>
101 /// This field is required.
102pub fn app_type(mut self, input: crate::types::AppType) -> Self {
103self.app_type = ::std::option::Option::Some(input);
104self
105}
106/// <p>The type of app.</p>
107pub fn set_app_type(mut self, input: ::std::option::Option<crate::types::AppType>) -> Self {
108self.app_type = input;
109self
110}
111/// <p>The type of app.</p>
112pub fn get_app_type(&self) -> &::std::option::Option<crate::types::AppType> {
113&self.app_type
114 }
115/// <p>The name of the app.</p>
116 /// This field is required.
117pub fn app_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
118self.app_name = ::std::option::Option::Some(input.into());
119self
120}
121/// <p>The name of the app.</p>
122pub fn set_app_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
123self.app_name = input;
124self
125}
126/// <p>The name of the app.</p>
127pub fn get_app_name(&self) -> &::std::option::Option<::std::string::String> {
128&self.app_name
129 }
130/// Consumes the builder and constructs a [`DeleteAppInput`](crate::operation::delete_app::DeleteAppInput).
131pub fn build(self) -> ::std::result::Result<crate::operation::delete_app::DeleteAppInput, ::aws_smithy_types::error::operation::BuildError> {
132 ::std::result::Result::Ok(crate::operation::delete_app::DeleteAppInput {
133 domain_id: self.domain_id,
134 user_profile_name: self.user_profile_name,
135 space_name: self.space_name,
136 app_type: self.app_type,
137 app_name: self.app_name,
138 })
139 }
140}