Skip to main content

aws_sdk_wellarchitected/operation/get_lens_version_difference/
_get_lens_version_difference_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 GetLensVersionDifferenceOutput {
6    /// <p>The alias of the lens.</p>
7    /// <p>For Amazon Web Services official lenses, this is either the lens alias, such as <code>serverless</code>, or the lens ARN, such as <code>arn:aws:wellarchitected:us-east-1::lens/serverless</code>. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses.</p>
8    /// <p>For custom lenses, this is the lens ARN, such as <code>arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef</code>.</p>
9    /// <p>Each lens is identified by its <code>LensSummary$LensAlias</code>.</p>
10    pub lens_alias: ::std::option::Option<::std::string::String>,
11    /// <p>The ARN for the lens.</p>
12    pub lens_arn: ::std::option::Option<::std::string::String>,
13    /// <p>The base version of the lens.</p>
14    pub base_lens_version: ::std::option::Option<::std::string::String>,
15    /// <p>The target lens version for the lens.</p>
16    pub target_lens_version: ::std::option::Option<::std::string::String>,
17    /// <p>The latest version of the lens.</p>
18    pub latest_lens_version: ::std::option::Option<::std::string::String>,
19    /// <p>The differences between the base and latest versions of the lens.</p>
20    pub version_differences: ::std::option::Option<crate::types::VersionDifferences>,
21    _request_id: Option<String>,
22}
23impl GetLensVersionDifferenceOutput {
24    /// <p>The alias of the lens.</p>
25    /// <p>For Amazon Web Services official lenses, this is either the lens alias, such as <code>serverless</code>, or the lens ARN, such as <code>arn:aws:wellarchitected:us-east-1::lens/serverless</code>. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses.</p>
26    /// <p>For custom lenses, this is the lens ARN, such as <code>arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef</code>.</p>
27    /// <p>Each lens is identified by its <code>LensSummary$LensAlias</code>.</p>
28    pub fn lens_alias(&self) -> ::std::option::Option<&str> {
29        self.lens_alias.as_deref()
30    }
31    /// <p>The ARN for the lens.</p>
32    pub fn lens_arn(&self) -> ::std::option::Option<&str> {
33        self.lens_arn.as_deref()
34    }
35    /// <p>The base version of the lens.</p>
36    pub fn base_lens_version(&self) -> ::std::option::Option<&str> {
37        self.base_lens_version.as_deref()
38    }
39    /// <p>The target lens version for the lens.</p>
40    pub fn target_lens_version(&self) -> ::std::option::Option<&str> {
41        self.target_lens_version.as_deref()
42    }
43    /// <p>The latest version of the lens.</p>
44    pub fn latest_lens_version(&self) -> ::std::option::Option<&str> {
45        self.latest_lens_version.as_deref()
46    }
47    /// <p>The differences between the base and latest versions of the lens.</p>
48    pub fn version_differences(&self) -> ::std::option::Option<&crate::types::VersionDifferences> {
49        self.version_differences.as_ref()
50    }
51}
52impl ::aws_types::request_id::RequestId for GetLensVersionDifferenceOutput {
53    fn request_id(&self) -> Option<&str> {
54        self._request_id.as_deref()
55    }
56}
57impl GetLensVersionDifferenceOutput {
58    /// Creates a new builder-style object to manufacture [`GetLensVersionDifferenceOutput`](crate::operation::get_lens_version_difference::GetLensVersionDifferenceOutput).
59    pub fn builder() -> crate::operation::get_lens_version_difference::builders::GetLensVersionDifferenceOutputBuilder {
60        crate::operation::get_lens_version_difference::builders::GetLensVersionDifferenceOutputBuilder::default()
61    }
62}
63
64/// A builder for [`GetLensVersionDifferenceOutput`](crate::operation::get_lens_version_difference::GetLensVersionDifferenceOutput).
65#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
66#[non_exhaustive]
67pub struct GetLensVersionDifferenceOutputBuilder {
68    pub(crate) lens_alias: ::std::option::Option<::std::string::String>,
69    pub(crate) lens_arn: ::std::option::Option<::std::string::String>,
70    pub(crate) base_lens_version: ::std::option::Option<::std::string::String>,
71    pub(crate) target_lens_version: ::std::option::Option<::std::string::String>,
72    pub(crate) latest_lens_version: ::std::option::Option<::std::string::String>,
73    pub(crate) version_differences: ::std::option::Option<crate::types::VersionDifferences>,
74    _request_id: Option<String>,
75}
76impl GetLensVersionDifferenceOutputBuilder {
77    /// <p>The alias of the lens.</p>
78    /// <p>For Amazon Web Services official lenses, this is either the lens alias, such as <code>serverless</code>, or the lens ARN, such as <code>arn:aws:wellarchitected:us-east-1::lens/serverless</code>. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses.</p>
79    /// <p>For custom lenses, this is the lens ARN, such as <code>arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef</code>.</p>
80    /// <p>Each lens is identified by its <code>LensSummary$LensAlias</code>.</p>
81    pub fn lens_alias(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
82        self.lens_alias = ::std::option::Option::Some(input.into());
83        self
84    }
85    /// <p>The alias of the lens.</p>
86    /// <p>For Amazon Web Services official lenses, this is either the lens alias, such as <code>serverless</code>, or the lens ARN, such as <code>arn:aws:wellarchitected:us-east-1::lens/serverless</code>. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses.</p>
87    /// <p>For custom lenses, this is the lens ARN, such as <code>arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef</code>.</p>
88    /// <p>Each lens is identified by its <code>LensSummary$LensAlias</code>.</p>
89    pub fn set_lens_alias(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
90        self.lens_alias = input;
91        self
92    }
93    /// <p>The alias of the lens.</p>
94    /// <p>For Amazon Web Services official lenses, this is either the lens alias, such as <code>serverless</code>, or the lens ARN, such as <code>arn:aws:wellarchitected:us-east-1::lens/serverless</code>. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses.</p>
95    /// <p>For custom lenses, this is the lens ARN, such as <code>arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef</code>.</p>
96    /// <p>Each lens is identified by its <code>LensSummary$LensAlias</code>.</p>
97    pub fn get_lens_alias(&self) -> &::std::option::Option<::std::string::String> {
98        &self.lens_alias
99    }
100    /// <p>The ARN for the lens.</p>
101    pub fn lens_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
102        self.lens_arn = ::std::option::Option::Some(input.into());
103        self
104    }
105    /// <p>The ARN for the lens.</p>
106    pub fn set_lens_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
107        self.lens_arn = input;
108        self
109    }
110    /// <p>The ARN for the lens.</p>
111    pub fn get_lens_arn(&self) -> &::std::option::Option<::std::string::String> {
112        &self.lens_arn
113    }
114    /// <p>The base version of the lens.</p>
115    pub fn base_lens_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
116        self.base_lens_version = ::std::option::Option::Some(input.into());
117        self
118    }
119    /// <p>The base version of the lens.</p>
120    pub fn set_base_lens_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
121        self.base_lens_version = input;
122        self
123    }
124    /// <p>The base version of the lens.</p>
125    pub fn get_base_lens_version(&self) -> &::std::option::Option<::std::string::String> {
126        &self.base_lens_version
127    }
128    /// <p>The target lens version for the lens.</p>
129    pub fn target_lens_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130        self.target_lens_version = ::std::option::Option::Some(input.into());
131        self
132    }
133    /// <p>The target lens version for the lens.</p>
134    pub fn set_target_lens_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135        self.target_lens_version = input;
136        self
137    }
138    /// <p>The target lens version for the lens.</p>
139    pub fn get_target_lens_version(&self) -> &::std::option::Option<::std::string::String> {
140        &self.target_lens_version
141    }
142    /// <p>The latest version of the lens.</p>
143    pub fn latest_lens_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
144        self.latest_lens_version = ::std::option::Option::Some(input.into());
145        self
146    }
147    /// <p>The latest version of the lens.</p>
148    pub fn set_latest_lens_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149        self.latest_lens_version = input;
150        self
151    }
152    /// <p>The latest version of the lens.</p>
153    pub fn get_latest_lens_version(&self) -> &::std::option::Option<::std::string::String> {
154        &self.latest_lens_version
155    }
156    /// <p>The differences between the base and latest versions of the lens.</p>
157    pub fn version_differences(mut self, input: crate::types::VersionDifferences) -> Self {
158        self.version_differences = ::std::option::Option::Some(input);
159        self
160    }
161    /// <p>The differences between the base and latest versions of the lens.</p>
162    pub fn set_version_differences(mut self, input: ::std::option::Option<crate::types::VersionDifferences>) -> Self {
163        self.version_differences = input;
164        self
165    }
166    /// <p>The differences between the base and latest versions of the lens.</p>
167    pub fn get_version_differences(&self) -> &::std::option::Option<crate::types::VersionDifferences> {
168        &self.version_differences
169    }
170    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
171        self._request_id = Some(request_id.into());
172        self
173    }
174
175    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
176        self._request_id = request_id;
177        self
178    }
179    /// Consumes the builder and constructs a [`GetLensVersionDifferenceOutput`](crate::operation::get_lens_version_difference::GetLensVersionDifferenceOutput).
180    pub fn build(self) -> crate::operation::get_lens_version_difference::GetLensVersionDifferenceOutput {
181        crate::operation::get_lens_version_difference::GetLensVersionDifferenceOutput {
182            lens_alias: self.lens_alias,
183            lens_arn: self.lens_arn,
184            base_lens_version: self.base_lens_version,
185            target_lens_version: self.target_lens_version,
186            latest_lens_version: self.latest_lens_version,
187            version_differences: self.version_differences,
188            _request_id: self._request_id,
189        }
190    }
191}