AWS SDK

AWS SDK

rev. e6785b15a6b118e5a6960c94143c0d982a485bbb (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_parquet_input.rs

@@ -1,0 +23,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Container for Parquet.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct ParquetInput {}
    7         -
impl ParquetInput {
    8         -
    /// Creates a new builder-style object to manufacture [`ParquetInput`](crate::types::ParquetInput).
    9         -
    pub fn builder() -> crate::types::builders::ParquetInputBuilder {
   10         -
        crate::types::builders::ParquetInputBuilder::default()
   11         -
    }
   12         -
}
   13         -
   14         -
/// A builder for [`ParquetInput`](crate::types::ParquetInput).
   15         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   16         -
#[non_exhaustive]
   17         -
pub struct ParquetInputBuilder {}
   18         -
impl ParquetInputBuilder {
   19         -
    /// Consumes the builder and constructs a [`ParquetInput`](crate::types::ParquetInput).
   20         -
    pub fn build(self) -> crate::types::ParquetInput {
   21         -
        crate::types::ParquetInput {}
   22         -
    }
   23         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_progress.rs

@@ -1,0 +94,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>This data type contains information about progress of an operation.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct Progress {
    7         -
    /// <p>The current number of object bytes scanned.</p>
    8         -
    pub bytes_scanned: ::std::option::Option<i64>,
    9         -
    /// <p>The current number of uncompressed object bytes processed.</p>
   10         -
    pub bytes_processed: ::std::option::Option<i64>,
   11         -
    /// <p>The current number of bytes of records payload data returned.</p>
   12         -
    pub bytes_returned: ::std::option::Option<i64>,
   13         -
}
   14         -
impl Progress {
   15         -
    /// <p>The current number of object bytes scanned.</p>
   16         -
    pub fn bytes_scanned(&self) -> ::std::option::Option<i64> {
   17         -
        self.bytes_scanned
   18         -
    }
   19         -
    /// <p>The current number of uncompressed object bytes processed.</p>
   20         -
    pub fn bytes_processed(&self) -> ::std::option::Option<i64> {
   21         -
        self.bytes_processed
   22         -
    }
   23         -
    /// <p>The current number of bytes of records payload data returned.</p>
   24         -
    pub fn bytes_returned(&self) -> ::std::option::Option<i64> {
   25         -
        self.bytes_returned
   26         -
    }
   27         -
}
   28         -
impl Progress {
   29         -
    /// Creates a new builder-style object to manufacture [`Progress`](crate::types::Progress).
   30         -
    pub fn builder() -> crate::types::builders::ProgressBuilder {
   31         -
        crate::types::builders::ProgressBuilder::default()
   32         -
    }
   33         -
}
   34         -
   35         -
/// A builder for [`Progress`](crate::types::Progress).
   36         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   37         -
#[non_exhaustive]
   38         -
pub struct ProgressBuilder {
   39         -
    pub(crate) bytes_scanned: ::std::option::Option<i64>,
   40         -
    pub(crate) bytes_processed: ::std::option::Option<i64>,
   41         -
    pub(crate) bytes_returned: ::std::option::Option<i64>,
   42         -
}
   43         -
impl ProgressBuilder {
   44         -
    /// <p>The current number of object bytes scanned.</p>
   45         -
    pub fn bytes_scanned(mut self, input: i64) -> Self {
   46         -
        self.bytes_scanned = ::std::option::Option::Some(input);
   47         -
        self
   48         -
    }
   49         -
    /// <p>The current number of object bytes scanned.</p>
   50         -
    pub fn set_bytes_scanned(mut self, input: ::std::option::Option<i64>) -> Self {
   51         -
        self.bytes_scanned = input;
   52         -
        self
   53         -
    }
   54         -
    /// <p>The current number of object bytes scanned.</p>
   55         -
    pub fn get_bytes_scanned(&self) -> &::std::option::Option<i64> {
   56         -
        &self.bytes_scanned
   57         -
    }
   58         -
    /// <p>The current number of uncompressed object bytes processed.</p>
   59         -
    pub fn bytes_processed(mut self, input: i64) -> Self {
   60         -
        self.bytes_processed = ::std::option::Option::Some(input);
   61         -
        self
   62         -
    }
   63         -
    /// <p>The current number of uncompressed object bytes processed.</p>
   64         -
    pub fn set_bytes_processed(mut self, input: ::std::option::Option<i64>) -> Self {
   65         -
        self.bytes_processed = input;
   66         -
        self
   67         -
    }
   68         -
    /// <p>The current number of uncompressed object bytes processed.</p>
   69         -
    pub fn get_bytes_processed(&self) -> &::std::option::Option<i64> {
   70         -
        &self.bytes_processed
   71         -
    }
   72         -
    /// <p>The current number of bytes of records payload data returned.</p>
   73         -
    pub fn bytes_returned(mut self, input: i64) -> Self {
   74         -
        self.bytes_returned = ::std::option::Option::Some(input);
   75         -
        self
   76         -
    }
   77         -
    /// <p>The current number of bytes of records payload data returned.</p>
   78         -
    pub fn set_bytes_returned(mut self, input: ::std::option::Option<i64>) -> Self {
   79         -
        self.bytes_returned = input;
   80         -
        self
   81         -
    }
   82         -
    /// <p>The current number of bytes of records payload data returned.</p>
   83         -
    pub fn get_bytes_returned(&self) -> &::std::option::Option<i64> {
   84         -
        &self.bytes_returned
   85         -
    }
   86         -
    /// Consumes the builder and constructs a [`Progress`](crate::types::Progress).
   87         -
    pub fn build(self) -> crate::types::Progress {
   88         -
        crate::types::Progress {
   89         -
            bytes_scanned: self.bytes_scanned,
   90         -
            bytes_processed: self.bytes_processed,
   91         -
            bytes_returned: self.bytes_returned,
   92         -
        }
   93         -
    }
   94         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_progress_event.rs

@@ -1,0 +48,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>This data type contains information about the progress event of an operation.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct ProgressEvent {
    7         -
    /// <p>The Progress event details.</p>
    8         -
    pub details: ::std::option::Option<crate::types::Progress>,
    9         -
}
   10         -
impl ProgressEvent {
   11         -
    /// <p>The Progress event details.</p>
   12         -
    pub fn details(&self) -> ::std::option::Option<&crate::types::Progress> {
   13         -
        self.details.as_ref()
   14         -
    }
   15         -
}
   16         -
impl ProgressEvent {
   17         -
    /// Creates a new builder-style object to manufacture [`ProgressEvent`](crate::types::ProgressEvent).
   18         -
    pub fn builder() -> crate::types::builders::ProgressEventBuilder {
   19         -
        crate::types::builders::ProgressEventBuilder::default()
   20         -
    }
   21         -
}
   22         -
   23         -
/// A builder for [`ProgressEvent`](crate::types::ProgressEvent).
   24         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   25         -
#[non_exhaustive]
   26         -
pub struct ProgressEventBuilder {
   27         -
    pub(crate) details: ::std::option::Option<crate::types::Progress>,
   28         -
}
   29         -
impl ProgressEventBuilder {
   30         -
    /// <p>The Progress event details.</p>
   31         -
    pub fn details(mut self, input: crate::types::Progress) -> Self {
   32         -
        self.details = ::std::option::Option::Some(input);
   33         -
        self
   34         -
    }
   35         -
    /// <p>The Progress event details.</p>
   36         -
    pub fn set_details(mut self, input: ::std::option::Option<crate::types::Progress>) -> Self {
   37         -
        self.details = input;
   38         -
        self
   39         -
    }
   40         -
    /// <p>The Progress event details.</p>
   41         -
    pub fn get_details(&self) -> &::std::option::Option<crate::types::Progress> {
   42         -
        &self.details
   43         -
    }
   44         -
    /// Consumes the builder and constructs a [`ProgressEvent`](crate::types::ProgressEvent).
   45         -
    pub fn build(self) -> crate::types::ProgressEvent {
   46         -
        crate::types::ProgressEvent { details: self.details }
   47         -
    }
   48         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_quote_fields.rs

@@ -1,0 +108,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// When writing a match expression against `QuoteFields`, it is important to ensure
    4         -
/// your code is forward-compatible. That is, if a match arm handles a case for a
    5         -
/// feature that is supported by the service but has not been represented as an enum
    6         -
/// variant in a current version of SDK, your code should continue to work when you
    7         -
/// upgrade SDK to a future version in which the enum does include a variant for that
    8         -
/// feature.
    9         -
///
   10         -
/// Here is an example of how you can make a match expression forward-compatible:
   11         -
///
   12         -
/// ```text
   13         -
/// # let quotefields = unimplemented!();
   14         -
/// match quotefields {
   15         -
///     QuoteFields::Always => { /* ... */ },
   16         -
///     QuoteFields::Asneeded => { /* ... */ },
   17         -
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
   18         -
///     _ => { /* ... */ },
   19         -
/// }
   20         -
/// ```
   21         -
/// The above code demonstrates that when `quotefields` represents
   22         -
/// `NewFeature`, the execution path will lead to the second last match arm,
   23         -
/// even though the enum does not contain a variant `QuoteFields::NewFeature`
   24         -
/// in the current version of SDK. The reason is that the variable `other`,
   25         -
/// created by the `@` operator, is bound to
   26         -
/// `QuoteFields::Unknown(UnknownVariantValue("NewFeature".to_owned()))`
   27         -
/// and calling `as_str` on it yields `"NewFeature"`.
   28         -
/// This match expression is forward-compatible when executed with a newer
   29         -
/// version of SDK where the variant `QuoteFields::NewFeature` is defined.
   30         -
/// Specifically, when `quotefields` represents `NewFeature`,
   31         -
/// the execution path will hit the second last match arm as before by virtue of
   32         -
/// calling `as_str` on `QuoteFields::NewFeature` also yielding `"NewFeature"`.
   33         -
///
   34         -
/// Explicitly matching on the `Unknown` variant should
   35         -
/// be avoided for two reasons:
   36         -
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
   37         -
/// - It might inadvertently shadow other intended match arms.
   38         -
///
   39         -
#[allow(missing_docs)] // documentation missing in model
   40         -
#[non_exhaustive]
   41         -
#[derive(
   42         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
   43         -
)]
   44         -
pub enum QuoteFields {
   45         -
    #[allow(missing_docs)] // documentation missing in model
   46         -
    Always,
   47         -
    #[allow(missing_docs)] // documentation missing in model
   48         -
    Asneeded,
   49         -
    /// `Unknown` contains new variants that have been added since this code was generated.
   50         -
    #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")]
   51         -
    Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue),
   52         -
}
   53         -
impl ::std::convert::From<&str> for QuoteFields {
   54         -
    fn from(s: &str) -> Self {
   55         -
        match s {
   56         -
            "ALWAYS" => QuoteFields::Always,
   57         -
            "ASNEEDED" => QuoteFields::Asneeded,
   58         -
            other => QuoteFields::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())),
   59         -
        }
   60         -
    }
   61         -
}
   62         -
