#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteContactMethodInput {
pub protocol: ::std::option::Option<crate::types::ContactProtocol>,
}
impl DeleteContactMethodInput {
pub fn protocol(&self) -> ::std::option::Option<&crate::types::ContactProtocol> {
self.protocol.as_ref()
}
}
impl DeleteContactMethodInput {
pub fn builder() -> crate::operation::delete_contact_method::builders::DeleteContactMethodInputBuilder {
crate::operation::delete_contact_method::builders::DeleteContactMethodInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteContactMethodInputBuilder {
pub(crate) protocol: ::std::option::Option<crate::types::ContactProtocol>,
}
impl DeleteContactMethodInputBuilder {
pub fn protocol(mut self, input: crate::types::ContactProtocol) -> Self {
self.protocol = ::std::option::Option::Some(input);
self
}
pub fn set_protocol(mut self, input: ::std::option::Option<crate::types::ContactProtocol>) -> Self {
self.protocol = input;
self
}
pub fn get_protocol(&self) -> &::std::option::Option<crate::types::ContactProtocol> {
&self.protocol
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_contact_method::DeleteContactMethodInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::delete_contact_method::DeleteContactMethodInput { protocol: self.protocol })
}
}