aws_sdk_databasemigration/operation/describe_certificates/
_describe_certificates_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeCertificatesOutput {
pub marker: ::std::option::Option<::std::string::String>,
pub certificates: ::std::option::Option<::std::vec::Vec<crate::types::Certificate>>,
_request_id: Option<String>,
}
impl DescribeCertificatesOutput {
pub fn marker(&self) -> ::std::option::Option<&str> {
self.marker.as_deref()
}
pub fn certificates(&self) -> &[crate::types::Certificate] {
self.certificates.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for DescribeCertificatesOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeCertificatesOutput {
pub fn builder() -> crate::operation::describe_certificates::builders::DescribeCertificatesOutputBuilder {
crate::operation::describe_certificates::builders::DescribeCertificatesOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeCertificatesOutputBuilder {
pub(crate) marker: ::std::option::Option<::std::string::String>,
pub(crate) certificates: ::std::option::Option<::std::vec::Vec<crate::types::Certificate>>,
_request_id: Option<String>,
}
impl DescribeCertificatesOutputBuilder {
pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.marker = ::std::option::Option::Some(input.into());
self
}
pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.marker = input;
self
}
pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
&self.marker
}
pub fn certificates(mut self, input: crate::types::Certificate) -> Self {
let mut v = self.certificates.unwrap_or_default();
v.push(input);
self.certificates = ::std::option::Option::Some(v);
self
}
pub fn set_certificates(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Certificate>>) -> Self {
self.certificates = input;
self
}
pub fn get_certificates(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Certificate>> {
&self.certificates
}
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_certificates::DescribeCertificatesOutput {
crate::operation::describe_certificates::DescribeCertificatesOutput {
marker: self.marker,
certificates: self.certificates,
_request_id: self._request_id,
}
}
}