AWS SDK

AWS SDK

rev. eb19c4c7998eaae1210cb747286b497c3425236c

Files changed:

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_abort_transaction_result.rs

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

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_commit_transaction_request.rs

@@ -0,1 +0,93 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Contains the details of the transaction to commit.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct CommitTransactionRequest {
           7  +
    /// <p>Specifies the transaction ID of the transaction to commit.</p>
           8  +
    pub transaction_id: ::std::string::String,
           9  +
    /// <p>Specifies the commit digest for the transaction to commit. For every active transaction, the commit digest must be passed. QLDB validates <code>CommitDigest</code> and rejects the commit with an error if the digest computed on the client does not match the digest computed by QLDB.</p>
          10  +
    /// <p>The purpose of the <code>CommitDigest</code> parameter is to ensure that QLDB commits a transaction if and only if the server has processed the exact set of statements sent by the client, in the same order that client sent them, and with no duplicates.</p>
          11  +
    pub commit_digest: ::aws_smithy_types::Blob,
          12  +
}
          13  +
impl CommitTransactionRequest {
          14  +
    /// <p>Specifies the transaction ID of the transaction to commit.</p>
          15  +
    pub fn transaction_id(&self) -> &str {
          16  +
        use std::ops::Deref;
          17  +
        self.transaction_id.deref()
          18  +
    }
          19  +
    /// <p>Specifies the commit digest for the transaction to commit. For every active transaction, the commit digest must be passed. QLDB validates <code>CommitDigest</code> and rejects the commit with an error if the digest computed on the client does not match the digest computed by QLDB.</p>
          20  +
    /// <p>The purpose of the <code>CommitDigest</code> parameter is to ensure that QLDB commits a transaction if and only if the server has processed the exact set of statements sent by the client, in the same order that client sent them, and with no duplicates.</p>
          21  +
    pub fn commit_digest(&self) -> &::aws_smithy_types::Blob {
          22  +
        &self.commit_digest
          23  +
    }
          24  +
}
          25  +
impl CommitTransactionRequest {
          26  +
    /// Creates a new builder-style object to manufacture [`CommitTransactionRequest`](crate::types::CommitTransactionRequest).
          27  +
    pub fn builder() -> crate::types::builders::CommitTransactionRequestBuilder {
          28  +
        crate::types::builders::CommitTransactionRequestBuilder::default()
          29  +
    }
          30  +
}
          31  +
          32  +
/// A builder for [`CommitTransactionRequest`](crate::types::CommitTransactionRequest).
          33  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          34  +
#[non_exhaustive]
          35  +
pub struct CommitTransactionRequestBuilder {
          36  +
    pub(crate) transaction_id: ::std::option::Option<::std::string::String>,
          37  +
    pub(crate) commit_digest: ::std::option::Option<::aws_smithy_types::Blob>,
          38  +
}
          39  +
impl CommitTransactionRequestBuilder {
          40  +
    /// <p>Specifies the transaction ID of the transaction to commit.</p>
          41  +
    /// This field is required.
          42  +
    pub fn transaction_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          43  +
        self.transaction_id = ::std::option::Option::Some(input.into());
          44  +
        self
          45  +
    }
          46  +
    /// <p>Specifies the transaction ID of the transaction to commit.</p>
          47  +
    pub fn set_transaction_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          48  +
        self.transaction_id = input;
          49  +
        self
          50  +
    }
          51  +
    /// <p>Specifies the transaction ID of the transaction to commit.</p>
          52  +
    pub fn get_transaction_id(&self) -> &::std::option::Option<::std::string::String> {
          53  +
        &self.transaction_id
          54  +
    }
          55  +
    /// <p>Specifies the commit digest for the transaction to commit. For every active transaction, the commit digest must be passed. QLDB validates <code>CommitDigest</code> and rejects the commit with an error if the digest computed on the client does not match the digest computed by QLDB.</p>
          56  +
    /// <p>The purpose of the <code>CommitDigest</code> parameter is to ensure that QLDB commits a transaction if and only if the server has processed the exact set of statements sent by the client, in the same order that client sent them, and with no duplicates.</p>
          57  +
    /// This field is required.
          58  +
    pub fn commit_digest(mut self, input: ::aws_smithy_types::Blob) -> Self {
          59  +
        self.commit_digest = ::std::option::Option::Some(input);
          60  +
        self
          61  +
    }
          62  +
    /// <p>Specifies the commit digest for the transaction to commit. For every active transaction, the commit digest must be passed. QLDB validates <code>CommitDigest</code> and rejects the commit with an error if the digest computed on the client does not match the digest computed by QLDB.</p>
          63  +
    /// <p>The purpose of the <code>CommitDigest</code> parameter is to ensure that QLDB commits a transaction if and only if the server has processed the exact set of statements sent by the client, in the same order that client sent them, and with no duplicates.</p>
          64  +
    pub fn set_commit_digest(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
          65  +
        self.commit_digest = input;
          66  +
        self
          67  +
    }
          68  +
    /// <p>Specifies the commit digest for the transaction to commit. For every active transaction, the commit digest must be passed. QLDB validates <code>CommitDigest</code> and rejects the commit with an error if the digest computed on the client does not match the digest computed by QLDB.</p>
          69  +
    /// <p>The purpose of the <code>CommitDigest</code> parameter is to ensure that QLDB commits a transaction if and only if the server has processed the exact set of statements sent by the client, in the same order that client sent them, and with no duplicates.</p>
          70  +
    pub fn get_commit_digest(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
          71  +
        &self.commit_digest
          72  +
    }
          73  +
    /// Consumes the builder and constructs a [`CommitTransactionRequest`](crate::types::CommitTransactionRequest).
          74  +
    /// This method will fail if any of the following fields are not set:
          75  +
    /// - [`transaction_id`](crate::types::builders::CommitTransactionRequestBuilder::transaction_id)
          76  +
    /// - [`commit_digest`](crate::types::builders::CommitTransactionRequestBuilder::commit_digest)
          77  +
    pub fn build(self) -> ::std::result::Result<crate::types::CommitTransactionRequest, ::aws_smithy_types::error::operation::BuildError> {
          78  +
        ::std::result::Result::Ok(crate::types::CommitTransactionRequest {
          79  +
            transaction_id: self.transaction_id.ok_or_else(|| {
          80  +
                ::aws_smithy_types::error::operation::BuildError::missing_field(
          81  +
                    "transaction_id",
          82  +
                    "transaction_id was not specified but it is required when building CommitTransactionRequest",
          83  +
                )
          84  +
            })?,
          85  +
            commit_digest: self.commit_digest.ok_or_else(|| {
          86  +
                ::aws_smithy_types::error::operation::BuildError::missing_field(
          87  +
                    "commit_digest",
          88  +
                    "commit_digest was not specified but it is required when building CommitTransactionRequest",
          89  +
                )
          90  +
            })?,
          91  +
        })
          92  +
    }
          93  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_commit_transaction_result.rs

