/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace QLDBSession { namespace Model { class AWS_QLDBSESSION_API SendCommandResult { public: SendCommandResult(); SendCommandResult(const Aws::AmazonWebServiceResult& result); SendCommandResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Contains the details of the started session that includes a session token. * This SessionToken is required for every subsequent command that is * issued during the current session.

*/ inline const StartSessionResult& GetStartSession() const{ return m_startSession; } /** *

Contains the details of the started session that includes a session token. * This SessionToken is required for every subsequent command that is * issued during the current session.

*/ inline void SetStartSession(const StartSessionResult& value) { m_startSession = value; } /** *

Contains the details of the started session that includes a session token. * This SessionToken is required for every subsequent command that is * issued during the current session.

*/ inline void SetStartSession(StartSessionResult&& value) { m_startSession = std::move(value); } /** *

Contains the details of the started session that includes a session token. * This SessionToken is required for every subsequent command that is * issued during the current session.

*/ inline SendCommandResult& WithStartSession(const StartSessionResult& value) { SetStartSession(value); return *this;} /** *

Contains the details of the started session that includes a session token. * This SessionToken is required for every subsequent command that is * issued during the current session.

*/ inline SendCommandResult& WithStartSession(StartSessionResult&& value) { SetStartSession(std::move(value)); return *this;} /** *

Contains the details of the started transaction.

*/ inline const StartTransactionResult& GetStartTransaction() const{ return m_startTransaction; } /** *

Contains the details of the started transaction.

*/ inline void SetStartTransaction(const StartTransactionResult& value) { m_startTransaction = value; } /** *

Contains the details of the started transaction.

*/ inline void SetStartTransaction(StartTransactionResult&& value) { m_startTransaction = std::move(value); } /** *

Contains the details of the started transaction.

*/ inline SendCommandResult& WithStartTransaction(const StartTransactionResult& value) { SetStartTransaction(value); return *this;} /** *

Contains the details of the started transaction.

*/ inline SendCommandResult& WithStartTransaction(StartTransactionResult&& value) { SetStartTransaction(std::move(value)); return *this;} /** *

Contains the details of the ended session.

*/ inline const EndSessionResult& GetEndSession() const{ return m_endSession; } /** *

Contains the details of the ended session.

*/ inline void SetEndSession(const EndSessionResult& value) { m_endSession = value; } /** *

Contains the details of the ended session.

*/ inline void SetEndSession(EndSessionResult&& value) { m_endSession = std::move(value); } /** *

Contains the details of the ended session.

*/ inline SendCommandResult& WithEndSession(const EndSessionResult& value) { SetEndSession(value); return *this;} /** *

Contains the details of the ended session.

*/ inline SendCommandResult& WithEndSession(EndSessionResult&& value) { SetEndSession(std::move(value)); return *this;} /** *

Contains the details of the committed transaction.

*/ inline const CommitTransactionResult& GetCommitTransaction() const{ return m_commitTransaction; } /** *

Contains the details of the committed transaction.

*/ inline void SetCommitTransaction(const CommitTransactionResult& value) { m_commitTransaction = value; } /** *

Contains the details of the committed transaction.

*/ inline void SetCommitTransaction(CommitTransactionResult&& value) { m_commitTransaction = std::move(value); } /** *

Contains the details of the committed transaction.

*/ inline SendCommandResult& WithCommitTransaction(const CommitTransactionResult& value) { SetCommitTransaction(value); return *this;} /** *

Contains the details of the committed transaction.

*/ inline SendCommandResult& WithCommitTransaction(CommitTransactionResult&& value) { SetCommitTransaction(std::move(value)); return *this;} /** *

Contains the details of the aborted transaction.

*/ inline const AbortTransactionResult& GetAbortTransaction() const{ return m_abortTransaction; } /** *

Contains the details of the aborted transaction.

*/ inline void SetAbortTransaction(const AbortTransactionResult& value) { m_abortTransaction = value; } /** *

Contains the details of the aborted transaction.

*/ inline void SetAbortTransaction(AbortTransactionResult&& value) { m_abortTransaction = std::move(value); } /** *

Contains the details of the aborted transaction.

*/ inline SendCommandResult& WithAbortTransaction(const AbortTransactionResult& value) { SetAbortTransaction(value); return *this;} /** *

Contains the details of the aborted transaction.

*/ inline SendCommandResult& WithAbortTransaction(AbortTransactionResult&& value) { SetAbortTransaction(std::move(value)); return *this;} /** *

Contains the details of the executed statement.

*/ inline const ExecuteStatementResult& GetExecuteStatement() const{ return m_executeStatement; } /** *

Contains the details of the executed statement.

*/ inline void SetExecuteStatement(const ExecuteStatementResult& value) { m_executeStatement = value; } /** *

Contains the details of the executed statement.

*/ inline void SetExecuteStatement(ExecuteStatementResult&& value) { m_executeStatement = std::move(value); } /** *

Contains the details of the executed statement.

*/ inline SendCommandResult& WithExecuteStatement(const ExecuteStatementResult& value) { SetExecuteStatement(value); return *this;} /** *

Contains the details of the executed statement.

*/ inline SendCommandResult& WithExecuteStatement(ExecuteStatementResult&& value) { SetExecuteStatement(std::move(value)); return *this;} /** *

Contains the details of the fetched page.

*/ inline const FetchPageResult& GetFetchPage() const{ return m_fetchPage; } /** *

Contains the details of the fetched page.

*/ inline void SetFetchPage(const FetchPageResult& value) { m_fetchPage = value; } /** *

Contains the details of the fetched page.

*/ inline void SetFetchPage(FetchPageResult&& value) { m_fetchPage = std::move(value); } /** *

Contains the details of the fetched page.

*/ inline SendCommandResult& WithFetchPage(const FetchPageResult& value) { SetFetchPage(value); return *this;} /** *

Contains the details of the fetched page.

*/ inline SendCommandResult& WithFetchPage(FetchPageResult&& value) { SetFetchPage(std::move(value)); return *this;} private: StartSessionResult m_startSession; StartTransactionResult m_startTransaction; EndSessionResult m_endSession; CommitTransactionResult m_commitTransaction; AbortTransactionResult m_abortTransaction; ExecuteStatementResult m_executeStatement; FetchPageResult m_fetchPage; }; } // namespace Model } // namespace QLDBSession } // namespace Aws