aws_sdk_route53/operation/get_change/
_get_change_output.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct GetChangeOutput {
7 pub change_info: ::std::option::Option<crate::types::ChangeInfo>,
9 _request_id: Option<String>,
10}
11impl GetChangeOutput {
12 pub fn change_info(&self) -> ::std::option::Option<&crate::types::ChangeInfo> {
14 self.change_info.as_ref()
15 }
16}
17impl ::aws_types::request_id::RequestId for GetChangeOutput {
18 fn request_id(&self) -> Option<&str> {
19 self._request_id.as_deref()
20 }
21}
22impl GetChangeOutput {
23 pub fn builder() -> crate::operation::get_change::builders::GetChangeOutputBuilder {
25 crate::operation::get_change::builders::GetChangeOutputBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct GetChangeOutputBuilder {
33 pub(crate) change_info: ::std::option::Option<crate::types::ChangeInfo>,
34 _request_id: Option<String>,
35}
36impl GetChangeOutputBuilder {
37 pub fn change_info(mut self, input: crate::types::ChangeInfo) -> Self {
40 self.change_info = ::std::option::Option::Some(input);
41 self
42 }
43 pub fn set_change_info(mut self, input: ::std::option::Option<crate::types::ChangeInfo>) -> Self {
45 self.change_info = input;
46 self
47 }
48 pub fn get_change_info(&self) -> &::std::option::Option<crate::types::ChangeInfo> {
50 &self.change_info
51 }
52 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
53 self._request_id = Some(request_id.into());
54 self
55 }
56
57 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
58 self._request_id = request_id;
59 self
60 }
61 pub fn build(self) -> crate::operation::get_change::GetChangeOutput {
63 crate::operation::get_change::GetChangeOutput {
64 change_info: self.change_info,
65 _request_id: self._request_id,
66 }
67 }
68}