aws_sdk_mailmanager/operation/update_archive/
_update_archive_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The response indicating if the archive update succeeded or failed.</p>
4/// <p>On success, returns an HTTP 200 status code. On failure, returns an error message.</p>
5#[non_exhaustive]
6#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
7pub struct UpdateArchiveOutput {
8    _request_id: Option<String>,
9}
10impl ::aws_types::request_id::RequestId for UpdateArchiveOutput {
11    fn request_id(&self) -> Option<&str> {
12        self._request_id.as_deref()
13    }
14}
15impl UpdateArchiveOutput {
16    /// Creates a new builder-style object to manufacture [`UpdateArchiveOutput`](crate::operation::update_archive::UpdateArchiveOutput).
17    pub fn builder() -> crate::operation::update_archive::builders::UpdateArchiveOutputBuilder {
18        crate::operation::update_archive::builders::UpdateArchiveOutputBuilder::default()
19    }
20}
21
22/// A builder for [`UpdateArchiveOutput`](crate::operation::update_archive::UpdateArchiveOutput).
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
24#[non_exhaustive]
25pub struct UpdateArchiveOutputBuilder {
26    _request_id: Option<String>,
27}
28impl UpdateArchiveOutputBuilder {
29    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
30        self._request_id = Some(request_id.into());
31        self
32    }
33
34    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
35        self._request_id = request_id;
36        self
37    }
38    /// Consumes the builder and constructs a [`UpdateArchiveOutput`](crate::operation::update_archive::UpdateArchiveOutput).
39    pub fn build(self) -> crate::operation::update_archive::UpdateArchiveOutput {
40        crate::operation::update_archive::UpdateArchiveOutput {
41            _request_id: self._request_id,
42        }
43    }
44}