Skip to main content

aws_sdk_elbproxy/operation/get_proxy/
_get_proxy_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// Common Proxy details response mixin
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct GetProxyOutput {
7    /// The Amazon Resource Name (ARN) of the proxy.
8    pub arn: ::std::option::Option<::std::string::String>,
9    /// The name of the proxy.
10    pub name: ::std::option::Option<::std::string::String>,
11    /// The type of proxy.
12    pub r#type: ::std::option::Option<crate::types::ProxyType>,
13    /// The version of the proxy software.
14    pub proxy_version: ::std::option::Option<::std::string::String>,
15    /// The DNS name of the proxy.
16    pub dns_name: ::std::option::Option<::std::string::String>,
17    /// The Amazon Resource Name (ARN) of the IAM role that provides permissions to the code that your Envoy configuration runs on the proxy, such as filters and extensions. These are the permissions that this code needs when it calls AWS services.
18    pub role_arn: ::std::option::Option<::std::string::String>,
19    /// The network configuration for the proxy.
20    pub network_configuration: ::std::option::Option<crate::types::ProxyNetworkConfiguration>,
21    /// The status of the proxy.
22    pub status: ::std::option::Option<crate::types::ProxyStatus>,
23    /// The configuration metadata for the proxy.
24    pub configuration_metadata: ::std::option::Option<crate::types::ConfigurationMetadata>,
25    /// The date and time that the proxy was created.
26    pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
27    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. This value is absent when the proxy uses the default service-owned key.
28    pub customer_kms_key_arn: ::std::option::Option<::std::string::String>,
29    _request_id: Option<String>,
30}
31impl GetProxyOutput {
32    /// The Amazon Resource Name (ARN) of the proxy.
33    pub fn arn(&self) -> ::std::option::Option<&str> {
34        self.arn.as_deref()
35    }
36    /// The name of the proxy.
37    pub fn name(&self) -> ::std::option::Option<&str> {
38        self.name.as_deref()
39    }
40    /// The type of proxy.
41    pub fn r#type(&self) -> ::std::option::Option<&crate::types::ProxyType> {
42        self.r#type.as_ref()
43    }
44    /// The version of the proxy software.
45    pub fn proxy_version(&self) -> ::std::option::Option<&str> {
46        self.proxy_version.as_deref()
47    }
48    /// The DNS name of the proxy.
49    pub fn dns_name(&self) -> ::std::option::Option<&str> {
50        self.dns_name.as_deref()
51    }
52    /// The Amazon Resource Name (ARN) of the IAM role that provides permissions to the code that your Envoy configuration runs on the proxy, such as filters and extensions. These are the permissions that this code needs when it calls AWS services.
53    pub fn role_arn(&self) -> ::std::option::Option<&str> {
54        self.role_arn.as_deref()
55    }
56    /// The network configuration for the proxy.
57    pub fn network_configuration(&self) -> ::std::option::Option<&crate::types::ProxyNetworkConfiguration> {
58        self.network_configuration.as_ref()
59    }
60    /// The status of the proxy.
61    pub fn status(&self) -> ::std::option::Option<&crate::types::ProxyStatus> {
62        self.status.as_ref()
63    }
64    /// The configuration metadata for the proxy.
65    pub fn configuration_metadata(&self) -> ::std::option::Option<&crate::types::ConfigurationMetadata> {
66        self.configuration_metadata.as_ref()
67    }
68    /// The date and time that the proxy was created.
69    pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
70        self.created_at.as_ref()
71    }
72    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. This value is absent when the proxy uses the default service-owned key.
73    pub fn customer_kms_key_arn(&self) -> ::std::option::Option<&str> {
74        self.customer_kms_key_arn.as_deref()
75    }
76}
77impl ::aws_types::request_id::RequestId for GetProxyOutput {
78    fn request_id(&self) -> Option<&str> {
79        self._request_id.as_deref()
80    }
81}
82impl GetProxyOutput {
83    /// Creates a new builder-style object to manufacture [`GetProxyOutput`](crate::operation::get_proxy::GetProxyOutput).
84    pub fn builder() -> crate::operation::get_proxy::builders::GetProxyOutputBuilder {
85        crate::operation::get_proxy::builders::GetProxyOutputBuilder::default()
86    }
87}
88
89/// A builder for [`GetProxyOutput`](crate::operation::get_proxy::GetProxyOutput).
90#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
91#[non_exhaustive]
92pub struct GetProxyOutputBuilder {
93    pub(crate) arn: ::std::option::Option<::std::string::String>,
94    pub(crate) name: ::std::option::Option<::std::string::String>,
95    pub(crate) r#type: ::std::option::Option<crate::types::ProxyType>,
96    pub(crate) proxy_version: ::std::option::Option<::std::string::String>,
97    pub(crate) dns_name: ::std::option::Option<::std::string::String>,
98    pub(crate) role_arn: ::std::option::Option<::std::string::String>,
99    pub(crate) network_configuration: ::std::option::Option<crate::types::ProxyNetworkConfiguration>,
100    pub(crate) status: ::std::option::Option<crate::types::ProxyStatus>,
101    pub(crate) configuration_metadata: ::std::option::Option<crate::types::ConfigurationMetadata>,
102    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
103    pub(crate) customer_kms_key_arn: ::std::option::Option<::std::string::String>,
104    _request_id: Option<String>,
105}
106impl GetProxyOutputBuilder {
107    /// The Amazon Resource Name (ARN) of the proxy.
108    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
109        self.arn = ::std::option::Option::Some(input.into());
110        self
111    }
112    /// The Amazon Resource Name (ARN) of the proxy.
113    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
114        self.arn = input;
115        self
116    }
117    /// The Amazon Resource Name (ARN) of the proxy.
118    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
119        &self.arn
120    }
121    /// The name of the proxy.
122    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
123        self.name = ::std::option::Option::Some(input.into());
124        self
125    }
126    /// The name of the proxy.
127    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
128        self.name = input;
129        self
130    }
131    /// The name of the proxy.
132    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
133        &self.name
134    }
135    /// The type of proxy.
136    pub fn r#type(mut self, input: crate::types::ProxyType) -> Self {
137        self.r#type = ::std::option::Option::Some(input);
138        self
139    }
140    /// The type of proxy.
141    pub fn set_type(mut self, input: ::std::option::Option<crate::types::ProxyType>) -> Self {
142        self.r#type = input;
143        self
144    }
145    /// The type of proxy.
146    pub fn get_type(&self) -> &::std::option::Option<crate::types::ProxyType> {
147        &self.r#type
148    }
149    /// The version of the proxy software.
150    pub fn proxy_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
151        self.proxy_version = ::std::option::Option::Some(input.into());
152        self
153    }
154    /// The version of the proxy software.
155    pub fn set_proxy_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
156        self.proxy_version = input;
157        self
158    }
159    /// The version of the proxy software.
160    pub fn get_proxy_version(&self) -> &::std::option::Option<::std::string::String> {
161        &self.proxy_version
162    }
163    /// The DNS name of the proxy.
164    pub fn dns_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
165        self.dns_name = ::std::option::Option::Some(input.into());
166        self
167    }
168    /// The DNS name of the proxy.
169    pub fn set_dns_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
170        self.dns_name = input;
171        self
172    }
173    /// The DNS name of the proxy.
174    pub fn get_dns_name(&self) -> &::std::option::Option<::std::string::String> {
175        &self.dns_name
176    }
177    /// The Amazon Resource Name (ARN) of the IAM role that provides permissions to the code that your Envoy configuration runs on the proxy, such as filters and extensions. These are the permissions that this code needs when it calls AWS services.
178    pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
179        self.role_arn = ::std::option::Option::Some(input.into());
180        self
181    }
182    /// The Amazon Resource Name (ARN) of the IAM role that provides permissions to the code that your Envoy configuration runs on the proxy, such as filters and extensions. These are the permissions that this code needs when it calls AWS services.
183    pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
184        self.role_arn = input;
185        self
186    }
187    /// The Amazon Resource Name (ARN) of the IAM role that provides permissions to the code that your Envoy configuration runs on the proxy, such as filters and extensions. These are the permissions that this code needs when it calls AWS services.
188    pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
189        &self.role_arn
190    }
191    /// The network configuration for the proxy.
192    pub fn network_configuration(mut self, input: crate::types::ProxyNetworkConfiguration) -> Self {
193        self.network_configuration = ::std::option::Option::Some(input);
194        self
195    }
196    /// The network configuration for the proxy.
197    pub fn set_network_configuration(mut self, input: ::std::option::Option<crate::types::ProxyNetworkConfiguration>) -> Self {
198        self.network_configuration = input;
199        self
200    }
201    /// The network configuration for the proxy.
202    pub fn get_network_configuration(&self) -> &::std::option::Option<crate::types::ProxyNetworkConfiguration> {
203        &self.network_configuration
204    }
205    /// The status of the proxy.
206    pub fn status(mut self, input: crate::types::ProxyStatus) -> Self {
207        self.status = ::std::option::Option::Some(input);
208        self
209    }
210    /// The status of the proxy.
211    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ProxyStatus>) -> Self {
212        self.status = input;
213        self
214    }
215    /// The status of the proxy.
216    pub fn get_status(&self) -> &::std::option::Option<crate::types::ProxyStatus> {
217        &self.status
218    }
219    /// The configuration metadata for the proxy.
220    pub fn configuration_metadata(mut self, input: crate::types::ConfigurationMetadata) -> Self {
221        self.configuration_metadata = ::std::option::Option::Some(input);
222        self
223    }
224    /// The configuration metadata for the proxy.
225    pub fn set_configuration_metadata(mut self, input: ::std::option::Option<crate::types::ConfigurationMetadata>) -> Self {
226        self.configuration_metadata = input;
227        self
228    }
229    /// The configuration metadata for the proxy.
230    pub fn get_configuration_metadata(&self) -> &::std::option::Option<crate::types::ConfigurationMetadata> {
231        &self.configuration_metadata
232    }
233    /// The date and time that the proxy was created.
234    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
235        self.created_at = ::std::option::Option::Some(input);
236        self
237    }
238    /// The date and time that the proxy was created.
239    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
240        self.created_at = input;
241        self
242    }
243    /// The date and time that the proxy was created.
244    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
245        &self.created_at
246    }
247    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. This value is absent when the proxy uses the default service-owned key.
248    pub fn customer_kms_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
249        self.customer_kms_key_arn = ::std::option::Option::Some(input.into());
250        self
251    }
252    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. This value is absent when the proxy uses the default service-owned key.
253    pub fn set_customer_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
254        self.customer_kms_key_arn = input;
255        self
256    }
257    /// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. This value is absent when the proxy uses the default service-owned key.
258    pub fn get_customer_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
259        &self.customer_kms_key_arn
260    }
261    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
262        self._request_id = Some(request_id.into());
263        self
264    }
265
266    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
267        self._request_id = request_id;
268        self
269    }
270    /// Consumes the builder and constructs a [`GetProxyOutput`](crate::operation::get_proxy::GetProxyOutput).
271    pub fn build(self) -> crate::operation::get_proxy::GetProxyOutput {
272        crate::operation::get_proxy::GetProxyOutput {
273            arn: self.arn,
274            name: self.name,
275            r#type: self.r#type,
276            proxy_version: self.proxy_version,
277            dns_name: self.dns_name,
278            role_arn: self.role_arn,
279            network_configuration: self.network_configuration,
280            status: self.status,
281            configuration_metadata: self.configuration_metadata,
282            created_at: self.created_at,
283            customer_kms_key_arn: self.customer_kms_key_arn,
284            _request_id: self._request_id,
285        }
286    }
287}