#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteDomainOutput {
#[doc(hidden)]
pub domain: std::option::Option<crate::types::DomainDescription>,
_request_id: Option<String>,
}
impl DeleteDomainOutput {
pub fn domain(&self) -> std::option::Option<&crate::types::DomainDescription> {
self.domain.as_ref()
}
}
impl aws_http::request_id::RequestId for DeleteDomainOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeleteDomainOutput {
pub fn builder() -> crate::operation::delete_domain::builders::DeleteDomainOutputBuilder {
crate::operation::delete_domain::builders::DeleteDomainOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteDomainOutputBuilder {
pub(crate) domain: std::option::Option<crate::types::DomainDescription>,
_request_id: Option<String>,
}
impl DeleteDomainOutputBuilder {
pub fn domain(mut self, input: crate::types::DomainDescription) -> Self {
self.domain = Some(input);
self
}
pub fn set_domain(
mut self,
input: std::option::Option<crate::types::DomainDescription>,
) -> Self {
self.domain = input;
self
}
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::delete_domain::DeleteDomainOutput {
crate::operation::delete_domain::DeleteDomainOutput {
domain: self.domain,
_request_id: self._request_id,
}
}
}