aws_sdk_sagemaker/operation/create_domain/
_create_domain_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct CreateDomainOutput {
6 pub domain_arn: ::std::option::Option<::std::string::String>,
8 pub domain_id: ::std::option::Option<::std::string::String>,
10 pub url: ::std::option::Option<::std::string::String>,
12 _request_id: Option<String>,
13}
14impl CreateDomainOutput {
15 pub fn domain_arn(&self) -> ::std::option::Option<&str> {
17 self.domain_arn.as_deref()
18 }
19 pub fn domain_id(&self) -> ::std::option::Option<&str> {
21 self.domain_id.as_deref()
22 }
23 pub fn url(&self) -> ::std::option::Option<&str> {
25 self.url.as_deref()
26 }
27}
28impl ::aws_types::request_id::RequestId for CreateDomainOutput {
29 fn request_id(&self) -> Option<&str> {
30 self._request_id.as_deref()
31 }
32}
33impl CreateDomainOutput {
34 pub fn builder() -> crate::operation::create_domain::builders::CreateDomainOutputBuilder {
36 crate::operation::create_domain::builders::CreateDomainOutputBuilder::default()
37 }
38}
39
40#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct CreateDomainOutputBuilder {
44 pub(crate) domain_arn: ::std::option::Option<::std::string::String>,
45 pub(crate) domain_id: ::std::option::Option<::std::string::String>,
46 pub(crate) url: ::std::option::Option<::std::string::String>,
47 _request_id: Option<String>,
48}
49impl CreateDomainOutputBuilder {
50 pub fn domain_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
52 self.domain_arn = ::std::option::Option::Some(input.into());
53 self
54 }
55 pub fn set_domain_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
57 self.domain_arn = input;
58 self
59 }
60 pub fn get_domain_arn(&self) -> &::std::option::Option<::std::string::String> {
62 &self.domain_arn
63 }
64 pub fn domain_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66 self.domain_id = ::std::option::Option::Some(input.into());
67 self
68 }
69 pub fn set_domain_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
71 self.domain_id = input;
72 self
73 }
74 pub fn get_domain_id(&self) -> &::std::option::Option<::std::string::String> {
76 &self.domain_id
77 }
78 pub fn url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
80 self.url = ::std::option::Option::Some(input.into());
81 self
82 }
83 pub fn set_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
85 self.url = input;
86 self
87 }
88 pub fn get_url(&self) -> &::std::option::Option<::std::string::String> {
90 &self.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 pub fn build(self) -> crate::operation::create_domain::CreateDomainOutput {
103 crate::operation::create_domain::CreateDomainOutput {
104 domain_arn: self.domain_arn,
105 domain_id: self.domain_id,
106 url: self.url,
107 _request_id: self._request_id,
108 }
109 }
110}