impl ::std::str::FromStr for QuoteFields {
   63         -
    type Err = ::std::convert::Infallible;
   64         -
   65         -
    fn from_str(s: &str) -> ::std::result::Result<Self, <Self as ::std::str::FromStr>::Err> {
   66         -
        ::std::result::Result::Ok(QuoteFields::from(s))
   67         -
    }
   68         -
}
   69         -
impl QuoteFields {
   70         -
    /// Returns the `&str` value of the enum member.
   71         -
    pub fn as_str(&self) -> &str {
   72         -
        match self {
   73         -
            QuoteFields::Always => "ALWAYS",
   74         -
            QuoteFields::Asneeded => "ASNEEDED",
   75         -
            QuoteFields::Unknown(value) => value.as_str(),
   76         -
        }
   77         -
    }
   78         -
    /// Returns all the `&str` representations of the enum members.
   79         -
    pub const fn values() -> &'static [&'static str] {
   80         -
        &["ALWAYS", "ASNEEDED"]
   81         -
    }
   82         -
}
   83         -
impl ::std::convert::AsRef<str> for QuoteFields {
   84         -
    fn as_ref(&self) -> &str {
   85         -
        self.as_str()
   86         -
    }
   87         -
}
   88         -
impl QuoteFields {
   89         -
    /// Parses the enum value while disallowing unknown variants.
   90         -
    ///
   91         -
    /// Unknown variants will result in an error.
   92         -
    pub fn try_parse(value: &str) -> ::std::result::Result<Self, crate::error::UnknownVariantError> {
   93         -
        match Self::from(value) {
   94         -
            #[allow(deprecated)]
   95         -
            Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)),
   96         -
            known => Ok(known),
   97         -
        }
   98         -
    }
   99         -
}
  100         -
impl ::std::fmt::Display for QuoteFields {
  101         -
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  102         -
        match self {
  103         -
            QuoteFields::Always => write!(f, "ALWAYS"),
  104         -
            QuoteFields::Asneeded => write!(f, "ASNEEDED"),
  105         -
            QuoteFields::Unknown(value) => write!(f, "{value}"),
  106         -
        }
  107         -
    }
  108         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_record_expiration.rs

@@ -1,0 +80,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>The journal table record expiration settings for a journal table in an S3 Metadata configuration.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct RecordExpiration {
    7         -
    /// <p>Specifies whether journal table record expiration is enabled or disabled.</p>
    8         -
    pub expiration: crate::types::ExpirationState,
    9         -
    /// <p>If you enable journal table record expiration, you can set the number of days to retain your journal table records. Journal table records must be retained for a minimum of 7 days. To set this value, specify any whole number from <code>7</code> to <code>2147483647</code>. For example, to retain your journal table records for one year, set this value to <code>365</code>.</p>
   10         -
    pub days: ::std::option::Option<i32>,
   11         -
}
   12         -
impl RecordExpiration {
   13         -
    /// <p>Specifies whether journal table record expiration is enabled or disabled.</p>
   14         -
    pub fn expiration(&self) -> &crate::types::ExpirationState {
   15         -
        &self.expiration
   16         -
    }
   17         -
    /// <p>If you enable journal table record expiration, you can set the number of days to retain your journal table records. Journal table records must be retained for a minimum of 7 days. To set this value, specify any whole number from <code>7</code> to <code>2147483647</code>. For example, to retain your journal table records for one year, set this value to <code>365</code>.</p>
   18         -
    pub fn days(&self) -> ::std::option::Option<i32> {
   19         -
        self.days
   20         -
    }
   21         -
}
   22         -
impl RecordExpiration {
   23         -
    /// Creates a new builder-style object to manufacture [`RecordExpiration`](crate::types::RecordExpiration).
   24         -
    pub fn builder() -> crate::types::builders::RecordExpirationBuilder {
   25         -
        crate::types::builders::RecordExpirationBuilder::default()
   26         -
    }
   27         -
}
   28         -
   29         -
/// A builder for [`RecordExpiration`](crate::types::RecordExpiration).
   30         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   31         -
#[non_exhaustive]
   32         -
pub struct RecordExpirationBuilder {
   33         -
    pub(crate) expiration: ::std::option::Option<crate::types::ExpirationState>,
   34         -
    pub(crate) days: ::std::option::Option<i32>,
   35         -
}
   36         -
