pub struct Builder { /* private fields */ }
Expand description

Implementations§

Route prefix to the HTTP URL generated.

Examples found in repository?
src/client.rs (line 16477)
16476
16477
16478
16479
        pub fn request_route(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.request_route(input.into());
            self
        }

Route prefix to the HTTP URL generated.

Examples found in repository?
src/client.rs (line 16485)
16481
16482
16483
16484
16485
16486
16487
        pub fn set_request_route(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_request_route(input);
            self
        }

A single use encrypted token that maps WriteGetObjectResponse to the end user GetObject request.

Examples found in repository?
src/client.rs (line 16490)
16489
16490
16491
16492
        pub fn request_token(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.request_token(input.into());
            self
        }

A single use encrypted token that maps WriteGetObjectResponse to the end user GetObject request.

Examples found in repository?
src/client.rs (line 16498)
16494
16495
16496
16497
16498
16499
16500
        pub fn set_request_token(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_request_token(input);
            self
        }

The object data.

Examples found in repository?
src/client.rs (line 16503)
16502
16503
16504
16505
        pub fn body(mut self, input: aws_smithy_http::byte_stream::ByteStream) -> Self {
            self.inner = self.inner.body(input);
            self
        }

The object data.

Examples found in repository?
src/client.rs (line 16511)
16507
16508
16509
16510
16511
16512
16513
        pub fn set_body(
            mut self,
            input: std::option::Option<aws_smithy_http::byte_stream::ByteStream>,
        ) -> Self {
            self.inner = self.inner.set_body(input);
            self
        }

The integer status code for an HTTP response of a corresponding GetObject request.

Status Codes

  • 200 - OK

  • 206 - Partial Content

  • 304 - Not Modified

  • 400 - Bad Request

  • 401 - Unauthorized

  • 403 - Forbidden

  • 404 - Not Found

  • 405 - Method Not Allowed

  • 409 - Conflict

  • 411 - Length Required

  • 412 - Precondition Failed

  • 416 - Range Not Satisfiable

  • 500 - Internal Server Error

  • 503 - Service Unavailable

Examples found in repository?
src/client.rs (line 16533)
16532
16533
16534
16535
        pub fn status_code(mut self, input: i32) -> Self {
            self.inner = self.inner.status_code(input);
            self
        }

The integer status code for an HTTP response of a corresponding GetObject request.

Status Codes

  • 200 - OK

  • 206 - Partial Content

  • 304 - Not Modified

  • 400 - Bad Request

  • 401 - Unauthorized

  • 403 - Forbidden

  • 404 - Not Found

  • 405 - Method Not Allowed

  • 409 - Conflict

  • 411 - Length Required

  • 412 - Precondition Failed

  • 416 - Range Not Satisfiable

  • 500 - Internal Server Error

  • 503 - Service Unavailable

Examples found in repository?
src/client.rs (line 16555)
16554
16555
16556
16557
        pub fn set_status_code(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_status_code(input);
            self
        }

A string that uniquely identifies an error condition. Returned in the tag of the error XML response for a corresponding GetObject call. Cannot be used with a successful StatusCode header or when the transformed object is provided in the body. All error codes from S3 are sentence-cased. The regular expression (regex) value is "^[A-Z][a-zA-Z]+$".

Examples found in repository?
src/client.rs (line 16560)
16559
16560
16561
16562
        pub fn error_code(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.error_code(input.into());
            self
        }

A string that uniquely identifies an error condition. Returned in the tag of the error XML response for a corresponding GetObject call. Cannot be used with a successful StatusCode header or when the transformed object is provided in the body. All error codes from S3 are sentence-cased. The regular expression (regex) value is "^[A-Z][a-zA-Z]+$".

Examples found in repository?
src/client.rs (line 16565)
16564
16565
16566
16567
        pub fn set_error_code(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_error_code(input);
            self
        }

Contains a generic description of the error condition. Returned in the tag of the error XML response for a corresponding GetObject call. Cannot be used with a successful StatusCode header or when the transformed object is provided in body.

Examples found in repository?
src/client.rs (line 16574)
16573
16574
16575
16576
        pub fn error_message(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.error_message(input.into());
            self
        }

Contains a generic description of the error condition. Returned in the tag of the error XML response for a corresponding GetObject call. Cannot be used with a successful StatusCode header or when the transformed object is provided in body.

Examples found in repository?
src/client.rs (line 16586)
16582
16583
16584
16585
16586
16587
16588
        pub fn set_error_message(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_error_message(input);
            self
        }

Indicates that a range of bytes was specified.

