-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Garya/ad 439/remove timestream from tscommunication class (#10)
* [AD-451] Replace AWS ColumnInfo and Row Type with User Types https:/bitquill.atlassian.net/browse/AD-451 * [AD-451] Replace AWS ColumnInfo and Row Type with User Types https:/bitquill.atlassian.net/browse/AD-451 * [AD-451] Correct pedantic syntax https:/bitquill.atlassian.net/browse/AD-451 * [AD-451] Correct pedantic syntax https:/bitquill.atlassian.net/browse/AD-451 * remove datum and timeseries datatype parser * removing extra include * Remove 'TimestreamQuery_EXPORTS.h'. * Remove timeseries related data members and methods. * Add new file QueryStatus.(h,cpp). * Add new file Endpoint.(h,cpp). * Add new file DescribeEndpointsResult.(h,cpp). * Add new file DescribeEndpointsResult.(h,cpp). * Add QueryRequest files. * Add new file DatabaseQueryErrors.(c,cpp). * Add new file DatabaseQueryErrorMarshaller.(h,cpp) * Add new file DatabaseQueryEndpoint.(h,cpp). * Add new file QueryResult.(h,cpp). * Add new file DescribeEndpointsRequest.(h,cpp). * Add new files CancelQueryResult.(h,cpp) and DatabaseQueryClient.(h,cpp). * Fix namespace bug. * Fix error with Endpoint class. * Fix comments in CancelQueryRequest.h. * Fix comments in CancelQueryResult.h. * Remove dependency on aws/timestream-query/... and replace user-defined classes. * Remove word 'Amazon Timestream', add 'TODO' comments. * Remove word 'timestream', add 'TODO' comments. * Remove region authentication field. * Replace 'TSCommunication' with 'DBCommunication'. * Revert "Replace 'TSCommunication' with 'DBCommunication'." This reverts commit 0cc632469fd3da69b9538ad0df10d9903a5dd30f. * Revert "Remove region authentication field." This reverts commit 701e5876af7fb8746742de0519d1a83949f61cce. * Revert "Remove word 'timestream', add 'TODO' comments." This reverts commit 10fb0206b48f39a57c64cb69398b21e97ed1e75e. * Revert "Remove word 'Amazon Timestream', add 'TODO' comments." This reverts commit eb300dfb810bd62ebc1f18d12da9b1a2c9e98072. * Remove IT_REGION. * Replace 'TSCommunication' with 'DBCommunication'. * Change 'Timestream_' to 'Database_'. Co-authored-by: Bruce Irschick <[email protected]> Co-authored-by: affonsov <[email protected]>
- Loading branch information
1 parent
aee2531
commit ebe39df
Showing
44 changed files
with
2,593 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#include <aws/core/utils/json/JsonSerializer.h> | ||
#include "CancelQueryRequest.h" | ||
|
||
#include <utility> | ||
|
||
using namespace Aws::Utils::Json; | ||
using namespace Aws::Utils; | ||
|
||
CancelQueryRequest::CancelQueryRequest() : m_queryIdHasBeenSet(false) { | ||
} | ||
|
||
Aws::String CancelQueryRequest::SerializePayload() const { | ||
JsonValue payload; | ||
|
||
if (m_queryIdHasBeenSet) { | ||
payload.WithString("QueryId", m_queryId); | ||
} | ||
|
||
return payload.View().WriteReadable(); | ||
} | ||
|
||
Aws::Http::HeaderValueCollection CancelQueryRequest::GetRequestSpecificHeaders() | ||
const { | ||
Aws::Http::HeaderValueCollection headers; | ||
headers.insert(Aws::Http::HeaderValuePair( | ||
"X-Amz-Target", "Timestream_20181101.CancelQuery")); | ||
return headers; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#pragma once | ||
#include <aws/core/utils/memory/stl/AWSString.h> | ||
|
||
#include "DatabaseQueryRequest.h" | ||
|
||
#include <utility> | ||
|
||
class CancelQueryRequest : public DatabaseQueryRequest { | ||
public: | ||
CancelQueryRequest(); | ||
|
||
// Service request name is the Operation name which will send this request | ||
// out, each operation should has unique request name, so that we can get | ||
// operation's name from this request. Note: this is not true for response, | ||
// multiple operations may have the same response name, so we can not get | ||
// operation's name from response. | ||
inline virtual const char* GetServiceRequestName() const override { | ||
return "CancelQuery"; | ||
} | ||
|
||
Aws::String SerializePayload() const override; | ||
|
||
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; | ||
|
||
/** | ||
* <p> The id of the query that needs to be cancelled. <code>QueryID</code> | ||
* is returned as part of QueryResult. </p> | ||
*/ | ||
inline const Aws::String& GetQueryId() const { | ||
return m_queryId; | ||
} | ||
|
||
/** | ||
* <p> The id of the query that needs to be cancelled. <code>QueryID</code> | ||
* is returned as part of QueryResult. </p> | ||
*/ | ||
inline bool QueryIdHasBeenSet() const { | ||
return m_queryIdHasBeenSet; | ||
} | ||
|
||
/** | ||
* <p> The id of the query that needs to be cancelled. <code>QueryID</code> | ||
* is returned as part of QueryResult. </p> | ||
*/ | ||
inline void SetQueryId(const Aws::String& value) { | ||
m_queryIdHasBeenSet = true; | ||
m_queryId = value; | ||
} | ||
|
||
/** | ||
* <p> The id of the query that needs to be cancelled. <code>QueryID</code> | ||
* is returned as part of QueryResult. </p> | ||
*/ | ||
inline void SetQueryId(Aws::String&& value) { | ||
m_queryIdHasBeenSet = true; | ||
m_queryId = std::move(value); | ||
} | ||
|
||
/** | ||
* <p> The id of the query that needs to be cancelled. <code>QueryID</code> | ||
* is returned as part of QueryResult. </p> | ||
*/ | ||
inline void SetQueryId(const char* value) { | ||
m_queryIdHasBeenSet = true; | ||
m_queryId.assign(value); | ||
} | ||
|
||
/** | ||
* <p> The id of the query that needs to be cancelled. <code>QueryID</code> | ||
* is returned as part of QueryResult. </p> | ||
*/ | ||
inline CancelQueryRequest& WithQueryId(const Aws::String& value) { | ||
SetQueryId(value); | ||
return *this; | ||
} | ||
|
||
/** | ||
* <p> The id of the query that needs to be cancelled. <code>QueryID</code> | ||
* is returned as part of QueryResult. </p> | ||
*/ | ||
inline CancelQueryRequest& WithQueryId(Aws::String&& value) { | ||
SetQueryId(std::move(value)); | ||
return *this; | ||
} | ||
|
||
/** | ||
* <p> The id of the query that needs to be cancelled. <code>QueryID</code> | ||
* is returned as part of QueryResult. </p> | ||
*/ | ||
inline CancelQueryRequest& WithQueryId(const char* value) { | ||
SetQueryId(value); | ||
return *this; | ||
} | ||
|
||
private: | ||
Aws::String m_queryId; | ||
bool m_queryIdHasBeenSet; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#include <aws/core/AmazonWebServiceResult.h> | ||
#include <aws/core/utils/StringUtils.h> | ||
#include <aws/core/utils/UnreferencedParam.h> | ||
#include <aws/core/utils/json/JsonSerializer.h> | ||
#include "CancelQueryResult.h" | ||
|
||
#include <utility> | ||
|
||
using namespace Aws::Utils::Json; | ||
using namespace Aws::Utils; | ||
using namespace Aws; | ||
|
||
CancelQueryResult::CancelQueryResult() { | ||
} | ||
|
||
CancelQueryResult::CancelQueryResult( | ||
const Aws::AmazonWebServiceResult< JsonValue >& result) { | ||
*this = result; | ||
} | ||
|
||
CancelQueryResult& CancelQueryResult::operator=( | ||
const Aws::AmazonWebServiceResult< JsonValue >& result) { | ||
JsonView jsonValue = result.GetPayload().View(); | ||
if (jsonValue.ValueExists("CancellationMessage")) { | ||
m_cancellationMessage = jsonValue.GetString("CancellationMessage"); | ||
} | ||
|
||
return *this; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#pragma once | ||
#include <aws/core/utils/memory/stl/AWSString.h> | ||
|
||
#include <utility> | ||
|
||
namespace Aws { | ||
template < typename RESULT_TYPE > | ||
class AmazonWebServiceResult; | ||
|
||
namespace Utils { | ||
namespace Json { | ||
class JsonValue; | ||
} // namespace Json | ||
} // namespace Utils | ||
} // namespace Aws | ||
|
||
class CancelQueryResult { | ||
public: | ||
CancelQueryResult(); | ||
CancelQueryResult( | ||
const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue >& | ||
result); | ||
CancelQueryResult& operator=( | ||
const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue >& | ||
result); | ||
|
||
/** | ||
* <p> A <code>CancellationMessage</code> is returned when a | ||
* <code>CancelQuery</code> request for the query specified by | ||
* <code>QueryId</code> has already been issued. </p> | ||
*/ | ||
inline const Aws::String& GetCancellationMessage() const { | ||
return m_cancellationMessage; | ||
} | ||
|
||
/** | ||
* <p> A <code>CancellationMessage</code> is returned when a | ||
* <code>CancelQuery</code> request for the query specified by | ||
* <code>QueryId</code> has already been issued. </p> | ||
*/ | ||
inline void SetCancellationMessage(const Aws::String& value) { | ||
m_cancellationMessage = value; | ||
} | ||
|
||
/** | ||
* <p> A <code>CancellationMessage</code> is returned when a | ||
* <code>CancelQuery</code> request for the query specified by | ||
* <code>QueryId</code> has already been issued. </p> | ||
*/ | ||
inline void SetCancellationMessage(Aws::String&& value) { | ||
m_cancellationMessage = std::move(value); | ||
} | ||
|
||
/** | ||
* <p> A <code>CancellationMessage</code> is returned when a | ||
* <code>CancelQuery</code> request for the query specified by | ||
* <code>QueryId</code> has already been issued. </p> | ||
*/ | ||
inline void SetCancellationMessage(const char* value) { | ||
m_cancellationMessage.assign(value); | ||
} | ||
|
||
/** | ||
* <p> A <code>CancellationMessage</code> is returned when a | ||
* <code>CancelQuery</code> request for the query specified by | ||
* <code>QueryId</code> has already been issued. </p> | ||
*/ | ||
inline CancelQueryResult& WithCancellationMessage( | ||
const Aws::String& value) { | ||
SetCancellationMessage(value); | ||
return *this; | ||
} | ||
|
||
/** | ||
* <p> A <code>CancellationMessage</code> is returned when a | ||
* <code>CancelQuery</code> request for the query specified by | ||
* <code>QueryId</code> has already been issued. </p> | ||
*/ | ||
inline CancelQueryResult& WithCancellationMessage(Aws::String&& value) { | ||
SetCancellationMessage(std::move(value)); | ||
return *this; | ||
} | ||
|
||
/** | ||
* <p> A <code>CancellationMessage</code> is returned when a | ||
* <code>CancelQuery</code> request for the query specified by | ||
* <code>QueryId</code> has already been issued. </p> | ||
*/ | ||
inline CancelQueryResult& WithCancellationMessage(const char* value) { | ||
SetCancellationMessage(value); | ||
return *this; | ||
} | ||
|
||
private: | ||
Aws::String m_cancellationMessage; | ||
}; |
Oops, something went wrong.