@@ -0,1 +0,116 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Contains the details of the committed transaction.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct CommitTransactionResult {
           7  +
    /// <p>The transaction ID of the committed transaction.</p>
           8  +
    pub transaction_id: ::std::option::Option<::std::string::String>,
           9  +
    /// <p>The commit digest of the committed transaction.</p>
          10  +
    pub commit_digest: ::std::option::Option<::aws_smithy_types::Blob>,
          11  +
    /// <p>Contains server-side performance information for the command.</p>
          12  +
    pub timing_information: ::std::option::Option<crate::types::TimingInformation>,
          13  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          14  +
    pub consumed_ios: ::std::option::Option<crate::types::IoUsage>,
          15  +
}
          16  +
impl CommitTransactionResult {
          17  +
    /// <p>The transaction ID of the committed transaction.</p>
          18  +
    pub fn transaction_id(&self) -> ::std::option::Option<&str> {
          19  +
        self.transaction_id.as_deref()
          20  +
    }
          21  +
    /// <p>The commit digest of the committed transaction.</p>
          22  +
    pub fn commit_digest(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
          23  +
        self.commit_digest.as_ref()
          24  +
    }
          25  +
    /// <p>Contains server-side performance information for the command.</p>
          26  +
    pub fn timing_information(&self) -> ::std::option::Option<&crate::types::TimingInformation> {
          27  +
        self.timing_information.as_ref()
          28  +
    }
          29  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          30  +
    pub fn consumed_ios(&self) -> ::std::option::Option<&crate::types::IoUsage> {
          31  +
        self.consumed_ios.as_ref()
          32  +
    }
          33  +
}
          34  +
impl CommitTransactionResult {
          35  +
    /// Creates a new builder-style object to manufacture [`CommitTransactionResult`](crate::types::CommitTransactionResult).
          36  +
    pub fn builder() -> crate::types::builders::CommitTransactionResultBuilder {
          37  +
        crate::types::builders::CommitTransactionResultBuilder::default()
          38  +
    }
          39  +
}
          40  +
          41  +
/// A builder for [`CommitTransactionResult`](crate::types::CommitTransactionResult).
          42  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          43  +
#[non_exhaustive]
          44  +
pub struct CommitTransactionResultBuilder {
          45  +
    pub(crate) transaction_id: ::std::option::Option<::std::string::String>,
          46  +
    pub(crate) commit_digest: ::std::option::Option<::aws_smithy_types::Blob>,
          47  +
    pub(crate) timing_information: ::std::option::Option<crate::types::TimingInformation>,
          48  +
    pub(crate) consumed_ios: ::std::option::Option<crate::types::IoUsage>,
          49  +
}
          50  +
impl CommitTransactionResultBuilder {
          51  +
    /// <p>The transaction ID of the committed transaction.</p>
          52  +
    pub fn transaction_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          53  +
        self.transaction_id = ::std::option::Option::Some(input.into());
          54  +
        self
          55  +
    }
          56  +
    /// <p>The transaction ID of the committed transaction.</p>
          57  +
    pub fn set_transaction_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          58  +
        self.transaction_id = input;
          59  +
        self
          60  +
    }
          61  +
    /// <p>The transaction ID of the committed transaction.</p>
          62  +
    pub fn get_transaction_id(&self) -> &::std::option::Option<::std::string::String> {
          63  +
        &self.transaction_id
          64  +
    }
          65  +
    /// <p>The commit digest of the committed transaction.</p>
          66  +
    pub fn commit_digest(mut self, input: ::aws_smithy_types::Blob) -> Self {
          67  +
        self.commit_digest = ::std::option::Option::Some(input);
          68  +
        self
          69  +
    }
          70  +
    /// <p>The commit digest of the committed transaction.</p>
          71  +
    pub fn set_commit_digest(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
          72  +
        self.commit_digest = input;
          73  +
        self
          74  +
    }
          75  +
    /// <p>The commit digest of the committed transaction.</p>
          76  +
    pub fn get_commit_digest(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
          77  +
        &self.commit_digest
          78  +
    }
          79  +
    /// <p>Contains server-side performance information for the command.</p>
          80  +
    pub fn timing_information(mut self, input: crate::types::TimingInformation) -> Self {
          81  +
        self.timing_information = ::std::option::Option::Some(input);
          82  +
        self
          83  +
    }
          84  +
    /// <p>Contains server-side performance information for the command.</p>
          85  +
    pub fn set_timing_information(mut self, input: ::std::option::Option<crate::types::TimingInformation>) -> Self {
          86  +
        self.timing_information = input;
          87  +
        self
          88  +
    }
          89  +
    /// <p>Contains server-side performance information for the command.</p>
          90  +
    pub fn get_timing_information(&self) -> &::std::option::Option<crate::types::TimingInformation> {
          91  +
        &self.timing_information
          92  +
    }
          93  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          94  +
    pub fn consumed_ios(mut self, input: crate::types::IoUsage) -> Self {
          95  +
        self.consumed_ios = ::std::option::Option::Some(input);
          96  +
        self
          97  +
    }
          98  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          99  +
    pub fn set_consumed_ios(mut self, input: ::std::option::Option<crate::types::IoUsage>) -> Self {
         100  +
        self.consumed_ios = input;
         101  +
        self
         102  +
    }
         103  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
         104  +
    pub fn get_consumed_ios(&self) -> &::std::option::Option<crate::types::IoUsage> {
         105  +
        &self.consumed_ios
         106  +
    }
         107  +
    /// Consumes the builder and constructs a [`CommitTransactionResult`](crate::types::CommitTransactionResult).
         108  +
    pub fn build(self) -> crate::types::CommitTransactionResult {
         109  +
        crate::types::CommitTransactionResult {
         110  +
            transaction_id: self.transaction_id,
         111  +
            commit_digest: self.commit_digest,
         112  +
            timing_information: self.timing_information,
         113  +
            consumed_ios: self.consumed_ios,
         114  +
        }
         115  +
    }
         116  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_end_session_request.rs

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

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_end_session_result.rs

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

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_execute_statement_request.rs

