1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateProxyConfigurationInput {
/// The Amazon Resource Name (ARN) of the proxy.
pub proxy_identifier: ::std::option::Option<::std::string::String>,
/// The updated configuration file for the proxy. If you don't specify a value, the existing configuration file is unchanged.
pub configuration_file: ::std::option::Option<crate::types::ConfigurationFile>,
/// The updated configuration archive for the proxy. If you don't specify a value, the existing configuration archive is unchanged.
pub configuration_archive: ::std::option::Option<crate::types::ConfigurationArchive>,
/// Indicates whether to remove the configuration archive from the proxy.
pub reset_configuration_archive: ::std::option::Option<bool>,
/// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. Specify a new ARN to set or rotate the key. If you don't specify a value, the existing key is unchanged.
pub customer_kms_key_arn: ::std::option::Option<::std::string::String>,
/// Indicates whether to remove the customer managed KMS key from the proxy and use the default service-owned key.
pub reset_customer_kms_key_arn: ::std::option::Option<bool>,
}
impl UpdateProxyConfigurationInput {
/// The Amazon Resource Name (ARN) of the proxy.
pub fn proxy_identifier(&self) -> ::std::option::Option<&str> {
self.proxy_identifier.as_deref()
}
/// The updated configuration file for the proxy. If you don't specify a value, the existing configuration file is unchanged.
pub fn configuration_file(&self) -> ::std::option::Option<&crate::types::ConfigurationFile> {
self.configuration_file.as_ref()
}
/// The updated configuration archive for the proxy. If you don't specify a value, the existing configuration archive is unchanged.
pub fn configuration_archive(&self) -> ::std::option::Option<&crate::types::ConfigurationArchive> {
self.configuration_archive.as_ref()
}
/// Indicates whether to remove the configuration archive from the proxy.
pub fn reset_configuration_archive(&self) -> ::std::option::Option<bool> {
self.reset_configuration_archive
}
/// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. Specify a new ARN to set or rotate the key. If you don't specify a value, the existing key is unchanged.
pub fn customer_kms_key_arn(&self) -> ::std::option::Option<&str> {
self.customer_kms_key_arn.as_deref()
}
/// Indicates whether to remove the customer managed KMS key from the proxy and use the default service-owned key.
pub fn reset_customer_kms_key_arn(&self) -> ::std::option::Option<bool> {
self.reset_customer_kms_key_arn
}
}
impl UpdateProxyConfigurationInput {
/// Creates a new builder-style object to manufacture [`UpdateProxyConfigurationInput`](crate::operation::update_proxy_configuration::UpdateProxyConfigurationInput).
pub fn builder() -> crate::operation::update_proxy_configuration::builders::UpdateProxyConfigurationInputBuilder {
crate::operation::update_proxy_configuration::builders::UpdateProxyConfigurationInputBuilder::default()
}
}
/// A builder for [`UpdateProxyConfigurationInput`](crate::operation::update_proxy_configuration::UpdateProxyConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateProxyConfigurationInputBuilder {
pub(crate) proxy_identifier: ::std::option::Option<::std::string::String>,
pub(crate) configuration_file: ::std::option::Option<crate::types::ConfigurationFile>,
pub(crate) configuration_archive: ::std::option::Option<crate::types::ConfigurationArchive>,
pub(crate) reset_configuration_archive: ::std::option::Option<bool>,
pub(crate) customer_kms_key_arn: ::std::option::Option<::std::string::String>,
pub(crate) reset_customer_kms_key_arn: ::std::option::Option<bool>,
}
impl UpdateProxyConfigurationInputBuilder {
/// The Amazon Resource Name (ARN) of the proxy.
/// This field is required.
pub fn proxy_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.proxy_identifier = ::std::option::Option::Some(input.into());
self
}
/// The Amazon Resource Name (ARN) of the proxy.
pub fn set_proxy_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.proxy_identifier = input;
self
}
/// The Amazon Resource Name (ARN) of the proxy.
pub fn get_proxy_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.proxy_identifier
}
/// The updated configuration file for the proxy. If you don't specify a value, the existing configuration file is unchanged.
pub fn configuration_file(mut self, input: crate::types::ConfigurationFile) -> Self {
self.configuration_file = ::std::option::Option::Some(input);
self
}
/// The updated configuration file for the proxy. If you don't specify a value, the existing configuration file is unchanged.
pub fn set_configuration_file(mut self, input: ::std::option::Option<crate::types::ConfigurationFile>) -> Self {
self.configuration_file = input;
self
}
/// The updated configuration file for the proxy. If you don't specify a value, the existing configuration file is unchanged.
pub fn get_configuration_file(&self) -> &::std::option::Option<crate::types::ConfigurationFile> {
&self.configuration_file
}
/// The updated configuration archive for the proxy. If you don't specify a value, the existing configuration archive is unchanged.
pub fn configuration_archive(mut self, input: crate::types::ConfigurationArchive) -> Self {
self.configuration_archive = ::std::option::Option::Some(input);
self
}
/// The updated configuration archive for the proxy. If you don't specify a value, the existing configuration archive is unchanged.
pub fn set_configuration_archive(mut self, input: ::std::option::Option<crate::types::ConfigurationArchive>) -> Self {
self.configuration_archive = input;
self
}
/// The updated configuration archive for the proxy. If you don't specify a value, the existing configuration archive is unchanged.
pub fn get_configuration_archive(&self) -> &::std::option::Option<crate::types::ConfigurationArchive> {
&self.configuration_archive
}
/// Indicates whether to remove the configuration archive from the proxy.
pub fn reset_configuration_archive(mut self, input: bool) -> Self {
self.reset_configuration_archive = ::std::option::Option::Some(input);
self
}
/// Indicates whether to remove the configuration archive from the proxy.
pub fn set_reset_configuration_archive(mut self, input: ::std::option::Option<bool>) -> Self {
self.reset_configuration_archive = input;
self
}
/// Indicates whether to remove the configuration archive from the proxy.
pub fn get_reset_configuration_archive(&self) -> &::std::option::Option<bool> {
&self.reset_configuration_archive
}
/// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. Specify a new ARN to set or rotate the key. If you don't specify a value, the existing key is unchanged.
pub fn customer_kms_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.customer_kms_key_arn = ::std::option::Option::Some(input.into());
self
}
/// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. Specify a new ARN to set or rotate the key. If you don't specify a value, the existing key is unchanged.
pub fn set_customer_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.customer_kms_key_arn = input;
self
}
/// The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. Specify a new ARN to set or rotate the key. If you don't specify a value, the existing key is unchanged.
pub fn get_customer_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.customer_kms_key_arn
}
/// Indicates whether to remove the customer managed KMS key from the proxy and use the default service-owned key.
pub fn reset_customer_kms_key_arn(mut self, input: bool) -> Self {
self.reset_customer_kms_key_arn = ::std::option::Option::Some(input);
self
}
/// Indicates whether to remove the customer managed KMS key from the proxy and use the default service-owned key.
pub fn set_reset_customer_kms_key_arn(mut self, input: ::std::option::Option<bool>) -> Self {
self.reset_customer_kms_key_arn = input;
self
}
/// Indicates whether to remove the customer managed KMS key from the proxy and use the default service-owned key.
pub fn get_reset_customer_kms_key_arn(&self) -> &::std::option::Option<bool> {
&self.reset_customer_kms_key_arn
}
/// Consumes the builder and constructs a [`UpdateProxyConfigurationInput`](crate::operation::update_proxy_configuration::UpdateProxyConfigurationInput).
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::update_proxy_configuration::UpdateProxyConfigurationInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::update_proxy_configuration::UpdateProxyConfigurationInput {
proxy_identifier: self.proxy_identifier,
configuration_file: self.configuration_file,
configuration_archive: self.configuration_archive,
reset_configuration_archive: self.reset_configuration_archive,
customer_kms_key_arn: self.customer_kms_key_arn,
reset_customer_kms_key_arn: self.reset_customer_kms_key_arn,
})
}
}