aws_sdk_transfer/operation/describe_certificate/
_describe_certificate_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeCertificateOutput {
pub certificate: ::std::option::Option<crate::types::DescribedCertificate>,
_request_id: Option<String>,
}
impl DescribeCertificateOutput {
pub fn certificate(&self) -> ::std::option::Option<&crate::types::DescribedCertificate> {
self.certificate.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeCertificateOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeCertificateOutput {
pub fn builder() -> crate::operation::describe_certificate::builders::DescribeCertificateOutputBuilder {
crate::operation::describe_certificate::builders::DescribeCertificateOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeCertificateOutputBuilder {
pub(crate) certificate: ::std::option::Option<crate::types::DescribedCertificate>,
_request_id: Option<String>,
}
impl DescribeCertificateOutputBuilder {
pub fn certificate(mut self, input: crate::types::DescribedCertificate) -> Self {
self.certificate = ::std::option::Option::Some(input);
self
}
pub fn set_certificate(mut self, input: ::std::option::Option<crate::types::DescribedCertificate>) -> Self {
self.certificate = input;
self
}
pub fn get_certificate(&self) -> &::std::option::Option<crate::types::DescribedCertificate> {
&self.certificate
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::describe_certificate::DescribeCertificateOutput {
crate::operation::describe_certificate::DescribeCertificateOutput {
certificate: self.certificate,
_request_id: self._request_id,
}
}
}