@@ -0,1 +0,119 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Specifies a request to execute a statement.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct ExecuteStatementRequest {
           7  +
    /// <p>Specifies the transaction ID of the request.</p>
           8  +
    pub transaction_id: ::std::string::String,
           9  +
    /// <p>Specifies the statement of the request.</p>
          10  +
    pub statement: ::std::string::String,
          11  +
    /// <p>Specifies the parameters for the parameterized statement in the request.</p>
          12  +
    pub parameters: ::std::option::Option<::std::vec::Vec<crate::types::ValueHolder>>,
          13  +
}
          14  +
impl ExecuteStatementRequest {
          15  +
    /// <p>Specifies the transaction ID of the request.</p>
          16  +
    pub fn transaction_id(&self) -> &str {
          17  +
        use std::ops::Deref;
          18  +
        self.transaction_id.deref()
          19  +
    }
          20  +
    /// <p>Specifies the statement of the request.</p>
          21  +
    pub fn statement(&self) -> &str {
          22  +
        use std::ops::Deref;
          23  +
        self.statement.deref()
          24  +
    }
          25  +
    /// <p>Specifies the parameters for the parameterized statement in the request.</p>
          26  +
    ///
          27  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.parameters.is_none()`.
          28  +
    pub fn parameters(&self) -> &[crate::types::ValueHolder] {
          29  +
        self.parameters.as_deref().unwrap_or_default()
          30  +
    }
          31  +
}
          32  +
impl ExecuteStatementRequest {
          33  +
    /// Creates a new builder-style object to manufacture [`ExecuteStatementRequest`](crate::types::ExecuteStatementRequest).
          34  +
    pub fn builder() -> crate::types::builders::ExecuteStatementRequestBuilder {
          35  +
        crate::types::builders::ExecuteStatementRequestBuilder::default()
          36  +
    }
          37  +
}
          38  +
          39  +
/// A builder for [`ExecuteStatementRequest`](crate::types::ExecuteStatementRequest).
          40  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          41  +
#[non_exhaustive]
          42  +
pub struct ExecuteStatementRequestBuilder {
          43  +
    pub(crate) transaction_id: ::std::option::Option<::std::string::String>,
          44  +
    pub(crate) statement: ::std::option::Option<::std::string::String>,
          45  +
    pub(crate) parameters: ::std::option::Option<::std::vec::Vec<crate::types::ValueHolder>>,
          46  +
}
          47  +
impl ExecuteStatementRequestBuilder {
          48  +
    /// <p>Specifies the transaction ID of the request.</p>
          49  +
    /// This field is required.
          50  +
    pub fn transaction_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          51  +
        self.transaction_id = ::std::option::Option::Some(input.into());
          52  +
        self
          53  +
    }
          54  +
    /// <p>Specifies the transaction ID of the request.</p>
          55  +
    pub fn set_transaction_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          56  +
        self.transaction_id = input;
          57  +
        self
          58  +
    }
          59  +
    /// <p>Specifies the transaction ID of the request.</p>
          60  +
    pub fn get_transaction_id(&self) -> &::std::option::Option<::std::string::String> {
          61  +
        &self.transaction_id
          62  +
    }
          63  +
    /// <p>Specifies the statement of the request.</p>
          64  +
    /// This field is required.
          65  +
    pub fn statement(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          66  +
        self.statement = ::std::option::Option::Some(input.into());
          67  +
        self
          68  +
    }
          69  +
    /// <p>Specifies the statement of the request.</p>
          70  +
    pub fn set_statement(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          71  +
        self.statement = input;
          72  +
        self
          73  +
    }
          74  +
    /// <p>Specifies the statement of the request.</p>
          75  +
    pub fn get_statement(&self) -> &::std::option::Option<::std::string::String> {
          76  +
        &self.statement
          77  +
    }
          78  +
    /// Appends an item to `parameters`.
          79  +
    ///
          80  +
    /// To override the contents of this collection use [`set_parameters`](Self::set_parameters).
          81  +
    ///
          82  +
    /// <p>Specifies the parameters for the parameterized statement in the request.</p>
          83  +
    pub fn parameters(mut self, input: crate::types::ValueHolder) -> Self {
          84  +
        let mut v = self.parameters.unwrap_or_default();
          85  +
        v.push(input);
          86  +
        self.parameters = ::std::option::Option::Some(v);
          87  +
        self
          88  +
    }
          89  +
    /// <p>Specifies the parameters for the parameterized statement in the request.</p>
          90  +
    pub fn set_parameters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ValueHolder>>) -> Self {
          91  +
        self.parameters = input;
          92  +
        self
          93  +
    }
          94  +
    /// <p>Specifies the parameters for the parameterized statement in the request.</p>
          95  +
    pub fn get_parameters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ValueHolder>> {
          96  +
        &self.parameters
          97  +
    }
          98  +
    /// Consumes the builder and constructs a [`ExecuteStatementRequest`](crate::types::ExecuteStatementRequest).
          99  +
    /// This method will fail if any of the following fields are not set:
         100  +
    /// - [`transaction_id`](crate::types::builders::ExecuteStatementRequestBuilder::transaction_id)
         101  +
    /// - [`statement`](crate::types::builders::ExecuteStatementRequestBuilder::statement)
         102  +
    pub fn build(self) -> ::std::result::Result<crate::types::ExecuteStatementRequest, ::aws_smithy_types::error::operation::BuildError> {
         103  +
        ::std::result::Result::Ok(crate::types::ExecuteStatementRequest {
         104  +
            transaction_id: self.transaction_id.ok_or_else(|| {
         105  +
                ::aws_smithy_types::error::operation::BuildError::missing_field(
         106  +
                    "transaction_id",
         107  +
                    "transaction_id was not specified but it is required when building ExecuteStatementRequest",
         108  +
                )
         109  +
            })?,
         110  +
            statement: self.statement.ok_or_else(|| {
         111  +
                ::aws_smithy_types::error::operation::BuildError::missing_field(
         112  +
                    "statement",
         113  +
                    "statement was not specified but it is required when building ExecuteStatementRequest",
         114  +
                )
         115  +
            })?,
         116  +
            parameters: self.parameters,
         117  +
        })
         118  +
    }
         119  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_execute_statement_result.rs

@@ -0,1 +0,94 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Contains the details of the executed statement.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct ExecuteStatementResult {
           7  +
    /// <p>Contains the details of the first fetched page.</p>
           8  +
    pub first_page: ::std::option::Option<crate::types::Page>,
           9  +
    /// <p>Contains server-side performance information for the command.</p>
          10  +
    pub timing_information: ::std::option::Option<crate::types::TimingInformation>,
          11  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          12  +
    pub consumed_ios: ::std::option::Option<crate::types::IoUsage>,
          13  +
}
          14  +
impl ExecuteStatementResult {
          15  +
    /// <p>Contains the details of the first fetched page.</p>
          16  +
    pub fn first_page(&self) -> ::std::option::Option<&crate::types::Page> {
          17  +
        self.first_page.as_ref()
          18  +
    }
          19  +
    /// <p>Contains server-side performance information for the command.</p>
          20  +
    pub fn timing_information(&self) -> ::std::option::Option<&crate::types::TimingInformation> {
          21  +
        self.timing_information.as_ref()
          22  +
    }
          23  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          24  +
    pub fn consumed_ios(&self) -> ::std::option::Option<&crate::types::IoUsage> {
          25  +
        self.consumed_ios.as_ref()
          26  +
    }
          27  +
}
          28  +
impl ExecuteStatementResult {
          29  +
    /// Creates a new builder-style object to manufacture [`ExecuteStatementResult`](crate::types::ExecuteStatementResult).
          30  +
    pub fn builder() -> crate::types::builders::ExecuteStatementResultBuilder {
          31  +
        crate::types::builders::ExecuteStatementResultBuilder::default()
          32  +
    }
          33  +
}
          34  +
          35  +
/// A builder for [`ExecuteStatementResult`](crate::types::ExecuteStatementResult).
          36  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          37  +
#[non_exhaustive]
          38  +
pub struct ExecuteStatementResultBuilder {
          39  +
    pub(crate) first_page: ::std::option::Option<crate::types::Page>,
          40  +
    pub(crate) timing_information: ::std::option::Option<crate::types::TimingInformation>,
          41  +
    pub(crate) consumed_ios: ::std::option::Option<crate::types::IoUsage>,
          42  +
}
          43  +
impl ExecuteStatementResultBuilder {
          44  +
    /// <p>Contains the details of the first fetched page.</p>
          45  +
    pub fn first_page(mut self, input: crate::types::Page) -> Self {
          46  +
        self.first_page = ::std::option::Option::Some(input);
          47  +
        self
          48  +
    }
          49  +
    /// <p>Contains the details of the first fetched page.</p>
          50  +
    pub fn set_first_page(mut self, input: ::std::option::Option<crate::types::Page>) -> Self {
          51  +
        self.first_page = input;
          52  +
        self
          53  +
    }
          54  +
    /// <p>Contains the details of the first fetched page.</p>
          55  +
    pub fn get_first_page(&self) -> &::std::option::Option<crate::types::Page> {
          56  +
        &self.first_page
          57  +
    }
          58  +
    /// <p>Contains server-side performance information for the command.</p>
          59  +
    pub fn timing_information(mut self, input: crate::types::TimingInformation) -> Self {
          60  +
        self.timing_information = ::std::option::Option::Some(input);
          61  +
        self
          62  +
    }
          63  +
    /// <p>Contains server-side performance information for the command.</p>
          64  +
    pub fn set_timing_information(mut self, input: ::std::option::Option<crate::types::TimingInformation>) -> Self {
          65  +
        self.timing_information = input;
          66  +
        self
          67  +
    }
          68  +
    /// <p>Contains server-side performance information for the command.</p>
          69  +
    pub fn get_timing_information(&self) -> &::std::option::Option<crate::types::TimingInformation> {
          70  +
        &self.timing_information
          71  +
    }
          72  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          73  +
    pub fn consumed_ios(mut self, input: crate::types::IoUsage) -> Self {
          74  +
        self.consumed_ios = ::std::option::Option::Some(input);
          75  +
        self
          76  +
    }
          77  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          78  +
    pub fn set_consumed_ios(mut self, input: ::std::option::Option<crate::types::IoUsage>) -> Self {
          79  +
        self.consumed_ios = input;
          80  +
        self
          81  +
    }
          82  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          83  +
    pub fn get_consumed_ios(&self) -> &::std::option::Option<crate::types::IoUsage> {
          84  +
        &self.consumed_ios
          85  +
    }
          86  +
    /// Consumes the builder and constructs a [`ExecuteStatementResult`](crate::types::ExecuteStatementResult).
          87  +
    pub fn build(self) -> crate::types::ExecuteStatementResult {
          88  +
        crate::types::ExecuteStatementResult {
          89  +
            first_page: self.first_page,
          90  +
            timing_information: self.timing_information,
          91  +
            consumed_ios: self.consumed_ios,
          92  +
        }
          93  +
    }
          94  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_fetch_page_request.rs

@@ -0,1 +0,89 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Specifies the details of the page to be fetched.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct FetchPageRequest {
           7  +
    /// <p>Specifies the transaction ID of the page to be fetched.</p>
           8  +
    pub transaction_id: ::std::string::String,
           9  +
    /// <p>Specifies the next page token of the page to be fetched.</p>
          10  +
    pub next_page_token: ::std::string::String,
          11  +
}
          12  +
impl FetchPageRequest {
          13  +
    /// <p>Specifies the transaction ID of the page to be fetched.</p>
          14  +
    pub fn transaction_id(&self) -> &str {
          15  +
        use std::ops::Deref;
          16  +
        self.transaction_id.deref()
          17  +
    }
          18  +
    /// <p>Specifies the next page token of the page to be fetched.</p>
          19  +
    pub fn next_page_token(&self) -> &str {
          20  +
        use std::ops::Deref;
          21  +
        self.next_page_token.deref()
          22  +
    }
          23  +
}
          24  +
impl FetchPageRequest {
          25  +
    /// Creates a new builder-style object to manufacture [`FetchPageRequest`](crate::types::FetchPageRequest).
          26  +
    pub fn builder() -> crate::types::builders::FetchPageRequestBuilder {
          27  +
        crate::types::builders::FetchPageRequestBuilder::default()
          28  +
    }
          29  +
}
          30  +
          31  +
/// A builder for [`FetchPageRequest`](crate::types::FetchPageRequest).
          32  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          33  +
#[non_exhaustive]
          34  +
pub struct FetchPageRequestBuilder {
          35  +
    pub(crate) transaction_id: ::std::option::Option<::std::string::String>,
          36  +
    pub(crate) next_page_token: ::std::option::Option<::std::string::String>,
          37  +
}
          38  +
impl FetchPageRequestBuilder {
          39  +
    /// <p>Specifies the transaction ID of the page to be fetched.</p>
          40  +
    /// This field is required.
          41  +
    pub fn transaction_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          42  +
        self.transaction_id = ::std::option::Option::Some(input.into());
          43  +
        self
          44  +
    }
          45  +
    /// <p>Specifies the transaction ID of the page to be fetched.</p>
          46  +
    pub fn set_transaction_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          47  +
        self.transaction_id = input;
          48  +
        self
          49  +
    }
          50  +
    /// <p>Specifies the transaction ID of the page to be fetched.</p>
          51  +
    pub fn get_transaction_id(&self) -> &::std::option::Option<::std::string::String> {
          52  +
        &self.transaction_id
          53  +
    }
          54  +
    /// <p>Specifies the next page token of the page to be fetched.</p>
          55  +
    /// This field is required.
          56  +
    pub fn next_page_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          57  +
        self.next_page_token = ::std::option::Option::Some(input.into());
          58  +
        self
          59  +
    }
          60  +
    /// <p>Specifies the next page token of the page to be fetched.</p>
          61  +
    pub fn set_next_page_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          62  +
        self.next_page_token = input;
          63  +
        self
          64  +
    }
          65  +
    /// <p>Specifies the next page token of the page to be fetched.</p>
          66  +
    pub fn get_next_page_token(&self) -> &::std::option::Option<::std::string::String> {
          67  +
        &self.next_page_token
          68  +
    }
          69  +
    /// Consumes the builder and constructs a [`FetchPageRequest`](crate::types::FetchPageRequest).
          70  +
    /// This method will fail if any of the following fields are not set:
          71  +
    /// - [`transaction_id`](crate::types::builders::FetchPageRequestBuilder::transaction_id)
          72  +
    /// - [`next_page_token`](crate::types::builders::FetchPageRequestBuilder::next_page_token)
          73  +
    pub fn build(self) -> ::std::result::Result<crate::types::FetchPageRequest, ::aws_smithy_types::error::operation::BuildError> {
          74  +
        ::std::result::Result::Ok(crate::types::FetchPageRequest {
          75  +
            transaction_id: self.transaction_id.ok_or_else(|| {
          76  +
                ::aws_smithy_types::error::operation::BuildError::missing_field(
          77  +
                    "transaction_id",
          78  +
                    "transaction_id was not specified but it is required when building FetchPageRequest",
          79  +
                )
          80  +
            })?,
          81  +
            next_page_token: self.next_page_token.ok_or_else(|| {
          82  +
                ::aws_smithy_types::error::operation::BuildError::missing_field(
          83  +
                    "next_page_token",
          84  +
                    "next_page_token was not specified but it is required when building FetchPageRequest",
          85  +
                )
          86  +
            })?,
          87  +
        })
          88  +
    }
          89  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_fetch_page_result.rs

@@ -0,1 +0,94 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Contains the page that was fetched.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct FetchPageResult {
           7  +
    /// <p>Contains details of the fetched page.</p>
           8  +
    pub page: ::std::option::Option<crate::types::Page>,
           9  +
    /// <p>Contains server-side performance information for the command.</p>
          10  +
    pub timing_information: ::std::option::Option<crate::types::TimingInformation>,
          11  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          12  +
    pub consumed_ios: ::std::option::Option<crate::types::IoUsage>,
          13  +
}
          14  +
impl FetchPageResult {
          15  +
    /// <p>Contains details of the fetched page.</p>
          16  +
    pub fn page(&self) -> ::std::option::Option<&crate::types::Page> {
          17  +
        self.page.as_ref()
          18  +
    }
          19  +
    /// <p>Contains server-side performance information for the command.</p>
          20  +
    pub fn timing_information(&self) -> ::std::option::Option<&crate::types::TimingInformation> {
          21  +
        self.timing_information.as_ref()
          22  +
    }
          23  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          24  +
    pub fn consumed_ios(&self) -> ::std::option::Option<&crate::types::IoUsage> {
          25  +
        self.consumed_ios.as_ref()
          26  +
    }
          27  +
}
          28  +
impl FetchPageResult {
          29  +
    /// Creates a new builder-style object to manufacture [`FetchPageResult`](crate::types::FetchPageResult).
          30  +
    pub fn builder() -> crate::types::builders::FetchPageResultBuilder {
          31  +
        crate::types::builders::FetchPageResultBuilder::default()
          32  +
    }
          33  +
}
          34  +
          35  +
/// A builder for [`FetchPageResult`](crate::types::FetchPageResult).
          36  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          37  +
#[non_exhaustive]
          38  +
pub struct FetchPageResultBuilder {
          39  +
    pub(crate) page: ::std::option::Option<crate::types::Page>,
          40  +
    pub(crate) timing_information: ::std::option::Option<crate::types::TimingInformation>,
          41  +
    pub(crate) consumed_ios: ::std::option::Option<crate::types::IoUsage>,
          42  +
}
          43  +
impl FetchPageResultBuilder {
          44  +
    /// <p>Contains details of the fetched page.</p>
          45  +
    pub fn page(mut self, input: crate::types::Page) -> Self {
          46  +
        self.page = ::std::option::Option::Some(input);
          47  +
        self
          48  +
    }
          49  +
    /// <p>Contains details of the fetched page.</p>
          50  +
    pub fn set_page(mut self, input: ::std::option::Option<crate::types::Page>) -> Self {
          51  +
        self.page = input;
          52  +
        self
          53  +
    }
          54  +
    /// <p>Contains details of the fetched page.</p>
          55  +
    pub fn get_page(&self) -> &::std::option::Option<crate::types::Page> {
          56  +
        &self.page
          57  +
    }
          58  +
    /// <p>Contains server-side performance information for the command.</p>
          59  +
    pub fn timing_information(mut self, input: crate::types::TimingInformation) -> Self {
          60  +
        self.timing_information = ::std::option::Option::Some(input);
          61  +
        self
          62  +
    }
          63  +
    /// <p>Contains server-side performance information for the command.</p>
          64  +
    pub fn set_timing_information(mut self, input: ::std::option::Option<crate::types::TimingInformation>) -> Self {
          65  +
        self.timing_information = input;
          66  +
        self
          67  +
    }
          68  +
    /// <p>Contains server-side performance information for the command.</p>
          69  +
    pub fn get_timing_information(&self) -> &::std::option::Option<crate::types::TimingInformation> {
          70  +
        &self.timing_information
          71  +
    }
          72  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          73  +
    pub fn consumed_ios(mut self, input: crate::types::IoUsage) -> Self {
          74  +
        self.consumed_ios = ::std::option::Option::Some(input);
          75  +
        self
          76  +
    }
          77  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          78  +
    pub fn set_consumed_ios(mut self, input: ::std::option::Option<crate::types::IoUsage>) -> Self {
          79  +
        self.consumed_ios = input;
          80  +
        self
          81  +
    }
          82  +
    /// <p>Contains metrics about the number of I/O requests that were consumed.</p>
          83  +
    pub fn get_consumed_ios(&self) -> &::std::option::Option<crate::types::IoUsage> {
          84  +
        &self.consumed_ios
          85  +
    }
          86  +
    /// Consumes the builder and constructs a [`FetchPageResult`](crate::types::FetchPageResult).
          87  +
    pub fn build(self) -> crate::types::FetchPageResult {
          88  +
        crate::types::FetchPageResult {
          89  +
            page: self.page,
          90  +
            timing_information: self.timing_information,
          91  +
            consumed_ios: self.consumed_ios,
          92  +
        }
          93  +
    }
          94  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_io_usage.rs

@@ -0,1 +0,72 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Contains I/O usage metrics for a command that was invoked.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct IoUsage {
           7  +
    /// <p>The number of read I/O requests that the command made.</p>
           8  +
    pub read_ios: i64,
           9  +
    /// <p>The number of write I/O requests that the command made.</p>
          10  +
    pub write_ios: i64,
          11  +
}
          12  +
impl IoUsage {
          13  +
    /// <p>The number of read I/O requests that the command made.</p>
          14  +
    pub fn read_ios(&self) -> i64 {
          15  +
        self.read_ios
          16  +
    }
          17  +
    /// <p>The number of write I/O requests that the command made.</p>
          18  +
    pub fn write_ios(&self) -> i64 {
          19  +
        self.write_ios
          20  +
    }
          21  +
}
          22  +
impl IoUsage {
          23  +
    /// Creates a new builder-style object to manufacture [`IoUsage`](crate::types::IoUsage).
          24  +
    pub fn builder() -> crate::types::builders::IoUsageBuilder {
          25  +
        crate::types::builders::IoUsageBuilder::default()
          26  +
    }
          27  +
}
          28  +
          29  +
/// A builder for [`IoUsage`](crate::types::IoUsage).
          30  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          31  +
#[non_exhaustive]
          32  +
pub struct IoUsageBuilder {
          33  +
    pub(crate) read_ios: ::std::option::Option<i64>,
          34  +
    pub(crate) write_ios: ::std::option::Option<i64>,
          35  +
}
          36  +
impl IoUsageBuilder {
          37  +
    /// <p>The number of read I/O requests that the command made.</p>
          38  +
    pub fn read_ios(mut self, input: i64) -> Self {
          39  +
        self.read_ios = ::std::option::Option::Some(input);
          40  +
        self
          41  +
    }
          42  +
    /// <p>The number of read I/O requests that the command made.</p>
          43  +
    pub fn set_read_ios(mut self, input: ::std::option::Option<i64>) -> Self {
          44  +
        self.read_ios = input;
          45  +
        self
          46  +
    }
          47  +
    /// <p>The number of read I/O requests that the command made.</p>
          48  +
    pub fn get_read_ios(&self) -> &::std::option::Option<i64> {
          49  +
        &self.read_ios
          50  +
    }
          51  +
    /// <p>The number of write I/O requests that the command made.</p>
          52  +
    pub fn write_ios(mut self, input: i64) -> Self {
          53  +
        self.write_ios = ::std::option::Option::Some(input);
          54  +
        self
          55  +
    }
          56  +
    /// <p>The number of write I/O requests that the command made.</p>
          57  +
    pub fn set_write_ios(mut self, input: ::std::option::Option<i64>) -> Self {
          58  +
        self.write_ios = input;
          59  +
        self
          60  +
    }
          61  +
    /// <p>The number of write I/O requests that the command made.</p>
          62  +
    pub fn get_write_ios(&self) -> &::std::option::Option<i64> {
          63  +
        &self.write_ios
          64  +
    }
          65  +
    /// Consumes the builder and constructs a [`IoUsage`](crate::types::IoUsage).
          66  +
    pub fn build(self) -> crate::types::IoUsage {
          67  +
        crate::types::IoUsage {
          68  +
            read_ios: self.read_ios.unwrap_or_default(),
          69  +
            write_ios: self.write_ios.unwrap_or_default(),
          70  +
        }
          71  +
    }
          72  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_page.rs

@@ -0,1 +0,80 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Contains details of the fetched page.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct Page {
           7  +
    /// <p>A structure that contains values in multiple encoding formats.</p>
           8  +
    pub values: ::std::option::Option<::std::vec::Vec<crate::types::ValueHolder>>,
           9  +
    /// <p>The token of the next page.</p>
          10  +
    pub next_page_token: ::std::option::Option<::std::string::String>,
          11  +
}
          12  +
impl Page {
          13  +
    /// <p>A structure that contains values in multiple encoding formats.</p>
          14  +
    ///
          15  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.values.is_none()`.
          16  +
    pub fn values(&self) -> &[crate::types::ValueHolder] {
          17  +
        self.values.as_deref().unwrap_or_default()
          18  +
    }
          19  +
    /// <p>The token of the next page.</p>
          20  +
    pub fn next_page_token(&self) -> ::std::option::Option<&str> {
          21  +
        self.next_page_token.as_deref()
          22  +
    }
          23  +
}
          24  +
