aws_sdk_finspace/operation/create_environment/
_create_environment_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 CreateEnvironmentOutput {
6    /// <p>The unique identifier for FinSpace environment that you created.</p>
7    pub environment_id: ::std::option::Option<::std::string::String>,
8    /// <p>The Amazon Resource Name (ARN) of the FinSpace environment that you created.</p>
9    pub environment_arn: ::std::option::Option<::std::string::String>,
10    /// <p>The sign-in URL for the web application of the FinSpace environment you created.</p>
11    pub environment_url: ::std::option::Option<::std::string::String>,
12    _request_id: Option<String>,
13}
14impl CreateEnvironmentOutput {
15    /// <p>The unique identifier for FinSpace environment that you created.</p>
16    pub fn environment_id(&self) -> ::std::option::Option<&str> {
17        self.environment_id.as_deref()
18    }
19    /// <p>The Amazon Resource Name (ARN) of the FinSpace environment that you created.</p>
20    pub fn environment_arn(&self) -> ::std::option::Option<&str> {
21        self.environment_arn.as_deref()
22    }
23    /// <p>The sign-in URL for the web application of the FinSpace environment you created.</p>
24    pub fn environment_url(&self) -> ::std::option::Option<&str> {
25        self.environment_url.as_deref()
26    }
27}
28impl ::aws_types::request_id::RequestId for CreateEnvironmentOutput {
29    fn request_id(&self) -> Option<&str> {
30        self._request_id.as_deref()
31    }
32}
33impl CreateEnvironmentOutput {
34    /// Creates a new builder-style object to manufacture [`CreateEnvironmentOutput`](crate::operation::create_environment::CreateEnvironmentOutput).
35    pub fn builder() -> crate::operation::create_environment::builders::CreateEnvironmentOutputBuilder {
36        crate::operation::create_environment::builders::CreateEnvironmentOutputBuilder::default()
37    }
38}
39
40/// A builder for [`CreateEnvironmentOutput`](crate::operation::create_environment::CreateEnvironmentOutput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct CreateEnvironmentOutputBuilder {
44    pub(crate) environment_id: ::std::option::Option<::std::string::String>,
45    pub(crate) environment_arn: ::std::option::Option<::std::string::String>,
46    pub(crate) environment_url: ::std::option::Option<::std::string::String>,
47    _request_id: Option<String>,
48}
49impl CreateEnvironmentOutputBuilder {
50    /// <p>The unique identifier for FinSpace environment that you created.</p>
51    pub fn environment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
52        self.environment_id = ::std::option::Option::Some(input.into());
53        self
54    }
55    /// <p>The unique identifier for FinSpace environment that you created.</p>
56    pub fn set_environment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
57        self.environment_id = input;
58        self
59    }
60    /// <p>The unique identifier for FinSpace environment that you created.</p>
61    pub fn get_environment_id(&self) -> &::std::option::Option<::std::string::String> {
62        &self.environment_id
63    }
64    /// <p>The Amazon Resource Name (ARN) of the FinSpace environment that you created.</p>
65    pub fn environment_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66        self.environment_arn = ::std::option::Option::Some(input.into());
67        self
68    }
69    /// <p>The Amazon Resource Name (ARN) of the FinSpace environment that you created.</p>
70    pub fn set_environment_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
71        self.environment_arn = input;
72        self
73    }
74    /// <p>The Amazon Resource Name (ARN) of the FinSpace environment that you created.</p>
75    pub fn get_environment_arn(&self) -> &::std::option::Option<::std::string::String> {
76        &self.environment_arn
77    }
78    /// <p>The sign-in URL for the web application of the FinSpace environment you created.</p>
79    pub fn environment_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
80        self.environment_url = ::std::option::Option::Some(input.into());
81        self
82    }
83    /// <p>The sign-in URL for the web application of the FinSpace environment you created.</p>
84    pub fn set_environment_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
85        self.environment_url = input;
86        self
87    }
88    /// <p>The sign-in URL for the web application of the FinSpace environment you created.</p>
89    pub fn get_environment_url(&self) -> &::std::option::Option<::std::string::String> {
90        &self.environment_url
91    }
92    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
93        self._request_id = Some(request_id.into());
94        self
95    }
96
97    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
98        self._request_id = request_id;
99        self
100    }
101    /// Consumes the builder and constructs a [`CreateEnvironmentOutput`](crate::operation::create_environment::CreateEnvironmentOutput).
102    pub fn build(self) -> crate::operation::create_environment::CreateEnvironmentOutput {
103        crate::operation::create_environment::CreateEnvironmentOutput {
104            environment_id: self.environment_id,
105            environment_arn: self.environment_arn,
106            environment_url: self.environment_url,
107            _request_id: self._request_id,
108        }
109    }
110}