aws_sdk_sagemaker/operation/create_project/
_create_project_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct CreateProjectOutput {
6    pub project_arn: ::std::option::Option<::std::string::String>,
8    pub project_id: ::std::option::Option<::std::string::String>,
10    _request_id: Option<String>,
11}
12impl CreateProjectOutput {
13    pub fn project_arn(&self) -> ::std::option::Option<&str> {
15        self.project_arn.as_deref()
16    }
17    pub fn project_id(&self) -> ::std::option::Option<&str> {
19        self.project_id.as_deref()
20    }
21}
22impl ::aws_types::request_id::RequestId for CreateProjectOutput {
23    fn request_id(&self) -> Option<&str> {
24        self._request_id.as_deref()
25    }
26}
27impl CreateProjectOutput {
28    pub fn builder() -> crate::operation::create_project::builders::CreateProjectOutputBuilder {
30        crate::operation::create_project::builders::CreateProjectOutputBuilder::default()
31    }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct CreateProjectOutputBuilder {
38    pub(crate) project_arn: ::std::option::Option<::std::string::String>,
39    pub(crate) project_id: ::std::option::Option<::std::string::String>,
40    _request_id: Option<String>,
41}
42impl CreateProjectOutputBuilder {
43    pub fn project_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46        self.project_arn = ::std::option::Option::Some(input.into());
47        self
48    }
49    pub fn set_project_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51        self.project_arn = input;
52        self
53    }
54    pub fn get_project_arn(&self) -> &::std::option::Option<::std::string::String> {
56        &self.project_arn
57    }
58    pub fn project_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61        self.project_id = ::std::option::Option::Some(input.into());
62        self
63    }
64    pub fn set_project_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66        self.project_id = input;
67        self
68    }
69    pub fn get_project_id(&self) -> &::std::option::Option<::std::string::String> {
71        &self.project_id
72    }
73    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
74        self._request_id = Some(request_id.into());
75        self
76    }
77
78    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
79        self._request_id = request_id;
80        self
81    }
82    pub fn build(self) -> crate::operation::create_project::CreateProjectOutput {
84        crate::operation::create_project::CreateProjectOutput {
85            project_arn: self.project_arn,
86            project_id: self.project_id,
87            _request_id: self._request_id,
88        }
89    }
90}