impl RecordExpirationBuilder {
   37         -
    /// <p>Specifies whether journal table record expiration is enabled or disabled.</p>
   38         -
    /// This field is required.
   39         -
    pub fn expiration(mut self, input: crate::types::ExpirationState) -> Self {
   40         -
        self.expiration = ::std::option::Option::Some(input);
   41         -
        self
   42         -
    }
   43         -
    /// <p>Specifies whether journal table record expiration is enabled or disabled.</p>
   44         -
    pub fn set_expiration(mut self, input: ::std::option::Option<crate::types::ExpirationState>) -> Self {
   45         -
        self.expiration = input;
   46         -
        self
   47         -
    }
   48         -
    /// <p>Specifies whether journal table record expiration is enabled or disabled.</p>
   49         -
    pub fn get_expiration(&self) -> &::std::option::Option<crate::types::ExpirationState> {
   50         -
        &self.expiration
   51         -
    }
   52         -
    /// <p>If you enable journal table record expiration, you can set the number of days to retain your journal table records. Journal table records must be retained for a minimum of 7 days. To set this value, specify any whole number from <code>7</code> to <code>2147483647</code>. For example, to retain your journal table records for one year, set this value to <code>365</code>.</p>
   53         -
    pub fn days(mut self, input: i32) -> Self {
   54         -
        self.days = ::std::option::Option::Some(input);
   55         -
        self
   56         -
    }
   57         -
    /// <p>If you enable journal table record expiration, you can set the number of days to retain your journal table records. Journal table records must be retained for a minimum of 7 days. To set this value, specify any whole number from <code>7</code> to <code>2147483647</code>. For example, to retain your journal table records for one year, set this value to <code>365</code>.</p>
   58         -
    pub fn set_days(mut self, input: ::std::option::Option<i32>) -> Self {
   59         -
        self.days = input;
   60         -
        self
   61         -
    }
   62         -
    /// <p>If you enable journal table record expiration, you can set the number of days to retain your journal table records. Journal table records must be retained for a minimum of 7 days. To set this value, specify any whole number from <code>7</code> to <code>2147483647</code>. For example, to retain your journal table records for one year, set this value to <code>365</code>.</p>
   63         -
    pub fn get_days(&self) -> &::std::option::Option<i32> {
   64         -
        &self.days
   65         -
    }
   66         -
    /// Consumes the builder and constructs a [`RecordExpiration`](crate::types::RecordExpiration).
   67         -
    /// This method will fail if any of the following fields are not set:
   68         -
    /// - [`expiration`](crate::types::builders::RecordExpirationBuilder::expiration)
   69         -
    pub fn build(self) -> ::std::result::Result<crate::types::RecordExpiration, ::aws_smithy_types::error::operation::BuildError> {
   70         -
        ::std::result::Result::Ok(crate::types::RecordExpiration {
   71         -
            expiration: self.expiration.ok_or_else(|| {
   72         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
   73         -
                    "expiration",
   74         -
                    "expiration was not specified but it is required when building RecordExpiration",
   75         -
                )
   76         -
            })?,
   77         -
            days: self.days,
   78         -
        })
   79         -
    }
   80         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_records_event.rs

@@ -1,0 +48,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>The container for the records event.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct RecordsEvent {
    7         -
    /// <p>The byte array of partial, one or more result records. S3 Select doesn't guarantee that a record will be self-contained in one record frame. To ensure continuous streaming of data, S3 Select might split the same record across multiple record frames instead of aggregating the results in memory. Some S3 clients (for example, the SDK for Java) handle this behavior by creating a <code>ByteStream</code> out of the response by default. Other clients might not handle this behavior by default. In those cases, you must aggregate the results on the client side and parse the response.</p>
    8         -
    pub payload: ::std::option::Option<::aws_smithy_types::Blob>,
    9         -
}
   10         -
impl RecordsEvent {
   11         -
    /// <p>The byte array of partial, one or more result records. S3 Select doesn't guarantee that a record will be self-contained in one record frame. To ensure continuous streaming of data, S3 Select might split the same record across multiple record frames instead of aggregating the results in memory. Some S3 clients (for example, the SDK for Java) handle this behavior by creating a <code>ByteStream</code> out of the response by default. Other clients might not handle this behavior by default. In those cases, you must aggregate the results on the client side and parse the response.</p>
   12         -
    pub fn payload(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
   13         -
        self.payload.as_ref()
   14         -
    }
   15         -
}
   16         -
impl RecordsEvent {
   17         -
    /// Creates a new builder-style object to manufacture [`RecordsEvent`](crate::types::RecordsEvent).
   18         -
    pub fn builder() -> crate::types::builders::RecordsEventBuilder {
   19         -
        crate::types::builders::RecordsEventBuilder::default()
   20         -
    }
   21         -
}
   22         -
   23         -
/// A builder for [`RecordsEvent`](crate::types::RecordsEvent).
   24         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   25         -
#[non_exhaustive]
   26         -
pub struct RecordsEventBuilder {
   27         -
    pub(crate) payload: ::std::option::Option<::aws_smithy_types::Blob>,
   28         -
}
   29         -
impl RecordsEventBuilder {
   30         -
    /// <p>The byte array of partial, one or more result records. S3 Select doesn't guarantee that a record will be self-contained in one record frame. To ensure continuous streaming of data, S3 Select might split the same record across multiple record frames instead of aggregating the results in memory. Some S3 clients (for example, the SDK for Java) handle this behavior by creating a <code>ByteStream</code> out of the response by default. Other clients might not handle this behavior by default. In those cases, you must aggregate the results on the client side and parse the response.</p>
   31         -
    pub fn payload(mut self, input: ::aws_smithy_types::Blob) -> Self {
   32         -
        self.payload = ::std::option::Option::Some(input);
   33         -
        self
   34         -
    }
   35         -
    /// <p>The byte array of partial, one or more result records. S3 Select doesn't guarantee that a record will be self-contained in one record frame. To ensure continuous streaming of data, S3 Select might split the same record across multiple record frames instead of aggregating the results in memory. Some S3 clients (for example, the SDK for Java) handle this behavior by creating a <code>ByteStream</code> out of the response by default. Other clients might not handle this behavior by default. In those cases, you must aggregate the results on the client side and parse the response.</p>
   36         -
    pub fn set_payload(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
   37         -
        self.payload = input;
   38         -
        self
   39         -
    }
   40         -
    /// <p>The byte array of partial, one or more result records. S3 Select doesn't guarantee that a record will be self-contained in one record frame. To ensure continuous streaming of data, S3 Select might split the same record across multiple record frames instead of aggregating the results in memory. Some S3 clients (for example, the SDK for Java) handle this behavior by creating a <code>ByteStream</code> out of the response by default. Other clients might not handle this behavior by default. In those cases, you must aggregate the results on the client side and parse the response.</p>
   41         -
    pub fn get_payload(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
   42         -
        &self.payload
   43         -
    }
   44         -
    /// Consumes the builder and constructs a [`RecordsEvent`](crate::types::RecordsEvent).
   45         -
    pub fn build(self) -> crate::types::RecordsEvent {
   46         -
        crate::types::RecordsEvent { payload: self.payload }
   47         -
    }
   48         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_request_charged.rs

@@ -8,8 +70,69 @@
   28     28   
/// version of SDK where the variant `RequestCharged::NewFeature` is defined.
   29     29   
/// Specifically, when `requestcharged` represents `NewFeature`,
   30     30   
/// the execution path will hit the second last match arm as before by virtue of
   31     31   
/// calling `as_str` on `RequestCharged::NewFeature` also yielding `"NewFeature"`.
   32     32   
///
   33     33   
/// Explicitly matching on the `Unknown` variant should
   34     34   
/// be avoided for two reasons:
   35     35   
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
   36     36   
/// - It might inadvertently shadow other intended match arms.
   37     37   
///
   38         -
/// <p>If present, indicates that the requester was successfully charged for the request. For more
   39         -
/// information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple
   40         -
/// Storage Service user guide</i>.</p>
          38  +
/// <p>If present, indicates that the requester was successfully charged for the
          39  +
/// request. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple Storage Service user guide</i>.</p>
   41     40   
/// <note>
   42     41   
/// <p>This functionality is not supported for directory buckets.</p>
   43     42   
/// </note>
   44     43   
#[non_exhaustive]
   45     44   
#[derive(
   46     45   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
   47     46   
)]
   48     47   