Examples found in repository?
src/client.rs (line 16591)
16590
16591
16592
16593
        pub fn accept_ranges(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.accept_ranges(input.into());
            self
        }

Indicates that a range of bytes was specified.

Examples found in repository?
src/client.rs (line 16599)
16595
16596
16597
16598
16599
16600
16601
        pub fn set_accept_ranges(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_accept_ranges(input);
            self
        }

Specifies caching behavior along the request/reply chain.

Examples found in repository?
src/client.rs (line 16604)
16603
16604
16605
16606
        pub fn cache_control(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.cache_control(input.into());
            self
        }

Specifies caching behavior along the request/reply chain.

Examples found in repository?
src/client.rs (line 16612)
16608
16609
16610
16611
16612
16613
16614
        pub fn set_cache_control(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_cache_control(input);
            self
        }

Specifies presentational information for the object.

Examples found in repository?
src/client.rs (line 16617)
16616
16617
16618
16619
        pub fn content_disposition(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.content_disposition(input.into());
            self
        }

Specifies presentational information for the object.

Examples found in repository?
src/client.rs (line 16625)
16621
16622
16623
16624
16625
16626
16627
        pub fn set_content_disposition(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_content_disposition(input);
            self
        }

Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.

Examples found in repository?
src/client.rs (line 16630)
16629
16630
16631
16632
        pub fn content_encoding(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.content_encoding(input.into());
            self
        }

Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.

Examples found in repository?
src/client.rs (line 16638)
16634
16635
16636
16637
16638
16639
16640
        pub fn set_content_encoding(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_content_encoding(input);
            self
        }

The language the content is in.

Examples found in repository?
src/client.rs (line 16643)
16642
16643
16644
16645
        pub fn content_language(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.content_language(input.into());
            self
        }

The language the content is in.

Examples found in repository?
src/client.rs (line 16651)
16647
16648
16649
16650
16651
16652
16653
        pub fn set_content_language(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_content_language(input);
            self
        }

The size of the content body in bytes.

Examples found in repository?
src/client.rs (line 16656)
16655
16656
16657
16658
        pub fn content_length(mut self, input: i64) -> Self {
            self.inner = self.inner.content_length(input);
            self
        }

The size of the content body in bytes.

Examples found in repository?
src/client.rs (line 16661)
16660
16661
16662
16663
        pub fn set_content_length(mut self, input: std::option::Option<i64>) -> Self {
            self.inner = self.inner.set_content_length(input);
            self
        }

The portion of the object returned in the response.

Examples found in repository?
src/client.rs (line 16666)
16665
16666
16667
16668
        pub fn content_range(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.content_range(input.into());
            self
        }

The portion of the object returned in the response.

Examples found in repository?
src/client.rs (line 16674)
16670
16671
16672
16673
16674
16675
16676
        pub fn set_content_range(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_content_range(input);
            self
        }

A standard MIME type describing the format of the object data.

Examples found in repository?
src/client.rs (line 16679)
16678
16679
16680
16681
        pub fn content_type(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.content_type(input.into());
            self
        }

A standard MIME type describing the format of the object data.

Examples found in repository?
src/client.rs (line 16684)
16683
16684
16685
16686
        pub fn set_content_type(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_content_type(input);
            self
        }

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

Examples found in repository?
src/client.rs (line 16691)
16690
16691
16692
16693
        pub fn checksum_crc32(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.checksum_crc32(input.into());
            self
        }

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

Examples found in repository?
src/client.rs (line 16701)
16697
16698
16699
16700
16701
16702
16703
        pub fn set_checksum_crc32(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_checksum_crc32(input);
            self
        }

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

Examples found in repository?
src/client.rs (line 16707)
16706
16707
16708
16709
        pub fn checksum_crc32_c(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.checksum_crc32_c(input.into());
            self
        }

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

Examples found in repository?
src/client.rs (line 16716)
16712
16713
16714
16715
16716
16717
16718
        pub fn set_checksum_crc32_c(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_checksum_crc32_c(input);
            self
        }

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

Examples found in repository?
src/client.rs (line 16722)
16721
16722
16723
16724
        pub fn checksum_sha1(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.checksum_sha1(input.into());
            self
        }

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

Examples found in repository?
src/client.rs (line 16731)
16727
16728
16729
16730
16731
16732
16733
        pub fn set_checksum_sha1(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_checksum_sha1(input);
            self
        }

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

Examples found in repository?
src/client.rs (line 16737)
16736
16737
16738
16739
        pub fn checksum_sha256(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.checksum_sha256(input.into());
            self
        }