impl Page {
          25  +
    /// Creates a new builder-style object to manufacture [`Page`](crate::types::Page).
          26  +
    pub fn builder() -> crate::types::builders::PageBuilder {
          27  +
        crate::types::builders::PageBuilder::default()
          28  +
    }
          29  +
}
          30  +
          31  +
/// A builder for [`Page`](crate::types::Page).
          32  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          33  +
#[non_exhaustive]
          34  +
pub struct PageBuilder {
          35  +
    pub(crate) values: ::std::option::Option<::std::vec::Vec<crate::types::ValueHolder>>,
          36  +
    pub(crate) next_page_token: ::std::option::Option<::std::string::String>,
          37  +
}
          38  +
impl PageBuilder {
          39  +
    /// Appends an item to `values`.
          40  +
    ///
          41  +
    /// To override the contents of this collection use [`set_values`](Self::set_values).
          42  +
    ///
          43  +
    /// <p>A structure that contains values in multiple encoding formats.</p>
          44  +
    pub fn values(mut self, input: crate::types::ValueHolder) -> Self {
          45  +
        let mut v = self.values.unwrap_or_default();
          46  +
        v.push(input);
          47  +
        self.values = ::std::option::Option::Some(v);
          48  +
        self
          49  +
    }
          50  +
    /// <p>A structure that contains values in multiple encoding formats.</p>
          51  +
    pub fn set_values(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ValueHolder>>) -> Self {
          52  +
        self.values = input;
          53  +
        self
          54  +
    }
          55  +
    /// <p>A structure that contains values in multiple encoding formats.</p>
          56  +
    pub fn get_values(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ValueHolder>> {
          57  +
        &self.values
          58  +
    }
          59  +
    /// <p>The token of the next page.</p>
          60  +
    pub fn next_page_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          61  +
        self.next_page_token = ::std::option::Option::Some(input.into());
          62  +
        self
          63  +
    }
          64  +
    /// <p>The token of the next page.</p>
          65  +
    pub fn set_next_page_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          66  +
        self.next_page_token = input;
          67  +
        self
          68  +
    }
          69  +
    /// <p>The token of the next page.</p>
          70  +
    pub fn get_next_page_token(&self) -> &::std::option::Option<::std::string::String> {
          71  +
        &self.next_page_token
          72  +
    }
          73  +
    /// Consumes the builder and constructs a [`Page`](crate::types::Page).
          74  +
    pub fn build(self) -> crate::types::Page {
          75  +
        crate::types::Page {
          76  +
            values: self.values,
          77  +
            next_page_token: self.next_page_token,
          78  +
        }
          79  +
    }
          80  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_start_session_request.rs