pub enum RequestCharged {
   49     48   
    #[allow(missing_docs)] // documentation missing in model
   50     49   
    Requester,

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_request_payer.rs

@@ -8,8 +72,73 @@
   28     28   
/// version of SDK where the variant `RequestPayer::NewFeature` is defined.
   29     29   
/// Specifically, when `requestpayer` represents `NewFeature`,
   30     30   
/// the execution path will hit the second last match arm as before by virtue of
   31     31   
/// calling `as_str` on `RequestPayer::NewFeature` also yielding `"NewFeature"`.
   32     32   
///
   33     33   
/// Explicitly matching on the `Unknown` variant should
   34     34   
/// be avoided for two reasons:
   35     35   
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
   36     36   
/// - It might inadvertently shadow other intended match arms.
   37     37   
///
   38         -
/// <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
   39         -
/// specify this parameter in their requests. If either the source or destination S3 bucket has Requester
   40         -
/// Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
   41         -
/// downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
   42         -
/// Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
          38  +
/// <p>Confirms that the requester knows that they will be charged for the request. Bucket
          39  +
/// owners need not specify this parameter in their requests. If either the source or
          40  +
/// destination S3 bucket has Requester Pays enabled, the requester will pay for corresponding
          41  +
/// charges to copy the object. For information about downloading objects from Requester Pays
          42  +
/// buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in
          43  +
/// Requester Pays Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
   43     44   
/// <note>
   44     45   
/// <p>This functionality is not supported for directory buckets.</p>
   45     46   
/// </note>
   46     47   
#[non_exhaustive]
   47     48   
#[derive(
   48     49   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
   49     50   
)]
   50     51   
pub enum RequestPayer {
   51     52   
    #[allow(missing_docs)] // documentation missing in model
   52     53   
    Requester,

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_request_progress.rs

@@ -1,0 +48,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Container for specifying if periodic <code>QueryProgress</code> messages should be sent.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct RequestProgress {
    7         -
    /// <p>Specifies whether periodic QueryProgress frames should be sent. Valid values: TRUE, FALSE. Default value: FALSE.</p>
    8         -
    pub enabled: ::std::option::Option<bool>,
    9         -
}
   10         -
impl RequestProgress {
   11         -
    /// <p>Specifies whether periodic QueryProgress frames should be sent. Valid values: TRUE, FALSE. Default value: FALSE.</p>
   12         -
    pub fn enabled(&self) -> ::std::option::Option<bool> {
   13         -
        self.enabled
   14         -
    }
   15         -
}
   16         -
impl RequestProgress {
   17         -
    /// Creates a new builder-style object to manufacture [`RequestProgress`](crate::types::RequestProgress).
   18         -
    pub fn builder() -> crate::types::builders::RequestProgressBuilder {
   19         -
        crate::types::builders::RequestProgressBuilder::default()
   20         -
    }
   21         -
}
   22         -
   23         -
/// A builder for [`RequestProgress`](crate::types::RequestProgress).
   24         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   25         -
#[non_exhaustive]
   26         -
pub struct RequestProgressBuilder {
   27         -
    pub(crate) enabled: ::std::option::Option<bool>,
   28         -
}
   29         -
impl RequestProgressBuilder {
   30         -
    /// <p>Specifies whether periodic QueryProgress frames should be sent. Valid values: TRUE, FALSE. Default value: FALSE.</p>
   31         -
    pub fn enabled(mut self, input: bool) -> Self {
   32         -
        self.enabled = ::std::option::Option::Some(input);
   33         -
        self
   34         -
    }
   35         -
    /// <p>Specifies whether periodic QueryProgress frames should be sent. Valid values: TRUE, FALSE. Default value: FALSE.</p>
   36         -
    pub fn set_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
   37         -
        self.enabled = input;
   38         -
        self
   39         -
    }
   40         -
    /// <p>Specifies whether periodic QueryProgress frames should be sent. Valid values: TRUE, FALSE. Default value: FALSE.</p>
   41         -
    pub fn get_enabled(&self) -> &::std::option::Option<bool> {
   42         -
        &self.enabled
   43         -
    }
   44         -
    /// Consumes the builder and constructs a [`RequestProgress`](crate::types::RequestProgress).
   45         -
    pub fn build(self) -> crate::types::RequestProgress {
   46         -
        crate::types::RequestProgress { enabled: self.enabled }
   47         -
    }
   48         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_restore_request.rs

@@ -1,1 +112,99 @@
   11     11   
    pub glacier_job_parameters: ::std::option::Option<crate::types::GlacierJobParameters>,
   12     12   
    /// <important>
   13     13   
    /// <p>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>
   14     14   
    /// </important>
   15     15   
    /// <p>Type of restore request.</p>
   16     16   
    pub r#type: ::std::option::Option<crate::types::RestoreRequestType>,
   17     17   
    /// <p>Retrieval tier at which the restore will be processed.</p>
   18     18   
    pub tier: ::std::option::Option<crate::types::Tier>,
   19     19   
    /// <p>The optional description for the job.</p>
   20     20   
    pub description: ::std::option::Option<::std::string::String>,
   21         -
    /// <important>
   22         -
    /// <p>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>
   23         -
    /// </important>
   24         -
    /// <p>Describes the parameters for Select job types.</p>
   25         -
    pub select_parameters: ::std::option::Option<crate::types::SelectParameters>,
   26     21   
    /// <p>Describes the location where the restore job's output is stored.</p>
   27     22   
    pub output_location: ::std::option::Option<crate::types::OutputLocation>,
   28     23   
}
   29     24   
impl RestoreRequest {
   30     25   
    /// <p>Lifetime of the active copy in days. Do not use with restores that specify <code>OutputLocation</code>.</p>
   31     26   
    /// <p>The Days element is required for regular restores, and must not be provided for select requests.</p>
   32     27   
    pub fn days(&self) -> ::std::option::Option<i32> {
   33     28   
        self.days
   34     29   
    }
   35     30   
    /// <p>S3 Glacier related parameters pertaining to this job. Do not use with restores that specify <code>OutputLocation</code>.</p>
   36     31   
    pub fn glacier_job_parameters(&self) -> ::std::option::Option<&crate::types::GlacierJobParameters> {
   37     32   
        self.glacier_job_parameters.as_ref()
   38     33   
    }
   39     34   
    /// <important>
   40     35   
    /// <p>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>
   41     36   
    /// </important>
   42     37   
    /// <p>Type of restore request.</p>
   43     38   
    pub fn r#type(&self) -> ::std::option::Option<&crate::types::RestoreRequestType> {
   44     39   
        self.r#type.as_ref()
   45     40   
    }
   46     41   
    /// <p>Retrieval tier at which the restore will be processed.</p>
   47     42   
    pub fn tier(&self) -> ::std::option::Option<&crate::types::Tier> {
   48     43   
        self.tier.as_ref()
   49     44   
    }
   50     45   
    /// <p>The optional description for the job.</p>
   51     46   
    pub fn description(&self) -> ::std::option::Option<&str> {
   52     47   
        self.description.as_deref()
   53     48   
    }
   54         -
    /// <important>
   55         -
    /// <p>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>
   56         -
    /// </important>
   57         -
    /// <p>Describes the parameters for Select job types.</p>
   58         -
    pub fn select_parameters(&self) -> ::std::option::Option<&crate::types::SelectParameters> {
   59         -
        self.select_parameters.as_ref()
   60         -
    }
   61     49   
    /// <p>Describes the location where the restore job's output is stored.</p>
   62     50   
    pub fn output_location(&self) -> ::std::option::Option<&crate::types::OutputLocation> {
   63     51   
        self.output_location.as_ref()
   64     52   
    }
   65     53   
}
   66     54   
impl RestoreRequest {
   67     55   
    /// Creates a new builder-style object to manufacture [`RestoreRequest`](crate::types::RestoreRequest).
   68     56   
    pub fn builder() -> crate::types::builders::RestoreRequestBuilder {
   69     57   
        crate::types::builders::RestoreRequestBuilder::default()
   70     58   
    }
   71     59   
}
   72     60   
   73     61   
/// A builder for [`RestoreRequest`](crate::types::RestoreRequest).
   74     62   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   75     63   
#[non_exhaustive]
   76     64   
