aws_sdk_ssoadmin/operation/create_instance/_create_instance_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 CreateInstanceOutput {
6 /// <p>The ARN of the instance of IAM Identity Center under which the operation will run.</p>
7 /// <p>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>
8 pub instance_arn: ::std::option::Option<::std::string::String>,
9 _request_id: Option<String>,
10}
11impl CreateInstanceOutput {
12 /// <p>The ARN of the instance of IAM Identity Center under which the operation will run.</p>
13 /// <p>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>
14 pub fn instance_arn(&self) -> ::std::option::Option<&str> {
15 self.instance_arn.as_deref()
16 }
17}
18impl ::aws_types::request_id::RequestId for CreateInstanceOutput {
19 fn request_id(&self) -> Option<&str> {
20 self._request_id.as_deref()
21 }
22}
23impl CreateInstanceOutput {
24 /// Creates a new builder-style object to manufacture [`CreateInstanceOutput`](crate::operation::create_instance::CreateInstanceOutput).
25 pub fn builder() -> crate::operation::create_instance::builders::CreateInstanceOutputBuilder {
26 crate::operation::create_instance::builders::CreateInstanceOutputBuilder::default()
27 }
28}
29
30/// A builder for [`CreateInstanceOutput`](crate::operation::create_instance::CreateInstanceOutput).
31#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
32#[non_exhaustive]
33pub struct CreateInstanceOutputBuilder {
34 pub(crate) instance_arn: ::std::option::Option<::std::string::String>,
35 _request_id: Option<String>,
36}
37impl CreateInstanceOutputBuilder {
38 /// <p>The ARN of the instance of IAM Identity Center under which the operation will run.</p>
39 /// <p>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>
40 pub fn instance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
41 self.instance_arn = ::std::option::Option::Some(input.into());
42 self
43 }
44 /// <p>The ARN of the instance of IAM Identity Center under which the operation will run.</p>
45 /// <p>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>
46 pub fn set_instance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
47 self.instance_arn = input;
48 self
49 }
50 /// <p>The ARN of the instance of IAM Identity Center under which the operation will run.</p>
51 /// <p>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>
52 pub fn get_instance_arn(&self) -> &::std::option::Option<::std::string::String> {
53 &self.instance_arn
54 }
55 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
56 self._request_id = Some(request_id.into());
57 self
58 }
59
60 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
61 self._request_id = request_id;
62 self
63 }
64 /// Consumes the builder and constructs a [`CreateInstanceOutput`](crate::operation::create_instance::CreateInstanceOutput).
65 pub fn build(self) -> crate::operation::create_instance::CreateInstanceOutput {
66 crate::operation::create_instance::CreateInstanceOutput {
67 instance_arn: self.instance_arn,
68 _request_id: self._request_id,
69 }
70 }
71}