@@ -0,1 +0,59 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Specifies a request to start a new session.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct StartSessionRequest {
           7  +
    /// <p>The name of the ledger to start a new session against.</p>
           8  +
    pub ledger_name: ::std::string::String,
           9  +
}
          10  +
impl StartSessionRequest {
          11  +
    /// <p>The name of the ledger to start a new session against.</p>
          12  +
    pub fn ledger_name(&self) -> &str {
          13  +
        use std::ops::Deref;
          14  +
        self.ledger_name.deref()
          15  +
    }
          16  +
}
          17  +
impl StartSessionRequest {
          18  +
    /// Creates a new builder-style object to manufacture [`StartSessionRequest`](crate::types::StartSessionRequest).
          19  +
    pub fn builder() -> crate::types::builders::StartSessionRequestBuilder {
          20  +
        crate::types::builders::StartSessionRequestBuilder::default()
          21  +
    }
          22  +
}
          23  +
          24  +
/// A builder for [`StartSessionRequest`](crate::types::StartSessionRequest).
          25  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          26  +
#[non_exhaustive]
          27  +
pub struct StartSessionRequestBuilder {
          28  +
    pub(crate) ledger_name: ::std::option::Option<::std::string::String>,
          29  +
}
          30  +
impl StartSessionRequestBuilder {
          31  +
    /// <p>The name of the ledger to start a new session against.</p>
          32  +
    /// This field is required.
          33  +
    pub fn ledger_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          34  +
        self.ledger_name = ::std::option::Option::Some(input.into());
          35  +
        self
          36  +
    }
          37  +
    /// <p>The name of the ledger to start a new session against.</p>
          38  +
    pub fn set_ledger_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          39  +
        self.ledger_name = input;
          40  +
        self
          41  +
    }
          42  +
    /// <p>The name of the ledger to start a new session against.</p>
          43  +
    pub fn get_ledger_name(&self) -> &::std::option::Option<::std::string::String> {
          44  +
        &self.ledger_name
          45  +
    }
          46  +
    /// Consumes the builder and constructs a [`StartSessionRequest`](crate::types::StartSessionRequest).
          47  +
    /// This method will fail if any of the following fields are not set:
          48  +
    /// - [`ledger_name`](crate::types::builders::StartSessionRequestBuilder::ledger_name)
          49  +
    pub fn build(self) -> ::std::result::Result<crate::types::StartSessionRequest, ::aws_smithy_types::error::operation::BuildError> {
          50  +
        ::std::result::Result::Ok(crate::types::StartSessionRequest {
          51  +
            ledger_name: self.ledger_name.ok_or_else(|| {
          52  +
                ::aws_smithy_types::error::operation::BuildError::missing_field(
          53  +
                    "ledger_name",
          54  +
                    "ledger_name was not specified but it is required when building StartSessionRequest",
          55  +
                )
          56  +
            })?,
          57  +
        })
          58  +
    }
          59  +
}