pub struct RestoreRequestBuilder {
   77     65   
    pub(crate) days: ::std::option::Option<i32>,
   78     66   
    pub(crate) glacier_job_parameters: ::std::option::Option<crate::types::GlacierJobParameters>,
   79     67   
    pub(crate) r#type: ::std::option::Option<crate::types::RestoreRequestType>,
   80     68   
    pub(crate) tier: ::std::option::Option<crate::types::Tier>,
   81     69   
    pub(crate) description: ::std::option::Option<::std::string::String>,
   82         -
    pub(crate) select_parameters: ::std::option::Option<crate::types::SelectParameters>,
   83     70   
    pub(crate) output_location: ::std::option::Option<crate::types::OutputLocation>,
   84     71   
}
   85     72   
impl RestoreRequestBuilder {
   86     73   
    /// <p>Lifetime of the active copy in days. Do not use with restores that specify <code>OutputLocation</code>.</p>
   87     74   
    /// <p>The Days element is required for regular restores, and must not be provided for select requests.</p>
   88     75   
    pub fn days(mut self, input: i32) -> Self {
   89     76   
        self.days = ::std::option::Option::Some(input);
   90     77   
        self
   91     78   
    }
   92     79   
    /// <p>Lifetime of the active copy in days. Do not use with restores that specify <code>OutputLocation</code>.</p>
@@ -138,125 +217,180 @@
  158    145   
    }
  159    146   
    /// <p>The optional description for the job.</p>
  160    147   
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  161    148   
        self.description = input;
  162    149   
        self
  163    150   
    }
  164    151   
    /// <p>The optional description for the job.</p>
  165    152   
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
  166    153   
        &self.description
  167    154   
    }
  168         -
    /// <important>
  169         -
    /// <p>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>
  170         -
    /// </important>
  171         -
    /// <p>Describes the parameters for Select job types.</p>
  172         -
    pub fn select_parameters(mut self, input: crate::types::SelectParameters) -> Self {
  173         -
        self.select_parameters = ::std::option::Option::Some(input);
  174         -
        self
  175         -
    }
  176         -
    /// <important>
  177         -
    /// <p>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>
  178         -
    /// </important>
  179         -
    /// <p>Describes the parameters for Select job types.</p>
  180         -
    pub fn set_select_parameters(mut self, input: ::std::option::Option<crate::types::SelectParameters>) -> Self {
  181         -
        self.select_parameters = input;
  182         -
        self
  183         -
    }
  184         -
    /// <important>
  185         -
    /// <p>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>
  186         -
    /// </important>
  187         -
    /// <p>Describes the parameters for Select job types.</p>
  188         -
    pub fn get_select_parameters(&self) -> &::std::option::Option<crate::types::SelectParameters> {
  189         -
        &self.select_parameters
  190         -
    }
  191    155   
    /// <p>Describes the location where the restore job's output is stored.</p>
  192    156   
    pub fn output_location(mut self, input: crate::types::OutputLocation) -> Self {
  193    157   
        self.output_location = ::std::option::Option::Some(input);
  194    158   
        self
  195    159   
    }
  196    160   
    /// <p>Describes the location where the restore job's output is stored.</p>
  197    161   
    pub fn set_output_location(mut self, input: ::std::option::Option<crate::types::OutputLocation>) -> Self {
  198    162   
        self.output_location = input;
  199    163   
        self
  200    164   
    }
  201    165   
    /// <p>Describes the location where the restore job's output is stored.</p>
  202    166   
    pub fn get_output_location(&self) -> &::std::option::Option<crate::types::OutputLocation> {
  203    167   
        &self.output_location
  204    168   
    }
  205    169   
    /// Consumes the builder and constructs a [`RestoreRequest`](crate::types::RestoreRequest).
  206    170   
    pub fn build(self) -> crate::types::RestoreRequest {
  207    171   
        crate::types::RestoreRequest {
  208    172   
            days: self.days,
  209    173   
            glacier_job_parameters: self.glacier_job_parameters,
  210    174   
            r#type: self.r#type,
  211    175   
            tier: self.tier,
  212    176   
            description: self.description,
  213         -
            select_parameters: self.select_parameters,
  214    177   
            output_location: self.output_location,
  215    178   
        }
  216    179   
    }
  217    180   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_s3_tables_bucket_type.rs

@@ -1,0 +108,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// When writing a match expression against `S3TablesBucketType`, it is important to ensure
    4         -
/// your code is forward-compatible. That is, if a match arm handles a case for a
    5         -
/// feature that is supported by the service but has not been represented as an enum
    6         -
/// variant in a current version of SDK, your code should continue to work when you
    7         -
/// upgrade SDK to a future version in which the enum does include a variant for that
    8         -
/// feature.
    9         -
///
   10         -
/// Here is an example of how you can make a match expression forward-compatible:
   11         -
///
   12         -
/// ```text
   13         -
/// # let s3tablesbuckettype = unimplemented!();
   14         -
/// match s3tablesbuckettype {
   15         -
///     S3TablesBucketType::Aws => { /* ... */ },
   16         -
///     S3TablesBucketType::Customer => { /* ... */ },
   17         -
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
   18         -
///     _ => { /* ... */ },
   19         -
/// }
   20         -
/// ```
   21         -
/// The above code demonstrates that when `s3tablesbuckettype` represents
   22         -
/// `NewFeature`, the execution path will lead to the second last match arm,
   23         -
/// even though the enum does not contain a variant `S3TablesBucketType::NewFeature`
   24         -
/// in the current version of SDK. The reason is that the variable `other`,
   25         -
/// created by the `@` operator, is bound to
   26         -
/// `S3TablesBucketType::Unknown(UnknownVariantValue("NewFeature".to_owned()))`
   27         -
/// and calling `as_str` on it yields `"NewFeature"`.
   28         -
/// This match expression is forward-compatible when executed with a newer
   29         -
/// version of SDK where the variant `S3TablesBucketType::NewFeature` is defined.
   30         -
/// Specifically, when `s3tablesbuckettype` represents `NewFeature`,
   31         -
/// the execution path will hit the second last match arm as before by virtue of
   32         -
/// calling `as_str` on `S3TablesBucketType::NewFeature` also yielding `"NewFeature"`.
   33         -
///
   34         -
/// Explicitly matching on the `Unknown` variant should
   35         -
/// be avoided for two reasons:
   36         -
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
   37         -
/// - It might inadvertently shadow other intended match arms.
   38         -
///
   39         -
#[allow(missing_docs)] // documentation missing in model
   40         -
#[non_exhaustive]
   41         -
#[derive(
   42         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
   43         -
)]
   44         -
pub enum S3TablesBucketType {
   45         -
    #[allow(missing_docs)] // documentation missing in model
   46         -
    Aws,
   47         -
    #[allow(missing_docs)] // documentation missing in model
   48         -
    Customer,
   49         -
    /// `Unknown` contains new variants that have been added since this code was generated.
   50         -
    #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")]
   51         -
    Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue),
   52         -
}
   53         -
impl ::std::convert::From<&str> for S3TablesBucketType {
   54         -
    fn from(s: &str) -> Self {
   55         -
        match s {
   56         -
            "aws" => S3TablesBucketType::Aws,
   57         -
            "customer" => S3TablesBucketType::Customer,
   58         -
            other => S3TablesBucketType::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())),
   59         -
        }
   60         -
    }
   61         -
}
   62         -
impl ::std::str::FromStr for S3TablesBucketType {
   63         -
    type Err = ::std::convert::Infallible;
   64         -
   65         -
    fn from_str(s: &str) -> ::std::result::Result<Self, <Self as ::std::str::FromStr>::Err> {
   66         -
        ::std::result::Result::Ok(S3TablesBucketType::from(s))
   67         -
    }
   68         -
}
   69         -
impl S3TablesBucketType {
   70         -
    /// Returns the `&str` value of the enum member.
   71         -
    pub fn as_str(&self) -> &str {
   72         -
        match self {
   73         -
            S3TablesBucketType::Aws => "aws",
   74         -
            S3TablesBucketType::Customer => "customer",
   75         -
            S3TablesBucketType::Unknown(value) => value.as_str(),
   76         -
        }
   77         -
    }
   78         -
    /// Returns all the `&str` representations of the enum members.
   79         -
    pub const fn values() -> &'static [&'static str] {
   80         -
        &["aws", "customer"]
   81         -
    }
   82         -
}
   83         -
