aws_sdk_sagemaker/operation/create_project/
_create_project_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 CreateProjectOutput {
6    /// <p>The Amazon Resource Name (ARN) of the project.</p>
7    pub project_arn: ::std::option::Option<::std::string::String>,
8    /// <p>The ID of the new project.</p>
9    pub project_id: ::std::option::Option<::std::string::String>,
10    _request_id: Option<String>,
11}
12impl CreateProjectOutput {
13    /// <p>The Amazon Resource Name (ARN) of the project.</p>
14    pub fn project_arn(&self) -> ::std::option::Option<&str> {
15        self.project_arn.as_deref()
16    }
17    /// <p>The ID of the new project.</p>
18    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    /// Creates a new builder-style object to manufacture [`CreateProjectOutput`](crate::operation::create_project::CreateProjectOutput).
29    pub fn builder() -> crate::operation::create_project::builders::CreateProjectOutputBuilder {
30        crate::operation::create_project::builders::CreateProjectOutputBuilder::default()
31    }
32}
33
34/// A builder for [`CreateProjectOutput`](crate::operation::create_project::CreateProjectOutput).
35#[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    /// <p>The Amazon Resource Name (ARN) of the project.</p>
44    /// This field is required.
45    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    /// <p>The Amazon Resource Name (ARN) of the project.</p>
50    pub fn set_project_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51        self.project_arn = input;
52        self
53    }
54    /// <p>The Amazon Resource Name (ARN) of the project.</p>
55    pub fn get_project_arn(&self) -> &::std::option::Option<::std::string::String> {
56        &self.project_arn
57    }
58    /// <p>The ID of the new project.</p>
59    /// This field is required.
60    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    /// <p>The ID of the new project.</p>
65    pub fn set_project_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66        self.project_id = input;
67        self
68    }
69    /// <p>The ID of the new project.</p>
70    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    /// Consumes the builder and constructs a [`CreateProjectOutput`](crate::operation::create_project::CreateProjectOutput).
83    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}