aws_sdk_datazone/operation/delete_domain/
_delete_domain_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteDomainOutput {
pub status: crate::types::DomainStatus,
_request_id: Option<String>,
}
impl DeleteDomainOutput {
pub fn status(&self) -> &crate::types::DomainStatus {
&self.status
}
}
impl ::aws_types::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()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteDomainOutputBuilder {
pub(crate) status: ::std::option::Option<crate::types::DomainStatus>,
_request_id: Option<String>,
}
impl DeleteDomainOutputBuilder {
pub fn status(mut self, input: crate::types::DomainStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
pub fn set_status(mut self, input: ::std::option::Option<crate::types::DomainStatus>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<crate::types::DomainStatus> {
&self.status
}
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,
) -> ::std::result::Result<crate::operation::delete_domain::DeleteDomainOutput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_domain::DeleteDomainOutput {
status: self.status.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"status",
"status was not specified but it is required when building DeleteDomainOutput",
)
})?,
_request_id: self._request_id,
})
}
}