impl ::std::convert::AsRef<str> for S3TablesBucketType {
   84         -
    fn as_ref(&self) -> &str {
   85         -
        self.as_str()
   86         -
    }
   87         -
}
   88         -
impl S3TablesBucketType {
   89         -
    /// Parses the enum value while disallowing unknown variants.
   90         -
    ///
   91         -
    /// Unknown variants will result in an error.
   92         -
    pub fn try_parse(value: &str) -> ::std::result::Result<Self, crate::error::UnknownVariantError> {
   93         -
        match Self::from(value) {
   94         -
            #[allow(deprecated)]
   95         -
            Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)),
   96         -
            known => Ok(known),
   97         -
        }
   98         -
    }
   99         -
}
  100         -
impl ::std::fmt::Display for S3TablesBucketType {
  101         -
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  102         -
        match self {
  103         -
            S3TablesBucketType::Aws => write!(f, "aws"),
  104         -
            S3TablesBucketType::Customer => write!(f, "customer"),
  105         -
            S3TablesBucketType::Unknown(value) => write!(f, "{value}"),
  106         -
        }
  107         -
    }
  108         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_s3_tables_destination.rs

@@ -1,1 +35,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3         -
/// <p>The destination information for a V1 S3 Metadata configuration. The destination table bucket must be in the same Region and Amazon Web Services account as the general purpose bucket. The specified metadata table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination table bucket.</p><note>
    4         -
/// <p>If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a> so that you can expire journal table records and create a live inventory table.</p>
    5         -
/// </note>
           3  +
/// <p>The destination information for the metadata table configuration. The destination table bucket must be in the same Region and Amazon Web Services account as the general purpose bucket. The specified metadata table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination table bucket.</p>
    6      4   
#[non_exhaustive]
    7      5   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    8      6   
pub struct S3TablesDestination {
    9      7   
    /// <p>The Amazon Resource Name (ARN) for the table bucket that's specified as the destination in the metadata table configuration. The destination table bucket must be in the same Region and Amazon Web Services account as the general purpose bucket.</p>
   10      8   
    pub table_bucket_arn: ::std::string::String,
   11      9   
    /// <p>The name for the metadata table in your metadata table configuration. The specified metadata table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination table bucket.</p>
   12     10   
    pub table_name: ::std::string::String,
   13     11   
}
   14     12   
