Skip to main content

aws_sdk_backup/operation/update_report_plan/
_update_report_plan_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateReportPlanOutput {
6    /// <p>The unique name of the report plan.</p>
7    pub report_plan_name: ::std::option::Option<::std::string::String>,
8    /// <p>An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.</p>
9    pub report_plan_arn: ::std::option::Option<::std::string::String>,
10    /// <p>The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreationTime</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
11    pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
12    _request_id: Option<String>,
13}
14impl UpdateReportPlanOutput {
15    /// <p>The unique name of the report plan.</p>
16    pub fn report_plan_name(&self) -> ::std::option::Option<&str> {
17        self.report_plan_name.as_deref()
18    }
19    /// <p>An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.</p>
20    pub fn report_plan_arn(&self) -> ::std::option::Option<&str> {
21        self.report_plan_arn.as_deref()
22    }
23    /// <p>The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreationTime</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
24    pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
25        self.creation_time.as_ref()
26    }
27}
28impl ::aws_types::request_id::RequestId for UpdateReportPlanOutput {
29    fn request_id(&self) -> Option<&str> {
30        self._request_id.as_deref()
31    }
32}
33impl UpdateReportPlanOutput {
34    /// Creates a new builder-style object to manufacture [`UpdateReportPlanOutput`](crate::operation::update_report_plan::UpdateReportPlanOutput).
35    pub fn builder() -> crate::operation::update_report_plan::builders::UpdateReportPlanOutputBuilder {
36        crate::operation::update_report_plan::builders::UpdateReportPlanOutputBuilder::default()
37    }
38}
39
40/// A builder for [`UpdateReportPlanOutput`](crate::operation::update_report_plan::UpdateReportPlanOutput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct UpdateReportPlanOutputBuilder {
44    pub(crate) report_plan_name: ::std::option::Option<::std::string::String>,
45    pub(crate) report_plan_arn: ::std::option::Option<::std::string::String>,
46    pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
47    _request_id: Option<String>,
48}
49impl UpdateReportPlanOutputBuilder {
50    /// <p>The unique name of the report plan.</p>
51    pub fn report_plan_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
52        self.report_plan_name = ::std::option::Option::Some(input.into());
53        self
54    }
55    /// <p>The unique name of the report plan.</p>
56    pub fn set_report_plan_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
57        self.report_plan_name = input;
58        self
59    }
60    /// <p>The unique name of the report plan.</p>
61    pub fn get_report_plan_name(&self) -> &::std::option::Option<::std::string::String> {
62        &self.report_plan_name
63    }
64    /// <p>An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.</p>
65    pub fn report_plan_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66        self.report_plan_arn = ::std::option::Option::Some(input.into());
67        self
68    }
69    /// <p>An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.</p>
70    pub fn set_report_plan_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
71        self.report_plan_arn = input;
72        self
73    }
74    /// <p>An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.</p>
75    pub fn get_report_plan_arn(&self) -> &::std::option::Option<::std::string::String> {
76        &self.report_plan_arn
77    }
78    /// <p>The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreationTime</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
79    pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
80        self.creation_time = ::std::option::Option::Some(input);
81        self
82    }
83    /// <p>The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreationTime</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
84    pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
85        self.creation_time = input;
86        self
87    }
88    /// <p>The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreationTime</code> is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.</p>
89    pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
90        &self.creation_time
91    }
92    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
93        self._request_id = Some(request_id.into());
94        self
95    }
96
97    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
98        self._request_id = request_id;
99        self
100    }
101    /// Consumes the builder and constructs a [`UpdateReportPlanOutput`](crate::operation::update_report_plan::UpdateReportPlanOutput).
102    pub fn build(self) -> crate::operation::update_report_plan::UpdateReportPlanOutput {
103        crate::operation::update_report_plan::UpdateReportPlanOutput {
104            report_plan_name: self.report_plan_name,
105            report_plan_arn: self.report_plan_arn,
106            creation_time: self.creation_time,
107            _request_id: self._request_id,
108        }
109    }
110}