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
// 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 UpdateLookupTableInput {
/// <p>The ARN of the lookup table to update.</p>
pub lookup_table_arn: ::std::option::Option<::std::string::String>,
/// <p>An updated description of the lookup table.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>The new CSV content to replace the existing data. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB.</p>
/// <p>You must specify either <code>tableBody</code> or <code>queryId</code>, but not both.</p>
pub table_body: ::std::option::Option<::std::string::String>,
/// <p>The ID of a completed or cancelled CloudWatch Logs query whose results replace the lookup table content. A cancelled query replaces the content with the partial results that were available when the query was stopped.</p>
/// <p>You must specify either <code>tableBody</code> or <code>queryId</code>, but not both.</p>
pub query_id: ::std::option::Option<::std::string::String>,
/// <p>The ARN of the KMS key to use to encrypt the lookup table data. You can use this parameter to add, update, or remove the KMS key. To remove the KMS key and use an Amazon Web Services-owned key instead, specify an empty string.</p>
pub kms_key_id: ::std::option::Option<::std::string::String>,
}
impl UpdateLookupTableInput {
/// <p>The ARN of the lookup table to update.</p>
pub fn lookup_table_arn(&self) -> ::std::option::Option<&str> {
self.lookup_table_arn.as_deref()
}
/// <p>An updated description of the lookup table.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The new CSV content to replace the existing data. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB.</p>
/// <p>You must specify either <code>tableBody</code> or <code>queryId</code>, but not both.</p>
pub fn table_body(&self) -> ::std::option::Option<&str> {
self.table_body.as_deref()
}
/// <p>The ID of a completed or cancelled CloudWatch Logs query whose results replace the lookup table content. A cancelled query replaces the content with the partial results that were available when the query was stopped.</p>
/// <p>You must specify either <code>tableBody</code> or <code>queryId</code>, but not both.</p>
pub fn query_id(&self) -> ::std::option::Option<&str> {
self.query_id.as_deref()
}
/// <p>The ARN of the KMS key to use to encrypt the lookup table data. You can use this parameter to add, update, or remove the KMS key. To remove the KMS key and use an Amazon Web Services-owned key instead, specify an empty string.</p>
pub fn kms_key_id(&self) -> ::std::option::Option<&str> {
self.kms_key_id.as_deref()
}
}
impl UpdateLookupTableInput {
/// Creates a new builder-style object to manufacture [`UpdateLookupTableInput`](crate::operation::update_lookup_table::UpdateLookupTableInput).
pub fn builder() -> crate::operation::update_lookup_table::builders::UpdateLookupTableInputBuilder {
crate::operation::update_lookup_table::builders::UpdateLookupTableInputBuilder::default()
}
}
/// A builder for [`UpdateLookupTableInput`](crate::operation::update_lookup_table::UpdateLookupTableInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateLookupTableInputBuilder {
pub(crate) lookup_table_arn: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) table_body: ::std::option::Option<::std::string::String>,
pub(crate) query_id: ::std::option::Option<::std::string::String>,
pub(crate) kms_key_id: ::std::option::Option<::std::string::String>,
}
impl UpdateLookupTableInputBuilder {
/// <p>The ARN of the lookup table to update.</p>
/// This field is required.
pub fn lookup_table_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.lookup_table_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the lookup table to update.</p>
pub fn set_lookup_table_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.lookup_table_arn = input;
self
}
/// <p>The ARN of the lookup table to update.</p>
pub fn get_lookup_table_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.lookup_table_arn
}
/// <p>An updated description of the lookup table.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>An updated description of the lookup table.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>An updated description of the lookup table.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>The new CSV content to replace the existing data. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB.</p>
/// <p>You must specify either <code>tableBody</code> or <code>queryId</code>, but not both.</p>
pub fn table_body(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.table_body = ::std::option::Option::Some(input.into());
self
}
/// <p>The new CSV content to replace the existing data. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB.</p>
/// <p>You must specify either <code>tableBody</code> or <code>queryId</code>, but not both.</p>
pub fn set_table_body(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.table_body = input;
self
}
/// <p>The new CSV content to replace the existing data. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB.</p>
/// <p>You must specify either <code>tableBody</code> or <code>queryId</code>, but not both.</p>
pub fn get_table_body(&self) -> &::std::option::Option<::std::string::String> {
&self.table_body
}
/// <p>The ID of a completed or cancelled CloudWatch Logs query whose results replace the lookup table content. A cancelled query replaces the content with the partial results that were available when the query was stopped.</p>
/// <p>You must specify either <code>tableBody</code> or <code>queryId</code>, but not both.</p>
pub fn query_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.query_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of a completed or cancelled CloudWatch Logs query whose results replace the lookup table content. A cancelled query replaces the content with the partial results that were available when the query was stopped.</p>
/// <p>You must specify either <code>tableBody</code> or <code>queryId</code>, but not both.</p>
pub fn set_query_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.query_id = input;
self
}
/// <p>The ID of a completed or cancelled CloudWatch Logs query whose results replace the lookup table content. A cancelled query replaces the content with the partial results that were available when the query was stopped.</p>
/// <p>You must specify either <code>tableBody</code> or <code>queryId</code>, but not both.</p>
pub fn get_query_id(&self) -> &::std::option::Option<::std::string::String> {
&self.query_id
}
/// <p>The ARN of the KMS key to use to encrypt the lookup table data. You can use this parameter to add, update, or remove the KMS key. To remove the KMS key and use an Amazon Web Services-owned key instead, specify an empty string.</p>
pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.kms_key_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the KMS key to use to encrypt the lookup table data. You can use this parameter to add, update, or remove the KMS key. To remove the KMS key and use an Amazon Web Services-owned key instead, specify an empty string.</p>
pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.kms_key_id = input;
self
}
/// <p>The ARN of the KMS key to use to encrypt the lookup table data. You can use this parameter to add, update, or remove the KMS key. To remove the KMS key and use an Amazon Web Services-owned key instead, specify an empty string.</p>
pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.kms_key_id
}
/// Consumes the builder and constructs a [`UpdateLookupTableInput`](crate::operation::update_lookup_table::UpdateLookupTableInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_lookup_table::UpdateLookupTableInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_lookup_table::UpdateLookupTableInput {
lookup_table_arn: self.lookup_table_arn,
description: self.description,
table_body: self.table_body,
query_id: self.query_id,
kms_key_id: self.kms_key_id,
})
}
}