aws_sdk_datazone/operation/get_project/
_get_project_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetProjectInput {
6 pub domain_identifier: ::std::option::Option<::std::string::String>,
8 pub identifier: ::std::option::Option<::std::string::String>,
10}
11impl GetProjectInput {
12 pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
14 self.domain_identifier.as_deref()
15 }
16 pub fn identifier(&self) -> ::std::option::Option<&str> {
18 self.identifier.as_deref()
19 }
20}
21impl GetProjectInput {
22 pub fn builder() -> crate::operation::get_project::builders::GetProjectInputBuilder {
24 crate::operation::get_project::builders::GetProjectInputBuilder::default()
25 }
26}
27
28#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct GetProjectInputBuilder {
32 pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
33 pub(crate) identifier: ::std::option::Option<::std::string::String>,
34}
35impl GetProjectInputBuilder {
36 pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39 self.domain_identifier = ::std::option::Option::Some(input.into());
40 self
41 }
42 pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.domain_identifier = input;
45 self
46 }
47 pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
49 &self.domain_identifier
50 }
51 pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
54 self.identifier = ::std::option::Option::Some(input.into());
55 self
56 }
57 pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59 self.identifier = input;
60 self
61 }
62 pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
64 &self.identifier
65 }
66 pub fn build(self) -> ::std::result::Result<crate::operation::get_project::GetProjectInput, ::aws_smithy_types::error::operation::BuildError> {
68 ::std::result::Result::Ok(crate::operation::get_project::GetProjectInput {
69 domain_identifier: self.domain_identifier,
70 identifier: self.identifier,
71 })
72 }
73}