/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/qldb-session/QLDBSession_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/core/utils/Array.h> #include <aws/qldb-session/model/TimingInformation.h> #include <aws/qldb-session/model/IOUsage.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QLDBSession { namespace Model { /** * <p>Contains the details of the committed transaction.</p><p><h3>See Also:</h3> * <a * href="http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/CommitTransactionResult">AWS * API Reference</a></p> */ class CommitTransactionResult { public: AWS_QLDBSESSION_API CommitTransactionResult(); AWS_QLDBSESSION_API CommitTransactionResult(Aws::Utils::Json::JsonView jsonValue); AWS_QLDBSESSION_API CommitTransactionResult& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_QLDBSESSION_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The transaction ID of the committed transaction.</p> */ inline const Aws::String& GetTransactionId() const{ return m_transactionId; } /** * <p>The transaction ID of the committed transaction.</p> */ inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; } /** * <p>The transaction ID of the committed transaction.</p> */ inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; } /** * <p>The transaction ID of the committed transaction.</p> */ inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); } /** * <p>The transaction ID of the committed transaction.</p> */ inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); } /** * <p>The transaction ID of the committed transaction.</p> */ inline CommitTransactionResult& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;} /** * <p>The transaction ID of the committed transaction.</p> */ inline CommitTransactionResult& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;} /** * <p>The transaction ID of the committed transaction.</p> */ inline CommitTransactionResult& WithTransactionId(const char* value) { SetTransactionId(value); return *this;} /** * <p>The commit digest of the committed transaction.</p> */ inline const Aws::Utils::ByteBuffer& GetCommitDigest() const{ return m_commitDigest; } /** * <p>The commit digest of the committed transaction.</p> */ inline bool CommitDigestHasBeenSet() const { return m_commitDigestHasBeenSet; } /** * <p>The commit digest of the committed transaction.</p> */ inline void SetCommitDigest(const Aws::Utils::ByteBuffer& value) { m_commitDigestHasBeenSet = true; m_commitDigest = value; } /** * <p>The commit digest of the committed transaction.</p> */ inline void SetCommitDigest(Aws::Utils::ByteBuffer&& value) { m_commitDigestHasBeenSet = true; m_commitDigest = std::move(value); } /** * <p>The commit digest of the committed transaction.</p> */ inline CommitTransactionResult& WithCommitDigest(const Aws::Utils::ByteBuffer& value) { SetCommitDigest(value); return *this;} /** * <p>The commit digest of the committed transaction.</p> */ inline CommitTransactionResult& WithCommitDigest(Aws::Utils::ByteBuffer&& value) { SetCommitDigest(std::move(value)); return *this;} /** * <p>Contains server-side performance information for the command.</p> */ inline const TimingInformation& GetTimingInformation() const{ return m_timingInformation; } /** * <p>Contains server-side performance information for the command.</p> */ inline bool TimingInformationHasBeenSet() const { return m_timingInformationHasBeenSet; } /** * <p>Contains server-side performance information for the command.</p> */ inline void SetTimingInformation(const TimingInformation& value) { m_timingInformationHasBeenSet = true; m_timingInformation = value; } /** * <p>Contains server-side performance information for the command.</p> */ inline void SetTimingInformation(TimingInformation&& value) { m_timingInformationHasBeenSet = true; m_timingInformation = std::move(value); } /** * <p>Contains server-side performance information for the command.</p> */ inline CommitTransactionResult& WithTimingInformation(const TimingInformation& value) { SetTimingInformation(value); return *this;} /** * <p>Contains server-side performance information for the command.</p> */ inline CommitTransactionResult& WithTimingInformation(TimingInformation&& value) { SetTimingInformation(std::move(value)); return *this;} /** * <p>Contains metrics about the number of I/O requests that were consumed.</p> */ inline const IOUsage& GetConsumedIOs() const{ return m_consumedIOs; } /** * <p>Contains metrics about the number of I/O requests that were consumed.</p> */ inline bool ConsumedIOsHasBeenSet() const { return m_consumedIOsHasBeenSet; } /** * <p>Contains metrics about the number of I/O requests that were consumed.</p> */ inline void SetConsumedIOs(const IOUsage& value) { m_consumedIOsHasBeenSet = true; m_consumedIOs = value; } /** * <p>Contains metrics about the number of I/O requests that were consumed.</p> */ inline void SetConsumedIOs(IOUsage&& value) { m_consumedIOsHasBeenSet = true; m_consumedIOs = std::move(value); } /** * <p>Contains metrics about the number of I/O requests that were consumed.</p> */ inline CommitTransactionResult& WithConsumedIOs(const IOUsage& value) { SetConsumedIOs(value); return *this;} /** * <p>Contains metrics about the number of I/O requests that were consumed.</p> */ inline CommitTransactionResult& WithConsumedIOs(IOUsage&& value) { SetConsumedIOs(std::move(value)); return *this;} private: Aws::String m_transactionId; bool m_transactionIdHasBeenSet = false; Aws::Utils::ByteBuffer m_commitDigest; bool m_commitDigestHasBeenSet = false; TimingInformation m_timingInformation; bool m_timingInformationHasBeenSet = false; IOUsage m_consumedIOs; bool m_consumedIOsHasBeenSet = false; }; } // namespace Model } // namespace QLDBSession } // namespace Aws