#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetArchiveRuleOutput {
pub archive_rule: ::std::option::Option<crate::types::ArchiveRuleSummary>,
_request_id: Option<String>,
}
impl GetArchiveRuleOutput {
pub fn archive_rule(&self) -> ::std::option::Option<&crate::types::ArchiveRuleSummary> {
self.archive_rule.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetArchiveRuleOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetArchiveRuleOutput {
pub fn builder() -> crate::operation::get_archive_rule::builders::GetArchiveRuleOutputBuilder {
crate::operation::get_archive_rule::builders::GetArchiveRuleOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetArchiveRuleOutputBuilder {
pub(crate) archive_rule: ::std::option::Option<crate::types::ArchiveRuleSummary>,
_request_id: Option<String>,
}
impl GetArchiveRuleOutputBuilder {
pub fn archive_rule(mut self, input: crate::types::ArchiveRuleSummary) -> Self {
self.archive_rule = ::std::option::Option::Some(input);
self
}
pub fn set_archive_rule(mut self, input: ::std::option::Option<crate::types::ArchiveRuleSummary>) -> Self {
self.archive_rule = input;
self
}
pub fn get_archive_rule(&self) -> &::std::option::Option<crate::types::ArchiveRuleSummary> {
&self.archive_rule
}
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::get_archive_rule::GetArchiveRuleOutput {
crate::operation::get_archive_rule::GetArchiveRuleOutput {
archive_rule: self.archive_rule,
_request_id: self._request_id,
}
}
}