AWS SDK for C++

AWS SDK for C++ Version 1.11.775

Loading...
Searching...
No Matches
CancelQueryResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/QueryStatus.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CloudTrail {
24namespace Model {
26 public:
27 AWS_CLOUDTRAIL_API CancelQueryResult() = default;
30
32
35 inline const Aws::String& GetQueryId() const { return m_queryId; }
36 template <typename QueryIdT = Aws::String>
37 void SetQueryId(QueryIdT&& value) {
38 m_queryIdHasBeenSet = true;
39 m_queryId = std::forward<QueryIdT>(value);
40 }
41 template <typename QueryIdT = Aws::String>
42 CancelQueryResult& WithQueryId(QueryIdT&& value) {
43 SetQueryId(std::forward<QueryIdT>(value));
44 return *this;
45 }
47
49
54 inline QueryStatus GetQueryStatus() const { return m_queryStatus; }
55 inline void SetQueryStatus(QueryStatus value) {
56 m_queryStatusHasBeenSet = true;
57 m_queryStatus = value;
58 }
60 SetQueryStatus(value);
61 return *this;
62 }
64
66
69 inline const Aws::String& GetEventDataStoreOwnerAccountId() const { return m_eventDataStoreOwnerAccountId; }
70 template <typename EventDataStoreOwnerAccountIdT = Aws::String>
71 void SetEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT&& value) {
72 m_eventDataStoreOwnerAccountIdHasBeenSet = true;
73 m_eventDataStoreOwnerAccountId = std::forward<EventDataStoreOwnerAccountIdT>(value);
74 }
75 template <typename EventDataStoreOwnerAccountIdT = Aws::String>
76 CancelQueryResult& WithEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT&& value) {
77 SetEventDataStoreOwnerAccountId(std::forward<EventDataStoreOwnerAccountIdT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template <typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) {
87 m_requestIdHasBeenSet = true;
88 m_requestId = std::forward<RequestIdT>(value);
89 }
90 template <typename RequestIdT = Aws::String>
91 CancelQueryResult& WithRequestId(RequestIdT&& value) {
92 SetRequestId(std::forward<RequestIdT>(value));
93 return *this;
94 }
96 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
97
98 private:
99 Aws::String m_queryId;
100
101 QueryStatus m_queryStatus{QueryStatus::NOT_SET};
102
103 Aws::String m_eventDataStoreOwnerAccountId;
104
105 Aws::String m_requestId;
106 Aws::Http::HttpResponseCode m_HttpResponseCode;
107 bool m_queryIdHasBeenSet = false;
108 bool m_queryStatusHasBeenSet = false;
109 bool m_eventDataStoreOwnerAccountIdHasBeenSet = false;
110 bool m_requestIdHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace CloudTrail
115} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetEventDataStoreOwnerAccountId() const
AWS_CLOUDTRAIL_API CancelQueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CancelQueryResult & WithRequestId(RequestIdT &&value)
void SetEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT &&value)
AWS_CLOUDTRAIL_API CancelQueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API CancelQueryResult()=default
CancelQueryResult & WithQueryStatus(QueryStatus value)
CancelQueryResult & WithEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT &&value)
CancelQueryResult & WithQueryId(QueryIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue