aws_sdk_cleanrooms/operation/get_collaboration_analysis_template/
_get_collaboration_analysis_template_input.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 GetCollaborationAnalysisTemplateInput {
6    /// <p>A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.</p>
7    pub collaboration_identifier: ::std::option::Option<::std::string::String>,
8    /// <p>The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.</p>
9    pub analysis_template_arn: ::std::option::Option<::std::string::String>,
10}
11impl GetCollaborationAnalysisTemplateInput {
12    /// <p>A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.</p>
13    pub fn collaboration_identifier(&self) -> ::std::option::Option<&str> {
14        self.collaboration_identifier.as_deref()
15    }
16    /// <p>The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.</p>
17    pub fn analysis_template_arn(&self) -> ::std::option::Option<&str> {
18        self.analysis_template_arn.as_deref()
19    }
20}
21impl GetCollaborationAnalysisTemplateInput {
22    /// Creates a new builder-style object to manufacture [`GetCollaborationAnalysisTemplateInput`](crate::operation::get_collaboration_analysis_template::GetCollaborationAnalysisTemplateInput).
23    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/// A builder for [`GetCollaborationAnalysisTemplateInput`](crate::operation::get_collaboration_analysis_template::GetCollaborationAnalysisTemplateInput).
29#[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    /// <p>A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.</p>
37    /// This field is required.
38    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    /// <p>A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.</p>
43    pub fn set_collaboration_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44        self.collaboration_identifier = input;
45        self
46    }
47    /// <p>A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.</p>
48    pub fn get_collaboration_identifier(&self) -> &::std::option::Option<::std::string::String> {
49        &self.collaboration_identifier
50    }
51    /// <p>The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.</p>
52    /// This field is required.
53    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    /// <p>The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.</p>
58    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    /// <p>The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.</p>
63    pub fn get_analysis_template_arn(&self) -> &::std::option::Option<::std::string::String> {
64        &self.analysis_template_arn
65    }
66    /// Consumes the builder and constructs a [`GetCollaborationAnalysisTemplateInput`](crate::operation::get_collaboration_analysis_template::GetCollaborationAnalysisTemplateInput).
67    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}