This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

Examples found in repository?
src/client.rs (line 16746)
16742
16743
16744
16745
16746
16747
16748
        pub fn set_checksum_sha256(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_checksum_sha256(input);
            self
        }

Specifies whether an object stored in Amazon S3 is (true) or is not (false) a delete marker.

Examples found in repository?
src/client.rs (line 16751)
16750
16751
16752
16753
        pub fn delete_marker(mut self, input: bool) -> Self {
            self.inner = self.inner.delete_marker(input);
            self
        }

Specifies whether an object stored in Amazon S3 is (true) or is not (false) a delete marker.

Examples found in repository?
src/client.rs (line 16756)
16755
16756
16757
16758
        pub fn set_delete_marker(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_delete_marker(input);
            self
        }

An opaque identifier assigned by a web server to a specific version of a resource found at a URL.

Examples found in repository?
src/client.rs (line 16761)
16760
16761
16762
16763
        pub fn e_tag(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.e_tag(input.into());
            self
        }

An opaque identifier assigned by a web server to a specific version of a resource found at a URL.

Examples found in repository?
src/client.rs (line 16766)
16765
16766
16767
16768
        pub fn set_e_tag(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_e_tag(input);
            self
        }

The date and time at which the object is no longer cacheable.

Examples found in repository?
src/client.rs (line 16771)
16770
16771
16772
16773
        pub fn expires(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.inner = self.inner.expires(input);
            self
        }

The date and time at which the object is no longer cacheable.

Examples found in repository?
src/client.rs (line 16779)
16775
16776
16777
16778
16779
16780
16781
        pub fn set_expires(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.inner = self.inner.set_expires(input);
            self
        }

If the object expiration is configured (see PUT Bucket lifecycle), the response includes this header. It includes the expiry-date and rule-id key-value pairs that provide the object expiration information. The value of the rule-id is URL-encoded.

Examples found in repository?
src/client.rs (line 16784)
16783
16784
16785
16786
        pub fn expiration(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.expiration(input.into());
            self
        }

If the object expiration is configured (see PUT Bucket lifecycle), the response includes this header. It includes the expiry-date and rule-id key-value pairs that provide the object expiration information. The value of the rule-id is URL-encoded.

Examples found in repository?
src/client.rs (line 16789)
16788
16789
16790
16791
        pub fn set_expiration(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_expiration(input);
            self
        }

The date and time that the object was last modified.

Examples found in repository?
src/client.rs (line 16794)
16793
16794
16795
16796
        pub fn last_modified(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.inner = self.inner.last_modified(input);
            self
        }

The date and time that the object was last modified.

Examples found in repository?
src/client.rs (line 16802)
16798
16799
16800
16801
16802
16803
16804
        pub fn set_last_modified(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.inner = self.inner.set_last_modified(input);
            self
        }

Set to the number of metadata entries not returned in x-amz-meta headers. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.

Examples found in repository?
src/client.rs (line 16807)
16806
16807
16808
16809
        pub fn missing_meta(mut self, input: i32) -> Self {
            self.inner = self.inner.missing_meta(input);
            self
        }

Set to the number of metadata entries not returned in x-amz-meta headers. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.

Examples found in repository?
src/client.rs (line 16812)
16811
16812
16813
16814
        pub fn set_missing_meta(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_missing_meta(input);
            self
        }

Adds a key-value pair to metadata.

To override the contents of this collection use set_metadata.

A map of metadata to store with the object in S3.

Examples found in repository?
src/client.rs (line 16825)
16820
16821
16822
16823
16824
16825
16826
16827
        pub fn metadata(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.metadata(k.into(), v.into());
            self
        }

A map of metadata to store with the object in S3.

Examples found in repository?
src/client.rs (line 16835)
16829
16830
16831
16832
16833
16834
16835
16836
16837
        pub fn set_metadata(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, std::string::String>,
            >,
        ) -> Self {
            self.inner = self.inner.set_metadata(input);
            self
        }

Indicates whether an object stored in Amazon S3 has Object Lock enabled. For more information about S3 Object Lock, see Object Lock.

Examples found in repository?
src/client.rs (line 16840)
16839
16840
16841
16842
        pub fn object_lock_mode(mut self, input: crate::model::ObjectLockMode) -> Self {
            self.inner = self.inner.object_lock_mode(input);
            self
        }

Indicates whether an object stored in Amazon S3 has Object Lock enabled. For more information about S3 Object Lock, see Object Lock.

