aws_sdk_cleanrooms/operation/get_collaboration_analysis_template/
_get_collaboration_analysis_template_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetCollaborationAnalysisTemplateInput {
6 pub collaboration_identifier: ::std::option::Option<::std::string::String>,
8 pub analysis_template_arn: ::std::option::Option<::std::string::String>,
10}
11impl GetCollaborationAnalysisTemplateInput {
12 pub fn collaboration_identifier(&self) -> ::std::option::Option<&str> {
14 self.collaboration_identifier.as_deref()
15 }
16 pub fn analysis_template_arn(&self) -> ::std::option::Option<&str> {
18 self.analysis_template_arn.as_deref()
19 }
20}
21impl GetCollaborationAnalysisTemplateInput {
22 pub fn builder() -> crate::operation::get_collaboration_analysis_template::builders::GetCollaborationAnalysisTemplateInputBuilder {
24 crate::operation::get_collaboration_analysis_template::builders::GetCollaborationAnalysisTemplateInputBuilder::default()
25 }
26}
27
28#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct GetCollaborationAnalysisTemplateInputBuilder {
32 pub(crate) collaboration_identifier: ::std::option::Option<::std::string::String>,
33 pub(crate) analysis_template_arn: ::std::option::Option<::std::string::String>,
34}
35impl GetCollaborationAnalysisTemplateInputBuilder {
36 pub fn collaboration_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39 self.collaboration_identifier = ::std::option::Option::Some(input.into());
40 self
41 }
42 pub fn set_collaboration_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.collaboration_identifier = input;
45 self
46 }
47 pub fn get_collaboration_identifier(&self) -> &::std::option::Option<::std::string::String> {
49 &self.collaboration_identifier
50 }
51 pub fn analysis_template_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
54 self.analysis_template_arn = ::std::option::Option::Some(input.into());
55 self
56 }
57 pub fn set_analysis_template_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59 self.analysis_template_arn = input;
60 self
61 }
62 pub fn get_analysis_template_arn(&self) -> &::std::option::Option<::std::string::String> {
64 &self.analysis_template_arn
65 }
66 pub fn build(
68 self,
69 ) -> ::std::result::Result<
70 crate::operation::get_collaboration_analysis_template::GetCollaborationAnalysisTemplateInput,
71 ::aws_smithy_types::error::operation::BuildError,
72 > {
73 ::std::result::Result::Ok(
74 crate::operation::get_collaboration_analysis_template::GetCollaborationAnalysisTemplateInput {
75 collaboration_identifier: self.collaboration_identifier,
76 analysis_template_arn: self.analysis_template_arn,
77 },
78 )
79 }
80}