aws_sdk_s3/operation/select_object_content/_select_object_content_input.rs
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 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <note>
/// <p>Learn Amazon S3 Select is no longer available to new customers. Existing customers of Amazon S3 Select can continue to use the feature as usual. <a href="http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/">Learn more</a></p>
/// </note>
/// <p>Request to filter the contents of an Amazon S3 object based on a simple Structured Query Language (SQL) statement. In the request, along with the SQL expression, you must specify a data serialization format (JSON or CSV) of the object. Amazon S3 uses this to parse object data into records. It returns only records that match the specified SQL expression. You must also specify the data serialization format for the response. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectSELECTContent.html">S3Select API Documentation</a>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct SelectObjectContentInput {
/// <p>The S3 bucket.</p>
pub bucket: ::std::option::Option<::std::string::String>,
/// <p>The object key.</p>
pub key: ::std::option::Option<::std::string::String>,
/// <p>The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub sse_customer_algorithm: ::std::option::Option<::std::string::String>,
/// <p>The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub sse_customer_key: ::std::option::Option<::std::string::String>,
/// <p>The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub sse_customer_key_md5: ::std::option::Option<::std::string::String>,
/// <p>The expression that is used to query the object.</p>
pub expression: ::std::option::Option<::std::string::String>,
/// <p>The type of the provided expression (for example, SQL).</p>
pub expression_type: ::std::option::Option<crate::types::ExpressionType>,
/// <p>Specifies if periodic request progress information should be enabled.</p>
pub request_progress: ::std::option::Option<crate::types::RequestProgress>,
/// <p>Describes the format of the data in the object that is being queried.</p>
pub input_serialization: ::std::option::Option<crate::types::InputSerialization>,
/// <p>Describes the format of the data that you want Amazon S3 to return in response.</p>
pub output_serialization: ::std::option::Option<crate::types::OutputSerialization>,
/// <p>Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.</p>
/// <p><code>ScanRange</code>may be used in the following ways:</p>
/// <ul>
/// <li>
/// <p><code><scanrange>
/// <start>
/// 50
/// </start>
/// <end>
/// 100
/// </end>
/// </scanrange></code> - process only the records starting between the bytes 50 and 100 (inclusive, counting from zero)</p></li>
/// <li>
/// <p><code><scanrange>
/// <start>
/// 50
/// </start>
/// </scanrange></code> - process only the records starting after the byte 50</p></li>
/// <li>
/// <p><code><scanrange>
/// <end>
/// 50
/// </end>
/// </scanrange></code> - process only the records within the last 50 bytes of the file.</p></li>
/// </ul>
pub scan_range: ::std::option::Option<crate::types::ScanRange>,
/// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
pub expected_bucket_owner: ::std::option::Option<::std::string::String>,
}
impl SelectObjectContentInput {
/// <p>The S3 bucket.</p>
pub fn bucket(&self) -> ::std::option::Option<&str> {
self.bucket.as_deref()
}
/// <p>The object key.</p>
pub fn key(&self) -> ::std::option::Option<&str> {
self.key.as_deref()
}
/// <p>The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub fn sse_customer_algorithm(&self) -> ::std::option::Option<&str> {
self.sse_customer_algorithm.as_deref()
}
/// <p>The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub fn sse_customer_key(&self) -> ::std::option::Option<&str> {
self.sse_customer_key.as_deref()
}
/// <p>The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub fn sse_customer_key_md5(&self) -> ::std::option::Option<&str> {
self.sse_customer_key_md5.as_deref()
}
/// <p>The expression that is used to query the object.</p>
pub fn expression(&self) -> ::std::option::Option<&str> {
self.expression.as_deref()
}
/// <p>The type of the provided expression (for example, SQL).</p>
pub fn expression_type(&self) -> ::std::option::Option<&crate::types::ExpressionType> {
self.expression_type.as_ref()
}
/// <p>Specifies if periodic request progress information should be enabled.</p>
pub fn request_progress(&self) -> ::std::option::Option<&crate::types::RequestProgress> {
self.request_progress.as_ref()
}
/// <p>Describes the format of the data in the object that is being queried.</p>
pub fn input_serialization(&self) -> ::std::option::Option<&crate::types::InputSerialization> {
self.input_serialization.as_ref()
}
/// <p>Describes the format of the data that you want Amazon S3 to return in response.</p>
pub fn output_serialization(&self) -> ::std::option::Option<&crate::types::OutputSerialization> {
self.output_serialization.as_ref()
}
/// <p>Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.</p>
/// <p><code>ScanRange</code>may be used in the following ways:</p>
/// <ul>
/// <li>
/// <p><code><scanrange>
/// <start>
/// 50
/// </start>
/// <end>
/// 100
/// </end>
/// </scanrange></code> - process only the records starting between the bytes 50 and 100 (inclusive, counting from zero)</p></li>
/// <li>
/// <p><code><scanrange>
/// <start>
/// 50
/// </start>
/// </scanrange></code> - process only the records starting after the byte 50</p></li>
/// <li>
/// <p><code><scanrange>
/// <end>
/// 50
/// </end>
/// </scanrange></code> - process only the records within the last 50 bytes of the file.</p></li>
/// </ul>
pub fn scan_range(&self) -> ::std::option::Option<&crate::types::ScanRange> {
self.scan_range.as_ref()
}
/// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
pub fn expected_bucket_owner(&self) -> ::std::option::Option<&str> {
self.expected_bucket_owner.as_deref()
}
}
impl ::std::fmt::Debug for SelectObjectContentInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("SelectObjectContentInput");
formatter.field("bucket", &self.bucket);
formatter.field("key", &self.key);
formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm);
formatter.field("sse_customer_key", &"*** Sensitive Data Redacted ***");
formatter.field("sse_customer_key_md5", &self.sse_customer_key_md5);
formatter.field("expression", &self.expression);
formatter.field("expression_type", &self.expression_type);
formatter.field("request_progress", &self.request_progress);
formatter.field("input_serialization", &self.input_serialization);
formatter.field("output_serialization", &self.output_serialization);
formatter.field("scan_range", &self.scan_range);
formatter.field("expected_bucket_owner", &self.expected_bucket_owner);
formatter.finish()
}
}
impl SelectObjectContentInput {
/// Creates a new builder-style object to manufacture [`SelectObjectContentInput`](crate::operation::select_object_content::SelectObjectContentInput).
pub fn builder() -> crate::operation::select_object_content::builders::SelectObjectContentInputBuilder {
crate::operation::select_object_content::builders::SelectObjectContentInputBuilder::default()
}
}
/// A builder for [`SelectObjectContentInput`](crate::operation::select_object_content::SelectObjectContentInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct SelectObjectContentInputBuilder {
pub(crate) bucket: ::std::option::Option<::std::string::String>,
pub(crate) key: ::std::option::Option<::std::string::String>,
pub(crate) sse_customer_algorithm: ::std::option::Option<::std::string::String>,
pub(crate) sse_customer_key: ::std::option::Option<::std::string::String>,
pub(crate) sse_customer_key_md5: ::std::option::Option<::std::string::String>,
pub(crate) expression: ::std::option::Option<::std::string::String>,
pub(crate) expression_type: ::std::option::Option<crate::types::ExpressionType>,
pub(crate) request_progress: ::std::option::Option<crate::types::RequestProgress>,
pub(crate) input_serialization: ::std::option::Option<crate::types::InputSerialization>,
pub(crate) output_serialization: ::std::option::Option<crate::types::OutputSerialization>,
pub(crate) scan_range: ::std::option::Option<crate::types::ScanRange>,
pub(crate) expected_bucket_owner: ::std::option::Option<::std::string::String>,
}
impl SelectObjectContentInputBuilder {
/// <p>The S3 bucket.</p>
/// This field is required.
pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bucket = ::std::option::Option::Some(input.into());
self
}
/// <p>The S3 bucket.</p>
pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bucket = input;
self
}
/// <p>The S3 bucket.</p>
pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
&self.bucket
}
/// <p>The object key.</p>
/// This field is required.
pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.key = ::std::option::Option::Some(input.into());
self
}
/// <p>The object key.</p>
pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.key = input;
self
}
/// <p>The object key.</p>
pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
&self.key
}
/// <p>The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub fn sse_customer_algorithm(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.sse_customer_algorithm = ::std::option::Option::Some(input.into());
self
}
/// <p>The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub fn set_sse_customer_algorithm(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.sse_customer_algorithm = input;
self
}
/// <p>The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub fn get_sse_customer_algorithm(&self) -> &::std::option::Option<::std::string::String> {
&self.sse_customer_algorithm
}
/// <p>The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub fn sse_customer_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.sse_customer_key = ::std::option::Option::Some(input.into());
self
}
/// <p>The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub fn set_sse_customer_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.sse_customer_key = input;
self
}
/// <p>The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub fn get_sse_customer_key(&self) -> &::std::option::Option<::std::string::String> {
&self.sse_customer_key
}
/// <p>The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub fn sse_customer_key_md5(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.sse_customer_key_md5 = ::std::option::Option::Some(input.into());
self
}
/// <p>The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub fn set_sse_customer_key_md5(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.sse_customer_key_md5 = input;
self
}
/// <p>The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Protecting data using SSE-C keys</a> in the <i>Amazon S3 User Guide</i>.</p>
pub fn get_sse_customer_key_md5(&self) -> &::std::option::Option<::std::string::String> {
&self.sse_customer_key_md5
}
/// <p>The expression that is used to query the object.</p>
/// This field is required.
pub fn expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.expression = ::std::option::Option::Some(input.into());
self
}
/// <p>The expression that is used to query the object.</p>
pub fn set_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.expression = input;
self
}
/// <p>The expression that is used to query the object.</p>
pub fn get_expression(&self) -> &::std::option::Option<::std::string::String> {
&self.expression
}
/// <p>The type of the provided expression (for example, SQL).</p>
/// This field is required.
pub fn expression_type(mut self, input: crate::types::ExpressionType) -> Self {
self.expression_type = ::std::option::Option::Some(input);
self
}
/// <p>The type of the provided expression (for example, SQL).</p>
pub fn set_expression_type(mut self, input: ::std::option::Option<crate::types::ExpressionType>) -> Self {
self.expression_type = input;
self
}
/// <p>The type of the provided expression (for example, SQL).</p>
pub fn get_expression_type(&self) -> &::std::option::Option<crate::types::ExpressionType> {
&self.expression_type
}
/// <p>Specifies if periodic request progress information should be enabled.</p>
pub fn request_progress(mut self, input: crate::types::RequestProgress) -> Self {
self.request_progress = ::std::option::Option::Some(input);
self
}
/// <p>Specifies if periodic request progress information should be enabled.</p>
pub fn set_request_progress(mut self, input: ::std::option::Option<crate::types::RequestProgress>) -> Self {
self.request_progress = input;
self
}
/// <p>Specifies if periodic request progress information should be enabled.</p>
pub fn get_request_progress(&self) -> &::std::option::Option<crate::types::RequestProgress> {
&self.request_progress
}
/// <p>Describes the format of the data in the object that is being queried.</p>
/// This field is required.
pub fn input_serialization(mut self, input: crate::types::InputSerialization) -> Self {
self.input_serialization = ::std::option::Option::Some(input);
self
}
/// <p>Describes the format of the data in the object that is being queried.</p>
pub fn set_input_serialization(mut self, input: ::std::option::Option<crate::types::InputSerialization>) -> Self {
self.input_serialization = input;
self
}
/// <p>Describes the format of the data in the object that is being queried.</p>
pub fn get_input_serialization(&self) -> &::std::option::Option<crate::types::InputSerialization> {
&self.input_serialization
}
/// <p>Describes the format of the data that you want Amazon S3 to return in response.</p>
/// This field is required.
pub fn output_serialization(mut self, input: crate::types::OutputSerialization) -> Self {
self.output_serialization = ::std::option::Option::Some(input);
self
}
/// <p>Describes the format of the data that you want Amazon S3 to return in response.</p>
pub fn set_output_serialization(mut self, input: ::std::option::Option<crate::types::OutputSerialization>) -> Self {
self.output_serialization = input;
self
}
/// <p>Describes the format of the data that you want Amazon S3 to return in response.</p>
pub fn get_output_serialization(&self) -> &::std::option::Option<crate::types::OutputSerialization> {
&self.output_serialization
}
/// <p>Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.</p>
/// <p><code>ScanRange</code>may be used in the following ways:</p>
/// <ul>
/// <li>
/// <p><code><scanrange>
/// <start>
/// 50
/// </start>
/// <end>
/// 100
/// </end>
/// </scanrange></code> - process only the records starting between the bytes 50 and 100 (inclusive, counting from zero)</p></li>
/// <li>
/// <p><code><scanrange>
/// <start>
/// 50
/// </start>
/// </scanrange></code> - process only the records starting after the byte 50</p></li>
/// <li>
/// <p><code><scanrange>
/// <end>
/// 50
/// </end>
/// </scanrange></code> - process only the records within the last 50 bytes of the file.</p></li>
/// </ul>
pub fn scan_range(mut self, input: crate::types::ScanRange) -> Self {
self.scan_range = ::std::option::Option::Some(input);
self
}
/// <p>Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.</p>
/// <p><code>ScanRange</code>may be used in the following ways:</p>
/// <ul>
/// <li>
/// <p><code><scanrange>
/// <start>
/// 50
/// </start>
/// <end>
/// 100
/// </end>
/// </scanrange></code> - process only the records starting between the bytes 50 and 100 (inclusive, counting from zero)</p></li>
/// <li>
/// <p><code><scanrange>
/// <start>
/// 50
/// </start>
/// </scanrange></code> - process only the records starting after the byte 50</p></li>
/// <li>
/// <p><code><scanrange>
/// <end>
/// 50
/// </end>
/// </scanrange></code> - process only the records within the last 50 bytes of the file.</p></li>
/// </ul>
pub fn set_scan_range(mut self, input: ::std::option::Option<crate::types::ScanRange>) -> Self {
self.scan_range = input;
self
}
/// <p>Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.</p>
/// <p><code>ScanRange</code>may be used in the following ways:</p>
/// <ul>
/// <li>
/// <p><code><scanrange>
/// <start>
/// 50
/// </start>
/// <end>
/// 100
/// </end>
/// </scanrange></code> - process only the records starting between the bytes 50 and 100 (inclusive, counting from zero)</p></li>
/// <li>
/// <p><code><scanrange>
/// <start>
/// 50
/// </start>
/// </scanrange></code> - process only the records starting after the byte 50</p></li>
/// <li>
/// <p><code><scanrange>
/// <end>
/// 50
/// </end>
/// </scanrange></code> - process only the records within the last 50 bytes of the file.</p></li>
/// </ul>
pub fn get_scan_range(&self) -> &::std::option::Option<crate::types::ScanRange> {
&self.scan_range
}
/// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.expected_bucket_owner = ::std::option::Option::Some(input.into());
self
}
/// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.expected_bucket_owner = input;
self
}
/// <p>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).</p>
pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
&self.expected_bucket_owner
}
/// Consumes the builder and constructs a [`SelectObjectContentInput`](crate::operation::select_object_content::SelectObjectContentInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::select_object_content::SelectObjectContentInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::select_object_content::SelectObjectContentInput {
bucket: self.bucket,
key: self.key,
sse_customer_algorithm: self.sse_customer_algorithm,
sse_customer_key: self.sse_customer_key,
sse_customer_key_md5: self.sse_customer_key_md5,
expression: self.expression,
expression_type: self.expression_type,
request_progress: self.request_progress,
input_serialization: self.input_serialization,
output_serialization: self.output_serialization,
scan_range: self.scan_range,
expected_bucket_owner: self.expected_bucket_owner,
})
}
}
impl ::std::fmt::Debug for SelectObjectContentInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("SelectObjectContentInputBuilder");
formatter.field("bucket", &self.bucket);
formatter.field("key", &self.key);
formatter.field("sse_customer_algorithm", &self.sse_customer_algorithm);
formatter.field("sse_customer_key", &"*** Sensitive Data Redacted ***");
formatter.field("sse_customer_key_md5", &self.sse_customer_key_md5);
formatter.field("expression", &self.expression);
formatter.field("expression_type", &self.expression_type);
formatter.field("request_progress", &self.request_progress);
formatter.field("input_serialization", &self.input_serialization);
formatter.field("output_serialization", &self.output_serialization);
formatter.field("scan_range", &self.scan_range);
formatter.field("expected_bucket_owner", &self.expected_bucket_owner);
formatter.finish()
}
}