tmp-codegen-diff/aws-sdk/sdk/qldbsession/src/types/_start_session_result.rs

@@ -0,1 +0,72 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// <p>Contains the details of the started session.</p>
           4  +
#[non_exhaustive]
           5  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           6  +
pub struct StartSessionResult {
           7  +
    /// <p>Session token of the started session. This <code>SessionToken</code> is required for every subsequent command that is issued during the current session.</p>
           8  +
    pub session_token: ::std::option::Option<::std::string::String>,
           9  +
    /// <p>Contains server-side performance information for the command.</p>
          10  +
    pub timing_information: ::std::option::Option<crate::types::TimingInformation>,
          11  +
}
          12  +
impl StartSessionResult {
          13  +
    /// <p>Session token of the started session. This <code>SessionToken</code> is required for every subsequent command that is issued during the current session.</p>
          14  +
    pub fn session_token(&self) -> ::std::option::Option<&str> {
          15  +
        self.session_token.as_deref()
          16  +
    }
          17  +
    /// <p>Contains server-side performance information for the command.</p>
          18  +
    pub fn timing_information(&self) -> ::std::option::Option<&crate::types::TimingInformation> {
          19  +
        self.timing_information.as_ref()
          20  +
    }
          21  +
}
          22  +
impl StartSessionResult {
          23  +
    /// Creates a new builder-style object to manufacture [`StartSessionResult`](crate::types::StartSessionResult).
          24  +
    pub fn builder() -> crate::types::builders::StartSessionResultBuilder {
          25  +
        crate::types::builders::StartSessionResultBuilder::default()
          26  +
    }
          27  +
}
          28  +
          29  +
