aws_sdk_datazone/operation/get_connection/
_get_connection_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetConnectionInput {
6 pub domain_identifier: ::std::option::Option<::std::string::String>,
8 pub identifier: ::std::option::Option<::std::string::String>,
10 pub with_secret: ::std::option::Option<bool>,
12}
13impl GetConnectionInput {
14 pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
16 self.domain_identifier.as_deref()
17 }
18 pub fn identifier(&self) -> ::std::option::Option<&str> {
20 self.identifier.as_deref()
21 }
22 pub fn with_secret(&self) -> ::std::option::Option<bool> {
24 self.with_secret
25 }
26}
27impl GetConnectionInput {
28 pub fn builder() -> crate::operation::get_connection::builders::GetConnectionInputBuilder {
30 crate::operation::get_connection::builders::GetConnectionInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct GetConnectionInputBuilder {
38 pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
39 pub(crate) identifier: ::std::option::Option<::std::string::String>,
40 pub(crate) with_secret: ::std::option::Option<bool>,
41}
42impl GetConnectionInputBuilder {
43 pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.domain_identifier = ::std::option::Option::Some(input.into());
47 self
48 }
49 pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.domain_identifier = input;
52 self
53 }
54 pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
56 &self.domain_identifier
57 }
58 pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61 self.identifier = ::std::option::Option::Some(input.into());
62 self
63 }
64 pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66 self.identifier = input;
67 self
68 }
69 pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
71 &self.identifier
72 }
73 pub fn with_secret(mut self, input: bool) -> Self {
75 self.with_secret = ::std::option::Option::Some(input);
76 self
77 }
78 pub fn set_with_secret(mut self, input: ::std::option::Option<bool>) -> Self {
80 self.with_secret = input;
81 self
82 }
83 pub fn get_with_secret(&self) -> &::std::option::Option<bool> {
85 &self.with_secret
86 }
87 pub fn build(
89 self,
90 ) -> ::std::result::Result<crate::operation::get_connection::GetConnectionInput, ::aws_smithy_types::error::operation::BuildError> {
91 ::std::result::Result::Ok(crate::operation::get_connection::GetConnectionInput {
92 domain_identifier: self.domain_identifier,
93 identifier: self.identifier,
94 with_secret: self.with_secret,
95 })
96 }
97}