This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-qldb-session/include/aws/qldb-session/model/SendCommandResult.h

252 lines
8.7 KiB
C++

/**
* 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/qldb-session/model/StartSessionResult.h>
#include <aws/qldb-session/model/StartTransactionResult.h>
#include <aws/qldb-session/model/EndSessionResult.h>
#include <aws/qldb-session/model/CommitTransactionResult.h>
#include <aws/qldb-session/model/AbortTransactionResult.h>
#include <aws/qldb-session/model/ExecuteStatementResult.h>
#include <aws/qldb-session/model/FetchPageResult.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
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<Aws::Utils::Json::JsonValue>& result);
SendCommandResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Contains the details of the started session that includes a session token.
* This <code>SessionToken</code> is required for every subsequent command that is
* issued during the current session.</p>
*/
inline const StartSessionResult& GetStartSession() const{ return m_startSession; }
/**
* <p>Contains the details of the started session that includes a session token.
* This <code>SessionToken</code> is required for every subsequent command that is
* issued during the current session.</p>
*/
inline void SetStartSession(const StartSessionResult& value) { m_startSession = value; }
/**
* <p>Contains the details of the started session that includes a session token.
* This <code>SessionToken</code> is required for every subsequent command that is
* issued during the current session.</p>
*/
inline void SetStartSession(StartSessionResult&& value) { m_startSession = std::move(value); }
/**
* <p>Contains the details of the started session that includes a session token.
* This <code>SessionToken</code> is required for every subsequent command that is
* issued during the current session.</p>
*/
inline SendCommandResult& WithStartSession(const StartSessionResult& value) { SetStartSession(value); return *this;}
/**
* <p>Contains the details of the started session that includes a session token.
* This <code>SessionToken</code> is required for every subsequent command that is
* issued during the current session.</p>
*/
inline SendCommandResult& WithStartSession(StartSessionResult&& value) { SetStartSession(std::move(value)); return *this;}
/**
* <p>Contains the details of the started transaction.</p>
*/
inline const StartTransactionResult& GetStartTransaction() const{ return m_startTransaction; }
/**
* <p>Contains the details of the started transaction.</p>
*/
inline void SetStartTransaction(const StartTransactionResult& value) { m_startTransaction = value; }
/**
* <p>Contains the details of the started transaction.</p>
*/
inline void SetStartTransaction(StartTransactionResult&& value) { m_startTransaction = std::move(value); }
/**
* <p>Contains the details of the started transaction.</p>
*/
inline SendCommandResult& WithStartTransaction(const StartTransactionResult& value) { SetStartTransaction(value); return *this;}
/**
* <p>Contains the details of the started transaction.</p>
*/
inline SendCommandResult& WithStartTransaction(StartTransactionResult&& value) { SetStartTransaction(std::move(value)); return *this;}
/**
* <p>Contains the details of the ended session.</p>
*/
inline const EndSessionResult& GetEndSession() const{ return m_endSession; }
/**
* <p>Contains the details of the ended session.</p>
*/
inline void SetEndSession(const EndSessionResult& value) { m_endSession = value; }
/**
* <p>Contains the details of the ended session.</p>
*/
inline void SetEndSession(EndSessionResult&& value) { m_endSession = std::move(value); }
/**
* <p>Contains the details of the ended session.</p>
*/
inline SendCommandResult& WithEndSession(const EndSessionResult& value) { SetEndSession(value); return *this;}
/**
* <p>Contains the details of the ended session.</p>
*/
inline SendCommandResult& WithEndSession(EndSessionResult&& value) { SetEndSession(std::move(value)); return *this;}
/**
* <p>Contains the details of the committed transaction.</p>
*/
inline const CommitTransactionResult& GetCommitTransaction() const{ return m_commitTransaction; }
/**
* <p>Contains the details of the committed transaction.</p>
*/
inline void SetCommitTransaction(const CommitTransactionResult& value) { m_commitTransaction = value; }
/**
* <p>Contains the details of the committed transaction.</p>
*/
inline void SetCommitTransaction(CommitTransactionResult&& value) { m_commitTransaction = std::move(value); }
/**
* <p>Contains the details of the committed transaction.</p>
*/
inline SendCommandResult& WithCommitTransaction(const CommitTransactionResult& value) { SetCommitTransaction(value); return *this;}
/**
* <p>Contains the details of the committed transaction.</p>
*/
inline SendCommandResult& WithCommitTransaction(CommitTransactionResult&& value) { SetCommitTransaction(std::move(value)); return *this;}
/**
* <p>Contains the details of the aborted transaction.</p>
*/
inline const AbortTransactionResult& GetAbortTransaction() const{ return m_abortTransaction; }
/**
* <p>Contains the details of the aborted transaction.</p>
*/
inline void SetAbortTransaction(const AbortTransactionResult& value) { m_abortTransaction = value; }
/**
* <p>Contains the details of the aborted transaction.</p>
*/
inline void SetAbortTransaction(AbortTransactionResult&& value) { m_abortTransaction = std::move(value); }
/**
* <p>Contains the details of the aborted transaction.</p>
*/
inline SendCommandResult& WithAbortTransaction(const AbortTransactionResult& value) { SetAbortTransaction(value); return *this;}
/**
* <p>Contains the details of the aborted transaction.</p>
*/
inline SendCommandResult& WithAbortTransaction(AbortTransactionResult&& value) { SetAbortTransaction(std::move(value)); return *this;}
/**
* <p>Contains the details of the executed statement.</p>
*/
inline const ExecuteStatementResult& GetExecuteStatement() const{ return m_executeStatement; }
/**
* <p>Contains the details of the executed statement.</p>
*/
inline void SetExecuteStatement(const ExecuteStatementResult& value) { m_executeStatement = value; }
/**
* <p>Contains the details of the executed statement.</p>
*/
inline void SetExecuteStatement(ExecuteStatementResult&& value) { m_executeStatement = std::move(value); }
/**
* <p>Contains the details of the executed statement.</p>
*/
inline SendCommandResult& WithExecuteStatement(const ExecuteStatementResult& value) { SetExecuteStatement(value); return *this;}
/**
* <p>Contains the details of the executed statement.</p>
*/
inline SendCommandResult& WithExecuteStatement(ExecuteStatementResult&& value) { SetExecuteStatement(std::move(value)); return *this;}
/**
* <p>Contains the details of the fetched page.</p>
*/
inline const FetchPageResult& GetFetchPage() const{ return m_fetchPage; }
/**
* <p>Contains the details of the fetched page.</p>
*/
inline void SetFetchPage(const FetchPageResult& value) { m_fetchPage = value; }
/**
* <p>Contains the details of the fetched page.</p>
*/
inline void SetFetchPage(FetchPageResult&& value) { m_fetchPage = std::move(value); }
/**
* <p>Contains the details of the fetched page.</p>
*/
inline SendCommandResult& WithFetchPage(const FetchPageResult& value) { SetFetchPage(value); return *this;}
/**
* <p>Contains the details of the fetched page.</p>
*/
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