AWS SDK for C++  1.9.68
AWS SDK for C++
CancelQueryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace TimestreamQuery
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CancelQuery"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetQueryId() const{ return m_queryId; }
42 
47  inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
48 
53  inline void SetQueryId(const Aws::String& value) { m_queryIdHasBeenSet = true; m_queryId = value; }
54 
59  inline void SetQueryId(Aws::String&& value) { m_queryIdHasBeenSet = true; m_queryId = std::move(value); }
60 
65  inline void SetQueryId(const char* value) { m_queryIdHasBeenSet = true; m_queryId.assign(value); }
66 
71  inline CancelQueryRequest& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;}
72 
77  inline CancelQueryRequest& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;}
78 
83  inline CancelQueryRequest& WithQueryId(const char* value) { SetQueryId(value); return *this;}
84 
85  private:
86 
87  Aws::String m_queryId;
88  bool m_queryIdHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace TimestreamQuery
93 } // namespace Aws
Aws::TimestreamQuery::Model::CancelQueryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CancelQueryRequest.h:30
AWS_TIMESTREAMQUERY_API
#define AWS_TIMESTREAMQUERY_API
Definition: TimestreamQuery_EXPORTS.h:28
Aws::TimestreamQuery::Model::CancelQueryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::TimestreamQuery::Model::CancelQueryRequest::SetQueryId
void SetQueryId(const Aws::String &value)
Definition: CancelQueryRequest.h:53
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::TimestreamQuery::Model::CancelQueryRequest::WithQueryId
CancelQueryRequest & WithQueryId(const Aws::String &value)
Definition: CancelQueryRequest.h:71
Aws::TimestreamQuery::Model::CancelQueryRequest::SetQueryId
void SetQueryId(Aws::String &&value)
Definition: CancelQueryRequest.h:59
TimestreamQuery_EXPORTS.h
Aws::TimestreamQuery::Model::CancelQueryRequest::SetQueryId
void SetQueryId(const char *value)
Definition: CancelQueryRequest.h:65
Aws::TimestreamQuery::Model::CancelQueryRequest
Definition: CancelQueryRequest.h:22
Aws::TimestreamQuery::Model::CancelQueryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
TimestreamQueryRequest.h
Aws::TimestreamQuery::Model::CancelQueryRequest::CancelQueryRequest
CancelQueryRequest()
Aws::TimestreamQuery::Model::CancelQueryRequest::QueryIdHasBeenSet
bool QueryIdHasBeenSet() const
Definition: CancelQueryRequest.h:47
AWSString.h
Aws::TimestreamQuery::Model::CancelQueryRequest::GetQueryId
const Aws::String & GetQueryId() const
Definition: CancelQueryRequest.h:41
Aws::TimestreamQuery::Model::CancelQueryRequest::WithQueryId
CancelQueryRequest & WithQueryId(const char *value)
Definition: CancelQueryRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::TimestreamQuery::Model::CancelQueryRequest::WithQueryId
CancelQueryRequest & WithQueryId(Aws::String &&value)
Definition: CancelQueryRequest.h:77
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::TimestreamQuery::TimestreamQueryRequest
Definition: TimestreamQueryRequest.h:17