aws_sdk_ssoadmin/operation/describe_application/
_describe_application_output.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 DescribeApplicationOutput {
6    /// <p>Specifies the ARN of the application.</p>
7    pub application_arn: ::std::option::Option<::std::string::String>,
8    /// <p>The ARN of the application provider under which the operation will run.</p>
9    pub application_provider_arn: ::std::option::Option<::std::string::String>,
10    /// <p>The application name.</p>
11    pub name: ::std::option::Option<::std::string::String>,
12    /// <p>The account ID.</p>
13    pub application_account: ::std::option::Option<::std::string::String>,
14    /// <p>The ARN of the IAM Identity Center application under which the operation will run. For more information about ARNs, see <a href="/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces</a> in the <i>Amazon Web Services General Reference</i>.</p>
15    pub instance_arn: ::std::option::Option<::std::string::String>,
16    /// <p>Specifies whether the application is enabled or disabled.</p>
17    pub status: ::std::option::Option<crate::types::ApplicationStatus>,
18    /// <p>A structure that describes the options for the portal associated with an application.</p>
19    pub portal_options: ::std::option::Option<crate::types::PortalOptions>,
20    /// <p>The description of the .</p>
21    pub description: ::std::option::Option<::std::string::String>,
22    /// <p>The date the application was created.</p>
23    pub created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
24    _request_id: Option<String>,
25}
26impl DescribeApplicationOutput {
27    /// <p>Specifies the ARN of the application.</p>
28    pub fn application_arn(&self) -> ::std::option::Option<&str> {
29        self.application_arn.as_deref()
30    }
31    /// <p>The ARN of the application provider under which the operation will run.</p>
32    pub fn application_provider_arn(&self) -> ::std::option::Option<&str> {
33        self.application_provider_arn.as_deref()
34    }
35    /// <p>The application name.</p>
36    pub fn name(&self) -> ::std::option::Option<&str> {
37        self.name.as_deref()
38    }
39    /// <p>The account ID.</p>
40    pub fn application_account(&self) -> ::std::option::Option<&str> {
41        self.application_account.as_deref()
42    }
43    /// <p>The ARN of the IAM Identity Center application under which the operation will run. For more information about ARNs, see <a href="/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces</a> in the <i>Amazon Web Services General Reference</i>.</p>
44    pub fn instance_arn(&self) -> ::std::option::Option<&str> {
45        self.instance_arn.as_deref()
46    }
47    /// <p>Specifies whether the application is enabled or disabled.</p>
48    pub fn status(&self) -> ::std::option::Option<&crate::types::ApplicationStatus> {
49        self.status.as_ref()
50    }
51    /// <p>A structure that describes the options for the portal associated with an application.</p>
52    pub fn portal_options(&self) -> ::std::option::Option<&crate::types::PortalOptions> {
53        self.portal_options.as_ref()
54    }
55    /// <p>The description of the .</p>
56    pub fn description(&self) -> ::std::option::Option<&str> {
57        self.description.as_deref()
58    }
59    /// <p>The date the application was created.</p>
60    pub fn created_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
61        self.created_date.as_ref()
62    }
63}
64impl ::aws_types::request_id::RequestId for DescribeApplicationOutput {
65    fn request_id(&self) -> Option<&str> {
66        self._request_id.as_deref()
67    }
68}
69impl DescribeApplicationOutput {
70    /// Creates a new builder-style object to manufacture [`DescribeApplicationOutput`](crate::operation::describe_application::DescribeApplicationOutput).
71    pub fn builder() -> crate::operation::describe_application::builders::DescribeApplicationOutputBuilder {
72        crate::operation::describe_application::builders::DescribeApplicationOutputBuilder::default()
73    }
74}
75
76/// A builder for [`DescribeApplicationOutput`](crate::operation::describe_application::DescribeApplicationOutput).
77#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
78#[non_exhaustive]
79pub struct DescribeApplicationOutputBuilder {
80    pub(crate) application_arn: ::std::option::Option<::std::string::String>,
81    pub(crate) application_provider_arn: ::std::option::Option<::std::string::String>,
82    pub(crate) name: ::std::option::Option<::std::string::String>,
83    pub(crate) application_account: ::std::option::Option<::std::string::String>,
84    pub(crate) instance_arn: ::std::option::Option<::std::string::String>,
85    pub(crate) status: ::std::option::Option<crate::types::ApplicationStatus>,
86    pub(crate) portal_options: ::std::option::Option<crate::types::PortalOptions>,
87    pub(crate) description: ::std::option::Option<::std::string::String>,
88    pub(crate) created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
89    _request_id: Option<String>,
90}
91impl DescribeApplicationOutputBuilder {
92    /// <p>Specifies the ARN of the application.</p>
93    pub fn application_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
94        self.application_arn = ::std::option::Option::Some(input.into());
95        self
96    }
97    /// <p>Specifies the ARN of the application.</p>
98    pub fn set_application_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
99        self.application_arn = input;
100        self
101    }
102    /// <p>Specifies the ARN of the application.</p>
103    pub fn get_application_arn(&self) -> &::std::option::Option<::std::string::String> {
104        &self.application_arn
105    }
106    /// <p>The ARN of the application provider under which the operation will run.</p>
107    pub fn application_provider_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
108        self.application_provider_arn = ::std::option::Option::Some(input.into());
109        self
110    }
111    /// <p>The ARN of the application provider under which the operation will run.</p>
112    pub fn set_application_provider_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
113        self.application_provider_arn = input;
114        self
115    }
116    /// <p>The ARN of the application provider under which the operation will run.</p>
117    pub fn get_application_provider_arn(&self) -> &::std::option::Option<::std::string::String> {
118        &self.application_provider_arn
119    }
120    /// <p>The application name.</p>
121    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
122        self.name = ::std::option::Option::Some(input.into());
123        self
124    }
125    /// <p>The application name.</p>
126    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
127        self.name = input;
128        self
129    }
130    /// <p>The application name.</p>
131    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
132        &self.name
133    }
134    /// <p>The account ID.</p>
135    pub fn application_account(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
136        self.application_account = ::std::option::Option::Some(input.into());
137        self
138    }
139    /// <p>The account ID.</p>
140    pub fn set_application_account(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
141        self.application_account = input;
142        self
143    }
144    /// <p>The account ID.</p>
145    pub fn get_application_account(&self) -> &::std::option::Option<::std::string::String> {
146        &self.application_account
147    }
148    /// <p>The ARN of the IAM Identity Center application under which the operation will run. For more information about ARNs, see <a href="/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces</a> in the <i>Amazon Web Services General Reference</i>.</p>
149    pub fn instance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
150        self.instance_arn = ::std::option::Option::Some(input.into());
151        self
152    }
153    /// <p>The ARN of the IAM Identity Center application under which the operation will run. For more information about ARNs, see <a href="/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces</a> in the <i>Amazon Web Services General Reference</i>.</p>
154    pub fn set_instance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
155        self.instance_arn = input;
156        self
157    }
158    /// <p>The ARN of the IAM Identity Center application under which the operation will run. For more information about ARNs, see <a href="/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces</a> in the <i>Amazon Web Services General Reference</i>.</p>
159    pub fn get_instance_arn(&self) -> &::std::option::Option<::std::string::String> {
160        &self.instance_arn
161    }
162    /// <p>Specifies whether the application is enabled or disabled.</p>
163    pub fn status(mut self, input: crate::types::ApplicationStatus) -> Self {
164        self.status = ::std::option::Option::Some(input);
165        self
166    }
167    /// <p>Specifies whether the application is enabled or disabled.</p>
168    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ApplicationStatus>) -> Self {
169        self.status = input;
170        self
171    }
172    /// <p>Specifies whether the application is enabled or disabled.</p>
173    pub fn get_status(&self) -> &::std::option::Option<crate::types::ApplicationStatus> {
174        &self.status
175    }
176    /// <p>A structure that describes the options for the portal associated with an application.</p>
177    pub fn portal_options(mut self, input: crate::types::PortalOptions) -> Self {
178        self.portal_options = ::std::option::Option::Some(input);
179        self
180    }
181    /// <p>A structure that describes the options for the portal associated with an application.</p>
182    pub fn set_portal_options(mut self, input: ::std::option::Option<crate::types::PortalOptions>) -> Self {
183        self.portal_options = input;
184        self
185    }
186    /// <p>A structure that describes the options for the portal associated with an application.</p>
187    pub fn get_portal_options(&self) -> &::std::option::Option<crate::types::PortalOptions> {
188        &self.portal_options
189    }
190    /// <p>The description of the .</p>
191    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
192        self.description = ::std::option::Option::Some(input.into());
193        self
194    }
195    /// <p>The description of the .</p>
196    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
197        self.description = input;
198        self
199    }
200    /// <p>The description of the .</p>
201    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
202        &self.description
203    }
204    /// <p>The date the application was created.</p>
205    pub fn created_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
206        self.created_date = ::std::option::Option::Some(input);
207        self
208    }
209    /// <p>The date the application was created.</p>
210    pub fn set_created_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
211        self.created_date = input;
212        self
213    }
214    /// <p>The date the application was created.</p>
215    pub fn get_created_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
216        &self.created_date
217    }
218    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
219        self._request_id = Some(request_id.into());
220        self
221    }
222
223    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
224        self._request_id = request_id;
225        self
226    }
227    /// Consumes the builder and constructs a [`DescribeApplicationOutput`](crate::operation::describe_application::DescribeApplicationOutput).
228    pub fn build(self) -> crate::operation::describe_application::DescribeApplicationOutput {
229        crate::operation::describe_application::DescribeApplicationOutput {
230            application_arn: self.application_arn,
231            application_provider_arn: self.application_provider_arn,
232            name: self.name,
233            application_account: self.application_account,
234            instance_arn: self.instance_arn,
235            status: self.status,
236            portal_options: self.portal_options,
237            description: self.description,
238            created_date: self.created_date,
239            _request_id: self._request_id,
240        }
241    }
242}