Examples found in repository?
src/client.rs (line 16848)
16844
16845
16846
16847
16848
16849
16850
        pub fn set_object_lock_mode(
            mut self,
            input: std::option::Option<crate::model::ObjectLockMode>,
        ) -> Self {
            self.inner = self.inner.set_object_lock_mode(input);
            self
        }

Indicates whether an object stored in Amazon S3 has an active legal hold.

Examples found in repository?
src/client.rs (line 16856)
16852
16853
16854
16855
16856
16857
16858
        pub fn object_lock_legal_hold_status(
            mut self,
            input: crate::model::ObjectLockLegalHoldStatus,
        ) -> Self {
            self.inner = self.inner.object_lock_legal_hold_status(input);
            self
        }

Indicates whether an object stored in Amazon S3 has an active legal hold.

Examples found in repository?
src/client.rs (line 16864)
16860
16861
16862
16863
16864
16865
16866
        pub fn set_object_lock_legal_hold_status(
            mut self,
            input: std::option::Option<crate::model::ObjectLockLegalHoldStatus>,
        ) -> Self {
            self.inner = self.inner.set_object_lock_legal_hold_status(input);
            self
        }

The date and time when Object Lock is configured to expire.

Examples found in repository?
src/client.rs (line 16869)
16868
16869
16870
16871
        pub fn object_lock_retain_until_date(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.inner = self.inner.object_lock_retain_until_date(input);
            self
        }

The date and time when Object Lock is configured to expire.

Examples found in repository?
src/client.rs (line 16877)
16873
16874
16875
16876
16877
16878
16879
        pub fn set_object_lock_retain_until_date(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.inner = self.inner.set_object_lock_retain_until_date(input);
            self
        }

The count of parts this object has.

Examples found in repository?
src/client.rs (line 16882)
16881
16882
16883
16884
        pub fn parts_count(mut self, input: i32) -> Self {
            self.inner = self.inner.parts_count(input);
            self
        }

The count of parts this object has.

Examples found in repository?
src/client.rs (line 16887)
16886
16887
16888
16889
        pub fn set_parts_count(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_parts_count(input);
            self
        }

Indicates if request involves bucket that is either a source or destination in a Replication rule. For more information about S3 Replication, see Replication.

Examples found in repository?
src/client.rs (line 16892)
16891
16892
16893
16894
        pub fn replication_status(mut self, input: crate::model::ReplicationStatus) -> Self {
            self.inner = self.inner.replication_status(input);
            self
        }

Indicates if request involves bucket that is either a source or destination in a Replication rule. For more information about S3 Replication, see Replication.

Examples found in repository?
src/client.rs (line 16900)
16896
16897
16898
16899
16900
16901
16902
        pub fn set_replication_status(
            mut self,
            input: std::option::Option<crate::model::ReplicationStatus>,
        ) -> Self {
            self.inner = self.inner.set_replication_status(input);
            self
        }

If present, indicates that the requester was successfully charged for the request.

Examples found in repository?
src/client.rs (line 16905)
16904
16905
16906
16907
        pub fn request_charged(mut self, input: crate::model::RequestCharged) -> Self {
            self.inner = self.inner.request_charged(input);
            self
        }

If present, indicates that the requester was successfully charged for the request.

Examples found in repository?
src/client.rs (line 16913)
16909
16910
16911
16912
16913
16914
16915
        pub fn set_request_charged(
            mut self,
            input: std::option::Option<crate::model::RequestCharged>,
        ) -> Self {
            self.inner = self.inner.set_request_charged(input);
            self
        }

Provides information about object restoration operation and expiration time of the restored object copy.

Examples found in repository?
src/client.rs (line 16918)
16917
16918
16919
16920
        pub fn restore(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.restore(input.into());
            self
        }

Provides information about object restoration operation and expiration time of the restored object copy.

Examples found in repository?
src/client.rs (line 16923)
16922
16923
16924
16925
        pub fn set_restore(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_restore(input);
            self
        }

The server-side encryption algorithm used when storing requested object in Amazon S3 (for example, AES256, aws:kms).

Examples found in repository?
src/client.rs (line 16928)
16927
16928
16929
16930
        pub fn server_side_encryption(mut self, input: crate::model::ServerSideEncryption) -> Self {
            self.inner = self.inner.server_side_encryption(input);
            self
        }

The server-side encryption algorithm used when storing requested object in Amazon S3 (for example, AES256, aws:kms).

Examples found in repository?
src/client.rs (line 16936)
16932
16933
16934
16935
16936
16937
16938
        pub fn set_server_side_encryption(
            mut self,
            input: std::option::Option<crate::model::ServerSideEncryption>,
        ) -> Self {
            self.inner = self.inner.set_server_side_encryption(input);
            self
        }

