1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeletePodIdentityAssociationInput {
    /// <p>The cluster name that</p>
    pub cluster_name: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the association to be deleted.</p>
    pub association_id: ::std::option::Option<::std::string::String>,
}
impl DeletePodIdentityAssociationInput {
    /// <p>The cluster name that</p>
    pub fn cluster_name(&self) -> ::std::option::Option<&str> {
        self.cluster_name.as_deref()
    }
    /// <p>The ID of the association to be deleted.</p>
    pub fn association_id(&self) -> ::std::option::Option<&str> {
        self.association_id.as_deref()
    }
}
impl DeletePodIdentityAssociationInput {
    /// Creates a new builder-style object to manufacture [`DeletePodIdentityAssociationInput`](crate::operation::delete_pod_identity_association::DeletePodIdentityAssociationInput).
    pub fn builder() -> crate::operation::delete_pod_identity_association::builders::DeletePodIdentityAssociationInputBuilder {
        crate::operation::delete_pod_identity_association::builders::DeletePodIdentityAssociationInputBuilder::default()
    }
}

/// A builder for [`DeletePodIdentityAssociationInput`](crate::operation::delete_pod_identity_association::DeletePodIdentityAssociationInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeletePodIdentityAssociationInputBuilder {
    pub(crate) cluster_name: ::std::option::Option<::std::string::String>,
    pub(crate) association_id: ::std::option::Option<::std::string::String>,
}
impl DeletePodIdentityAssociationInputBuilder {
    /// <p>The cluster name that</p>
    /// This field is required.
    pub fn cluster_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.cluster_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The cluster name that</p>
    pub fn set_cluster_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.cluster_name = input;
        self
    }
    /// <p>The cluster name that</p>
    pub fn get_cluster_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.cluster_name
    }
    /// <p>The ID of the association to be deleted.</p>
    /// This field is required.
    pub fn association_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.association_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the association to be deleted.</p>
    pub fn set_association_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.association_id = input;
        self
    }
    /// <p>The ID of the association to be deleted.</p>
    pub fn get_association_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.association_id
    }
    /// Consumes the builder and constructs a [`DeletePodIdentityAssociationInput`](crate::operation::delete_pod_identity_association::DeletePodIdentityAssociationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_pod_identity_association::DeletePodIdentityAssociationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_pod_identity_association::DeletePodIdentityAssociationInput {
            cluster_name: self.cluster_name,
            association_id: self.association_id,
        })
    }
}