aws_sdk_transfer/operation/delete_certificate/
_delete_certificate_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteCertificateInput {
pub certificate_id: ::std::option::Option<::std::string::String>,
}
impl DeleteCertificateInput {
pub fn certificate_id(&self) -> ::std::option::Option<&str> {
self.certificate_id.as_deref()
}
}
impl DeleteCertificateInput {
pub fn builder() -> crate::operation::delete_certificate::builders::DeleteCertificateInputBuilder {
crate::operation::delete_certificate::builders::DeleteCertificateInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteCertificateInputBuilder {
pub(crate) certificate_id: ::std::option::Option<::std::string::String>,
}
impl DeleteCertificateInputBuilder {
pub fn certificate_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.certificate_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_certificate_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.certificate_id = input;
self
}
pub fn get_certificate_id(&self) -> &::std::option::Option<::std::string::String> {
&self.certificate_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_certificate::DeleteCertificateInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_certificate::DeleteCertificateInput {
certificate_id: self.certificate_id,
})
}
}