Skip to main content

aws_sdk_cleanrooms/operation/delete_collaboration/
_delete_collaboration_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 DeleteCollaborationInput {
6    /// <p>The identifier for the collaboration.</p>
7    pub collaboration_identifier: ::std::option::Option<::std::string::String>,
8}
9impl DeleteCollaborationInput {
10    /// <p>The identifier for the collaboration.</p>
11    pub fn collaboration_identifier(&self) -> ::std::option::Option<&str> {
12        self.collaboration_identifier.as_deref()
13    }
14}
15impl DeleteCollaborationInput {
16    /// Creates a new builder-style object to manufacture [`DeleteCollaborationInput`](crate::operation::delete_collaboration::DeleteCollaborationInput).
17    pub fn builder() -> crate::operation::delete_collaboration::builders::DeleteCollaborationInputBuilder {
18        crate::operation::delete_collaboration::builders::DeleteCollaborationInputBuilder::default()
19    }
20}
21
22/// A builder for [`DeleteCollaborationInput`](crate::operation::delete_collaboration::DeleteCollaborationInput).
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
24#[non_exhaustive]
25pub struct DeleteCollaborationInputBuilder {
26    pub(crate) collaboration_identifier: ::std::option::Option<::std::string::String>,
27}
28impl DeleteCollaborationInputBuilder {
29    /// <p>The identifier for the collaboration.</p>
30    /// This field is required.
31    pub fn collaboration_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
32        self.collaboration_identifier = ::std::option::Option::Some(input.into());
33        self
34    }
35    /// <p>The identifier for the collaboration.</p>
36    pub fn set_collaboration_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
37        self.collaboration_identifier = input;
38        self
39    }
40    /// <p>The identifier for the collaboration.</p>
41    pub fn get_collaboration_identifier(&self) -> &::std::option::Option<::std::string::String> {
42        &self.collaboration_identifier
43    }
44    /// Consumes the builder and constructs a [`DeleteCollaborationInput`](crate::operation::delete_collaboration::DeleteCollaborationInput).
45    pub fn build(
46        self,
47    ) -> ::std::result::Result<crate::operation::delete_collaboration::DeleteCollaborationInput, ::aws_smithy_types::error::operation::BuildError>
48    {
49        ::std::result::Result::Ok(crate::operation::delete_collaboration::DeleteCollaborationInput {
50            collaboration_identifier: self.collaboration_identifier,
51        })
52    }
53}