#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeletePodIdentityAssociationInput {
pub cluster_name: ::std::option::Option<::std::string::String>,
pub association_id: ::std::option::Option<::std::string::String>,
}
impl DeletePodIdentityAssociationInput {
pub fn cluster_name(&self) -> ::std::option::Option<&str> {
self.cluster_name.as_deref()
}
pub fn association_id(&self) -> ::std::option::Option<&str> {
self.association_id.as_deref()
}
}
impl DeletePodIdentityAssociationInput {
pub fn builder() -> crate::operation::delete_pod_identity_association::builders::DeletePodIdentityAssociationInputBuilder {
crate::operation::delete_pod_identity_association::builders::DeletePodIdentityAssociationInputBuilder::default()
}
}
#[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 {
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
}
pub fn set_cluster_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_name = input;
self
}
pub fn get_cluster_name(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_name
}
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
}
pub fn set_association_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.association_id = input;
self
}
pub fn get_association_id(&self) -> &::std::option::Option<::std::string::String> {
&self.association_id
}
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,
})
}
}