Encryption algorithm used if server-side encryption with a customer-provided encryption key was specified for object stored in Amazon S3.

Examples found in repository?
src/client.rs (line 16941)
16940
16941
16942
16943
        pub fn sse_customer_algorithm(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.sse_customer_algorithm(input.into());
            self
        }

Encryption algorithm used if server-side encryption with a customer-provided encryption key was specified for object stored in Amazon S3.

Examples found in repository?
src/client.rs (line 16949)
16945
16946
16947
16948
16949
16950
16951
        pub fn set_sse_customer_algorithm(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_sse_customer_algorithm(input);
            self
        }

If present, specifies the ID of the Amazon Web Services Key Management Service (Amazon Web Services KMS) symmetric customer managed key that was used for stored in Amazon S3 object.

Examples found in repository?
src/client.rs (line 16954)
16953
16954
16955
16956
        pub fn ssekms_key_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.ssekms_key_id(input.into());
            self
        }

If present, specifies the ID of the Amazon Web Services Key Management Service (Amazon Web Services KMS) symmetric customer managed key that was used for stored in Amazon S3 object.

Examples found in repository?
src/client.rs (line 16962)
16958
16959
16960
16961
16962
16963
16964
        pub fn set_ssekms_key_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_ssekms_key_id(input);
            self
        }

128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to encrypt data stored in S3. For more information, see Protecting data using server-side encryption with customer-provided encryption keys (SSE-C).

Examples found in repository?
src/client.rs (line 16967)
16966
16967
16968
16969
        pub fn sse_customer_key_md5(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.sse_customer_key_md5(input.into());
            self
        }

128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to encrypt data stored in S3. For more information, see Protecting data using server-side encryption with customer-provided encryption keys (SSE-C).

Examples found in repository?
src/client.rs (line 16975)
16971
16972
16973
16974
16975
16976
16977
        pub fn set_sse_customer_key_md5(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_sse_customer_key_md5(input);
            self
        }

Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.

For more information, see Storage Classes.

Examples found in repository?
src/client.rs (line 16981)
16980
16981
16982
16983
        pub fn storage_class(mut self, input: crate::model::StorageClass) -> Self {
            self.inner = self.inner.storage_class(input);
            self
        }

Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.

For more information, see Storage Classes.

Examples found in repository?
src/client.rs (line 16990)
16986
16987
16988
16989
16990
16991
16992
        pub fn set_storage_class(
            mut self,
            input: std::option::Option<crate::model::StorageClass>,
        ) -> Self {
            self.inner = self.inner.set_storage_class(input);
            self
        }

The number of tags, if any, on the object.

Examples found in repository?
src/client.rs (line 16995)
16994
16995
16996
16997
        pub fn tag_count(mut self, input: i32) -> Self {
            self.inner = self.inner.tag_count(input);
            self
        }

The number of tags, if any, on the object.

Examples found in repository?
src/client.rs (line 17000)
16999
17000
17001
17002
        pub fn set_tag_count(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_tag_count(input);
            self
        }

An ID used to reference a specific version of the object.

Examples found in repository?
src/client.rs (line 17005)
17004
17005
17006
17007
        pub fn version_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.version_id(input.into());
            self
        }

An ID used to reference a specific version of the object.

Examples found in repository?
src/client.rs (line 17010)
17009
17010
17011
17012
        pub fn set_version_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_version_id(input);
            self
        }

Indicates whether the object stored in Amazon S3 uses an S3 bucket key for server-side encryption with Amazon Web Services KMS (SSE-KMS).

Examples found in repository?
src/client.rs (line 17015)
17014
17015
17016
17017
        pub fn bucket_key_enabled(mut self, input: bool) -> Self {
            self.inner = self.inner.bucket_key_enabled(input);
            self
        }

Indicates whether the object stored in Amazon S3 uses an S3 bucket key for server-side encryption with Amazon Web Services KMS (SSE-KMS).

Examples found in repository?
src/client.rs (line 17020)
17019
17020
17021
17022
        pub fn set_bucket_key_enabled(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_bucket_key_enabled(input);
            self
        }

Consumes the builder and constructs a WriteGetObjectResponseInput.

Examples found in repository?
src/client.rs (line 16444)
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::WriteGetObjectResponse,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::WriteGetObjectResponseError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::WriteGetObjectResponseOutput,
            aws_smithy_http::result::SdkError<crate::error::WriteGetObjectResponseError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more