AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CloudTrail {
23namespace Model {
25 public:
26 AWS_CLOUDTRAIL_API CancelQueryResult() = default;
29
31
34 inline const Aws::String& GetQueryId() const { return m_queryId; }
35 template <typename QueryIdT = Aws::String>
36 void SetQueryId(QueryIdT&& value) {
37 m_queryIdHasBeenSet = true;
38 m_queryId = std::forward<QueryIdT>(value);
39 }
40 template <typename QueryIdT = Aws::String>
41 CancelQueryResult& WithQueryId(QueryIdT&& value) {
42 SetQueryId(std::forward<QueryIdT>(value));
43 return *this;
44 }
46
48
53 inline QueryStatus GetQueryStatus() const { return m_queryStatus; }
54 inline void SetQueryStatus(QueryStatus value) {
55 m_queryStatusHasBeenSet = true;
56 m_queryStatus = value;
57 }
59 SetQueryStatus(value);
60 return *this;
61 }
63
65
68 inline const Aws::String& GetEventDataStoreOwnerAccountId() const { return m_eventDataStoreOwnerAccountId; }
69 template <typename EventDataStoreOwnerAccountIdT = Aws::String>
70 void SetEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT&& value) {
71 m_eventDataStoreOwnerAccountIdHasBeenSet = true;
72 m_eventDataStoreOwnerAccountId = std::forward<EventDataStoreOwnerAccountIdT>(value);
73 }
74 template <typename EventDataStoreOwnerAccountIdT = Aws::String>
75 CancelQueryResult& WithEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT&& value) {
76 SetEventDataStoreOwnerAccountId(std::forward<EventDataStoreOwnerAccountIdT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
90 CancelQueryResult& WithRequestId(RequestIdT&& value) {
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_queryId;
97
98 QueryStatus m_queryStatus{QueryStatus::NOT_SET};
99
100 Aws::String m_eventDataStoreOwnerAccountId;
101
102 Aws::String m_requestId;
103 bool m_queryIdHasBeenSet = false;
104 bool m_queryStatusHasBeenSet = false;
105 bool m_eventDataStoreOwnerAccountIdHasBeenSet = false;
106 bool m_requestIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace CloudTrail
111} // namespace Aws
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