/// A builder for [`StartSessionResult`](crate::types::StartSessionResult).
          30  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
          31  +
#[non_exhaustive]
          32  +
pub struct StartSessionResultBuilder {
          33  +
    pub(crate) session_token: ::std::option::Option<::std::string::String>,
          34  +
    pub(crate) timing_information: ::std::option::Option<crate::types::TimingInformation>,
          35  +
}
          36  +
impl StartSessionResultBuilder {
          37  +
    /// <p>Session token of the started session. This <code>SessionToken</code> is required for every subsequent command that is issued during the current session.</p>
          38  +
    pub fn session_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
          39  +
        self.session_token = ::std::option::Option::Some(input.into());
          40  +
        self
          41  +
    }
          42  +
    /// <p>Session token of the started session. This <code>SessionToken</code> is required for every subsequent command that is issued during the current session.</p>
          43  +
    pub fn set_session_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
          44  +
        self.session_token = input;
          45  +
        self
          46  +
    }
          47  +
    /// <p>Session token of the started session. This <code>SessionToken</code> is required for every subsequent command that is issued during the current session.</p>
          48  +
    pub fn get_session_token(&self) -> &::std::option::Option<::std::string::String> {
          49  +
        &self.session_token
          50  +
    }
          51  +
    /// <p>Contains server-side performance information for the command.</p>
          52  +
    pub fn timing_information(mut self, input: crate::types::TimingInformation) -> Self {
          53  +
        self.timing_information = ::std::option::Option::Some(input);
          54  +
        self
          55  +
    }
          56  +
    /// <p>Contains server-side performance information for the command.</p>
          57  +
    pub fn set_timing_information(mut self, input: ::std::option::Option<crate::types::TimingInformation>) -> Self {
          58  +
        self.timing_information = input;
          59  +
        self
          60  +
    }
          61  +
    /// <p>Contains server-side performance information for the command.</p>
          62  +
    pub fn get_timing_information(&self) -> &::std::option::Option<crate::types::TimingInformation> {
          63  +
        &self.timing_information
          64  +
    }
          65  +
    /// Consumes the builder and constructs a [`StartSessionResult`](crate::types::StartSessionResult).
          66  +
    pub fn build(self) -> crate::types::StartSessionResult {
          67  +
        crate::types::StartSessionResult {
          68  +
            session_token: self.session_token,
          69  +
            timing_information: self.timing_information,
          70  +
        }
          71  +
    }
          72  +
}