impl S3TablesDestination {
   15     13   
    /// <p>The Amazon Resource Name (ARN) for the table bucket that's specified as the destination in the metadata table configuration. The destination table bucket must be in the same Region and Amazon Web Services account as the general purpose bucket.</p>

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_s3_tables_destination_result.rs

@@ -1,1 +35,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
    3         -
/// <p>The destination information for a V1 S3 Metadata configuration. The destination table bucket must be in the same Region and Amazon Web Services account as the general purpose bucket. The specified metadata table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination table bucket.</p><note>
    4         -
/// <p>If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a> so that you can expire journal table records and create a live inventory table.</p>
    5         -
/// </note>
           3  +
/// <p>The destination information for the metadata table configuration. The destination table bucket must be in the same Region and Amazon Web Services account as the general purpose bucket. The specified metadata table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination table bucket.</p>
    6      4   
#[non_exhaustive]
    7      5   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    8      6   
pub struct S3TablesDestinationResult {
    9      7   
    /// <p>The Amazon Resource Name (ARN) for the table bucket that's specified as the destination in the metadata table configuration. The destination table bucket must be in the same Region and Amazon Web Services account as the general purpose bucket.</p>
   10      8   
    pub table_bucket_arn: ::std::string::String,
   11      9   
    /// <p>The name for the metadata table in your metadata table configuration. The specified metadata table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination table bucket.</p>
   12     10   
    pub table_name: ::std::string::String,
   13     11   
    /// <p>The Amazon Resource Name (ARN) for the metadata table in the metadata table configuration. The specified metadata table name must be unique within the <code>aws_s3_metadata</code> namespace in the destination table bucket.</p>
   14     12   
    pub table_arn: ::std::string::String,
   15     13   
    /// <p>The table bucket namespace for the metadata table in your metadata table configuration. This value is always <code>aws_s3_metadata</code>.</p>

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_scan_range.rs

@@ -1,0 +112,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <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>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct ScanRange {
    7         -
    /// <p>Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is 0. If only <code>start</code> is supplied, it means scan from that point to the end of the file. For example, <code><scanrange>
    8         -
    /// <start>
    9         -
    /// 50
   10         -
    /// </start>
   11         -
    /// </scanrange></code> means scan from byte 50 until the end of the file.</p>
   12         -
    pub start: ::std::option::Option<i64>,
   13         -
    /// <p>Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is one less than the size of the object being queried. If only the End parameter is supplied, it is interpreted to mean scan the last N bytes of the file. For example, <code><scanrange>
   14         -
    /// <end>
   15         -
    /// 50
   16         -
    /// </end>
   17         -
    /// </scanrange></code> means scan the last 50 bytes.</p>
   18         -
    pub end: ::std::option::Option<i64>,
   19         -
}
   20         -
impl ScanRange {
   21         -
    /// <p>Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is 0. If only <code>start</code> is supplied, it means scan from that point to the end of the file. For example, <code><scanrange>
   22         -
    /// <start>
   23         -
    /// 50
   24         -
    /// </start>
   25         -
    /// </scanrange></code> means scan from byte 50 until the end of the file.</p>
   26         -
    pub fn start(&self) -> ::std::option::Option<i64> {
   27         -
        self.start
   28         -
    }
   29         -
    /// <p>Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is one less than the size of the object being queried. If only the End parameter is supplied, it is interpreted to mean scan the last N bytes of the file. For example, <code><scanrange>
   30         -
    /// <end>
   31         -
    /// 50
   32         -
    /// </end>
   33         -
    /// </scanrange></code> means scan the last 50 bytes.</p>
   34         -
    pub fn end(&self) -> ::std::option::Option<i64> {
   35         -
        self.end
   36         -
    }
   37         -
}
   38         -
impl ScanRange {
   39         -
    /// Creates a new builder-style object to manufacture [`ScanRange`](crate::types::ScanRange).
   40         -
    pub fn builder() -> crate::types::builders::ScanRangeBuilder {
   41         -
        crate::types::builders::ScanRangeBuilder::default()
   42         -
    }
   43         -
}
   44         -
   45         -
/// A builder for [`ScanRange`](crate::types::ScanRange).
   46         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   47         -
#[non_exhaustive]
   48         -
pub struct ScanRangeBuilder {
   49         -
    pub(crate) start: ::std::option::Option<i64>,
   50         -
    pub(crate) end: ::std::option::Option<i64>,
   51         -
}
   52         -
impl ScanRangeBuilder {
   53         -
    /// <p>Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is 0. If only <code>start</code> is supplied, it means scan from that point to the end of the file. For example, <code><scanrange>
   54         -
    /// <start>
   55         -
    /// 50
   56         -
    /// </start>
   57         -
    /// </scanrange></code> means scan from byte 50 until the end of the file.</p>
   58         -
    pub fn start(mut self, input: i64) -> Self {
   59         -
        self.start = ::std::option::Option::Some(input);
   60         -
        self
   61         -
    }
   62         -
    /// <p>Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is 0. If only <code>start</code> is supplied, it means scan from that point to the end of the file. For example, <code><scanrange>
   63         -
    /// <start>
   64         -
    /// 50
   65         -
    /// </start>
   66         -
    /// </scanrange></code> means scan from byte 50 until the end of the file.</p>
   67         -
    pub fn set_start(mut self, input: ::std::option::Option<i64>) -> Self {
   68         -
        self.start = input;
   69         -
        self
   70         -
    }
   71         -
    /// <p>Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is 0. If only <code>start</code> is supplied, it means scan from that point to the end of the file. For example, <code><scanrange>
   72         -
    /// <start>
   73         -
    /// 50
   74         -
    /// </start>
   75         -
    /// </scanrange></code> means scan from byte 50 until the end of the file.</p>
   76         -
    pub fn get_start(&self) -> &::std::option::Option<i64> {
   77         -
        &self.start
   78         -
    }
   79         -
    /// <p>Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is one less than the size of the object being queried. If only the End parameter is supplied, it is interpreted to mean scan the last N bytes of the file. For example, <code><scanrange>
   80         -
    /// <end>
   81         -
    /// 50
   82         -
    /// </end>
   83         -
    /// </scanrange></code> means scan the last 50 bytes.</p>
   84         -
    pub fn end(mut self, input: i64) -> Self {
   85         -
        self.end = ::std::option::Option::Some(input);
   86         -
        self
   87         -
    }
   88         -
    /// <p>Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is one less than the size of the object being queried. If only the End parameter is supplied, it is interpreted to mean scan the last N bytes of the file. For example, <code><scanrange>
   89         -
    /// <end>
   90         -
    /// 50
   91         -
    /// </end>
   92         -
    /// </scanrange></code> means scan the last 50 bytes.</p>
   93         -
    pub fn set_end(mut self, input: ::std::option::Option<i64>) -> Self {
   94         -
        self.end = input;
   95         -
        self
   96         -
    }
   97         -
    /// <p>Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is one less than the size of the object being queried. If only the End parameter is supplied, it is interpreted to mean scan the last N bytes of the file. For example, <code><scanrange>
   98         -
    /// <end>
   99         -
    /// 50
  100         -
    /// </end>
  101         -
    /// </scanrange></code> means scan the last 50 bytes.</p>
  102         -
    pub fn get_end(&self) -> &::std::option::Option<i64> {
  103         -
        &self.end
  104         -
    }
  105         -
    /// Consumes the builder and constructs a [`ScanRange`](crate::types::ScanRange).
  106         -
    pub fn build(self) -> crate::types::ScanRange {
  107         -
        crate::types::ScanRange {
  108         -
            start: self.start,
  109         -
            end: self.end,
  110         -
        }
  111         -
    }
  112         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_select_object_content_event_stream.rs

@@ -1,0 +97,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>The container for selecting objects from a content event stream.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub enum SelectObjectContentEventStream {
    7         -
    /// <p>The Continuation Event.</p>
    8         -
    Cont(crate::types::ContinuationEvent),
    9         -
    /// <p>The End Event.</p>
   10         -
    End(crate::types::EndEvent),
   11         -
    /// <p>The Progress Event.</p>
   12         -
    Progress(crate::types::ProgressEvent),
   13         -
    /// <p>The Records Event.</p>
   14         -
    Records(crate::types::RecordsEvent),
   15         -
    /// <p>The Stats Event.</p>
   16         -
    Stats(crate::types::StatsEvent),
   17         -
    /// The `Unknown` variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
   18         -
    /// An unknown enum variant
   19         -
    ///
   20         -
    /// _Note: If you encounter this error, consider upgrading your SDK to the latest version._
   21         -
    /// The `Unknown` variant represents cases where the server sent a value that wasn't recognized
   22         -
    /// by the client. This can happen when the server adds new functionality, but the client has not been updated.
   23         -
    /// To investigate this, consider turning on debug logging to print the raw HTTP response.
   24         -
    #[non_exhaustive]
   25         -
    Unknown,
   26         -
}
   27         -
impl SelectObjectContentEventStream {
   28         -
    /// Tries to convert the enum instance into [`Cont`](crate::types::SelectObjectContentEventStream::Cont), extracting the inner [`ContinuationEvent`](crate::types::ContinuationEvent).
   29         -
    /// Returns `Err(&Self)` if it can't be converted.
   30         -
    pub fn as_cont(&self) -> ::std::result::Result<&crate::types::ContinuationEvent, &Self> {
   31         -
        if let SelectObjectContentEventStream::Cont(val) = &self {
   32         -
            ::std::result::Result::Ok(val)
   33         -
        } else {
   34         -
            ::std::result::Result::Err(self)
   35         -
        }
   36         -
    }
   37         -
    /// Returns true if this is a [`Cont`](crate::types::SelectObjectContentEventStream::Cont).
   38         -
    pub fn is_cont(&self) -> bool {
   39         -
        self.as_cont().is_ok()
   40         -
    }
   41         -
    /// Tries to convert the enum instance into [`End`](crate::types::SelectObjectContentEventStream::End), extracting the inner [`EndEvent`](crate::types::EndEvent).
   42         -
    /// Returns `Err(&Self)` if it can't be converted.
   43         -
    pub fn as_end(&self) -> ::std::result::Result<&crate::types::EndEvent, &Self> {
   44         -
        if let SelectObjectContentEventStream::End(val) = &self {
   45         -
            ::std::result::Result::Ok(val)
   46         -
        } else {
   47         -
            ::std::result::Result::Err(self)
   48         -
        }
   49         -
    }
   50         -
    /// Returns true if this is a [`End`](crate::types::SelectObjectContentEventStream::End).
   51         -
    pub fn is_end(&self) -> bool {
   52         -
        self.as_end().is_ok()
   53         -
    }
   54         -
    /// Tries to convert the enum instance into [`Progress`](crate::types::SelectObjectContentEventStream::Progress), extracting the inner [`ProgressEvent`](crate::types::ProgressEvent).
   55         -
    /// Returns `Err(&Self)` if it can't be converted.
   56         -
    pub fn as_progress(&self) -> ::std::result::Result<&crate::types::ProgressEvent, &Self> {
   57         -
        if let SelectObjectContentEventStream::Progress(val) = &self {
   58         -
            ::std::result::Result::Ok(val)
   59         -
        } else {
   60         -
            ::std::result::Result::Err(self)
   61         -
        }
   62         -
    }
   63         -
    /// Returns true if this is a [`Progress`](crate::types::SelectObjectContentEventStream::Progress).
   64         -
    pub fn is_progress(&self) -> bool {
   65         -
        self.as_progress().is_ok()
   66         -
    }
   67         -
    /// Tries to convert the enum instance into [`Records`](crate::types::SelectObjectContentEventStream::Records), extracting the inner [`RecordsEvent`](crate::types::RecordsEvent).
   68         -
    /// Returns `Err(&Self)` if it can't be converted.
   69         -
    pub fn as_records(&self) -> ::std::result::Result<&crate::types::RecordsEvent, &Self> {
   70         -
        if let SelectObjectContentEventStream::Records(val) = &self {
   71         -
            ::std::result::Result::Ok(val)
   72         -
        } else {
   73         -
            ::std::result::Result::Err(self)
   74         -
        }
   75         -
    }
   76         -
    /// Returns true if this is a [`Records`](crate::types::SelectObjectContentEventStream::Records).
   77         -
    pub fn is_records(&self) -> bool {
   78         -
        self.as_records().is_ok()
   79         -
    }
   80         -
    /// Tries to convert the enum instance into [`Stats`](crate::types::SelectObjectContentEventStream::Stats), extracting the inner [`StatsEvent`](crate::types::StatsEvent).
   81         -
    /// Returns `Err(&Self)` if it can't be converted.
   82         -
    pub fn as_stats(&self) -> ::std::result::Result<&crate::types::StatsEvent, &Self> {
   83         -
        if let SelectObjectContentEventStream::Stats(val) = &self {
   84         -
            ::std::result::Result::Ok(val)
   85         -
        } else {
   86         -
            ::std::result::Result::Err(self)
   87         -
        }
   88         -
    }
   89         -
    /// Returns true if this is a [`Stats`](crate::types::SelectObjectContentEventStream::Stats).
   90         -
    pub fn is_stats(&self) -> bool {
   91         -
        self.as_stats().is_ok()
   92         -
    }
   93         -
    /// Returns true if the enum instance is the `Unknown` variant.
   94         -
    pub fn is_unknown(&self) -> bool {
   95         -
        matches!(self, Self::Unknown)
   96         -
    }
   97         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_select_parameters.rs

@@ -1,0 +153,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <important>
    4         -
/// <p>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>
    5         -
/// </important>
    6         -
/// <p>Describes the parameters for Select job types.</p>
    7         -
/// <p>Learn <a href="http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/">How to optimize querying your data in Amazon S3</a> using <a href="https://docs.aws.amazon.com/athena/latest/ug/what-is.html">Amazon Athena</a>, <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html">S3 Object Lambda</a>, or client-side filtering.</p>
    8         -
#[non_exhaustive]
    9         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
   10         -
pub struct SelectParameters {
   11         -
    /// <p>Describes the serialization format of the object.</p>
   12         -
    pub input_serialization: ::std::option::Option<crate::types::InputSerialization>,
   13         -
    /// <p>The type of the provided expression (for example, SQL).</p>
   14         -
    pub expression_type: crate::types::ExpressionType,
   15         -
    /// <important>
   16         -
    /// <p>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>
   17         -
    /// </important>
   18         -
    /// <p>The expression that is used to query the object.</p>
   19         -
    pub expression: ::std::string::String,
   20         -
    /// <p>Describes how the results of the Select job are serialized.</p>
   21         -
    pub output_serialization: ::std::option::Option<crate::types::OutputSerialization>,
   22         -
}
   23         -
impl SelectParameters {
   24         -
    /// <p>Describes the serialization format of the object.</p>
   25         -
    pub fn input_serialization(&self) -> ::std::option::Option<&crate::types::InputSerialization> {
   26         -
        self.input_serialization.as_ref()
   27         -
    }
   28         -
    /// <p>The type of the provided expression (for example, SQL).</p>
   29         -
    pub fn expression_type(&self) -> &crate::types::ExpressionType {
   30         -
        &self.expression_type
   31         -
    }
   32         -
    /// <important>
   33         -
    /// <p>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>
   34         -
    /// </important>
   35         -
    /// <p>The expression that is used to query the object.</p>
   36         -
    pub fn expression(&self) -> &str {
   37         -
        use std::ops::Deref;
   38         -
        self.expression.deref()
   39         -
    }
   40         -
    /// <p>Describes how the results of the Select job are serialized.</p>
   41         -
    pub fn output_serialization(&self) -> ::std::option::Option<&crate::types::OutputSerialization> {
   42         -
        self.output_serialization.as_ref()
   43         -
    }
   44         -
}
   45         -
impl SelectParameters {
   46         -
    /// Creates a new builder-style object to manufacture [`SelectParameters`](crate::types::SelectParameters).
   47         -
    pub fn builder() -> crate::types::builders::SelectParametersBuilder {
   48         -
        crate::types::builders::SelectParametersBuilder::default()
   49         -
    }
   50         -
}
   51         -
   52         -
/// A builder for [`SelectParameters`](crate::types::SelectParameters).
   53         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   54         -
#[non_exhaustive]
   55         -
pub struct SelectParametersBuilder {
   56         -
    pub(crate) input_serialization: ::std::option::Option<crate::types::InputSerialization>,
   57         -
    pub(crate) expression_type: ::std::option::Option<crate::types::ExpressionType>,
   58         -
    pub(crate) expression: ::std::option::Option<::std::string::String>,
   59         -
    pub(crate) output_serialization: ::std::option::Option<crate::types::OutputSerialization>,
   60         -
}
   61         -
impl SelectParametersBuilder {
   62         -
    /// <p>Describes the serialization format of the object.</p>
   63         -
    /// This field is required.
   64         -
    pub fn input_serialization(mut self, input: crate::types::InputSerialization) -> Self {
   65         -
        self.input_serialization = ::std::option::Option::Some(input);
   66         -
        self
   67         -
    }
   68         -
    /// <p>Describes the serialization format of the object.</p>
   69         -
    pub fn set_input_serialization(mut self, input: ::std::option::Option<crate::types::InputSerialization>) -> Self {
   70         -
        self.input_serialization = input;
   71         -
        self
   72         -
    }
   73         -
    /// <p>Describes the serialization format of the object.</p>
   74         -
    pub fn get_input_serialization(&self) -> &::std::option::Option<crate::types::InputSerialization> {
   75         -
        &self.input_serialization
   76         -
    }
   77         -
    /// <p>The type of the provided expression (for example, SQL).</p>
   78         -
    /// This field is required.
   79         -
    pub fn expression_type(mut self, input: crate::types::ExpressionType) -> Self {
   80         -
        self.expression_type = ::std::option::Option::Some(input);
   81         -
        self
   82         -
    }
   83         -
    /// <p>The type of the provided expression (for example, SQL).</p>
   84         -
    pub fn set_expression_type(mut self, input: ::std::option::Option<crate::types::ExpressionType>) -> Self {
   85         -
        self.expression_type = input;
   86         -
        self
   87         -
    }
   88         -
    /// <p>The type of the provided expression (for example, SQL).</p>
   89         -
    pub fn get_expression_type(&self) -> &::std::option::Option<crate::types::ExpressionType> {
   90         -
        &self.expression_type
   91         -
    }
   92         -
    /// <important>
   93         -
    /// <p>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>
   94         -
    /// </important>
   95         -
    /// <p>The expression that is used to query the object.</p>
   96         -
    /// This field is required.
   97         -
    pub fn expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
   98         -
        self.expression = ::std::option::Option::Some(input.into());
   99         -
        self
  100         -
    }
  101         -
    /// <important>
  102         -
    /// <p>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>
  103         -
    /// </important>
  104         -
    /// <p>The expression that is used to query the object.</p>
  105         -
    pub fn set_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  106         -
        self.expression = input;
  107         -
        self
  108         -
    }
  109         -
    /// <important>
  110         -
    /// <p>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>
  111         -
    /// </important>
  112         -
    /// <p>The expression that is used to query the object.</p>
  113         -
    pub fn get_expression(&self) -> &::std::option::Option<::std::string::String> {
  114         -
        &self.expression
  115         -
    }
  116         -
    /// <p>Describes how the results of the Select job are serialized.</p>
  117         -
    /// This field is required.
  118         -
    pub fn output_serialization(mut self, input: crate::types::OutputSerialization) -> Self {
  119         -
        self.output_serialization = ::std::option::Option::Some(input);
  120         -
        self
  121         -
    }
  122         -
    /// <p>Describes how the results of the Select job are serialized.</p>
  123         -
    pub fn set_output_serialization(mut self, input: ::std::option::Option<crate::types::OutputSerialization>) -> Self {
  124         -
        self.output_serialization = input;
  125         -
        self
  126         -
    }
  127         -
    /// <p>Describes how the results of the Select job are serialized.</p>
  128         -
    pub fn get_output_serialization(&self) -> &::std::option::Option<crate::types::OutputSerialization> {
  129         -
        &self.output_serialization
  130         -
    }
  131         -
    /// Consumes the builder and constructs a [`SelectParameters`](crate::types::SelectParameters).
  132         -
    /// This method will fail if any of the following fields are not set:
  133         -
    /// - [`expression_type`](crate::types::builders::SelectParametersBuilder::expression_type)
  134         -
    /// - [`expression`](crate::types::builders::SelectParametersBuilder::expression)
  135         -
    pub fn build(self) -> ::std::result::Result<crate::types::SelectParameters, ::aws_smithy_types::error::operation::BuildError> {
  136         -
        ::std::result::Result::Ok(crate::types::SelectParameters {
  137         -
            input_serialization: self.input_serialization,
  138         -
            expression_type: self.expression_type.ok_or_else(|| {
  139         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  140         -
                    "expression_type",
  141         -
                    "expression_type was not specified but it is required when building SelectParameters",
  142         -
                )
  143         -
            })?,
  144         -
            expression: self.expression.ok_or_else(|| {
  145         -
                ::aws_smithy_types::error::operation::BuildError::missing_field(
  146         -
                    "expression",
  147         -
                    "expression was not specified but it is required when building SelectParameters",
  148         -
                )
  149         -
            })?,
  150         -
            output_serialization: self.output_serialization,
  151         -
        })
  152         -
    }
  153         -
}