#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateBackupOutput {
pub backup_details: ::std::option::Option<crate::types::BackupDetails>,
_request_id: Option<String>,
}
impl CreateBackupOutput {
pub fn backup_details(&self) -> ::std::option::Option<&crate::types::BackupDetails> {
self.backup_details.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreateBackupOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateBackupOutput {
pub fn builder() -> crate::operation::create_backup::builders::CreateBackupOutputBuilder {
crate::operation::create_backup::builders::CreateBackupOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateBackupOutputBuilder {
pub(crate) backup_details: ::std::option::Option<crate::types::BackupDetails>,
_request_id: Option<String>,
}
impl CreateBackupOutputBuilder {
pub fn backup_details(mut self, input: crate::types::BackupDetails) -> Self {
self.backup_details = ::std::option::Option::Some(input);
self
}
pub fn set_backup_details(mut self, input: ::std::option::Option<crate::types::BackupDetails>) -> Self {
self.backup_details = input;
self
}
pub fn get_backup_details(&self) -> &::std::option::Option<crate::types::BackupDetails> {
&self.backup_details
}
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::create_backup::CreateBackupOutput {
crate::operation::create_backup::CreateBackupOutput {
backup_details: self.backup_details,
_request_id: self._request_id,
}
}
}