AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
GenerateQueryResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/http/HttpResponse.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 GenerateQueryResult() = default;
29
31
34 inline const Aws::String& GetQueryStatement() const { return m_queryStatement; }
35 template <typename QueryStatementT = Aws::String>
36 void SetQueryStatement(QueryStatementT&& value) {
37 m_queryStatementHasBeenSet = true;
38 m_queryStatement = std::forward<QueryStatementT>(value);
39 }
40 template <typename QueryStatementT = Aws::String>
41 GenerateQueryResult& WithQueryStatement(QueryStatementT&& value) {
42 SetQueryStatement(std::forward<QueryStatementT>(value));
43 return *this;
44 }
46
48
53 inline const Aws::String& GetQueryAlias() const { return m_queryAlias; }
54 template <typename QueryAliasT = Aws::String>
55 void SetQueryAlias(QueryAliasT&& value) {
56 m_queryAliasHasBeenSet = true;
57 m_queryAlias = std::forward<QueryAliasT>(value);
58 }
59 template <typename QueryAliasT = Aws::String>
60 GenerateQueryResult& WithQueryAlias(QueryAliasT&& value) {
61 SetQueryAlias(std::forward<QueryAliasT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetEventDataStoreOwnerAccountId() const { return m_eventDataStoreOwnerAccountId; }
71 template <typename EventDataStoreOwnerAccountIdT = Aws::String>
72 void SetEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT&& value) {
73 m_eventDataStoreOwnerAccountIdHasBeenSet = true;
74 m_eventDataStoreOwnerAccountId = std::forward<EventDataStoreOwnerAccountIdT>(value);
75 }
76 template <typename EventDataStoreOwnerAccountIdT = Aws::String>
77 GenerateQueryResult& WithEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT&& value) {
78 SetEventDataStoreOwnerAccountId(std::forward<EventDataStoreOwnerAccountIdT>(value));
79 return *this;
80 }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template <typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) {
88 m_requestIdHasBeenSet = true;
89 m_requestId = std::forward<RequestIdT>(value);
90 }
91 template <typename RequestIdT = Aws::String>
92 GenerateQueryResult& WithRequestId(RequestIdT&& value) {
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
98
99 private:
100 Aws::String m_queryStatement;
101
102 Aws::String m_queryAlias;
103
104 Aws::String m_eventDataStoreOwnerAccountId;
105
106 Aws::String m_requestId;
107 Aws::Http::HttpResponseCode m_HttpResponseCode;
108 bool m_queryStatementHasBeenSet = false;
109 bool m_queryAliasHasBeenSet = false;
110 bool m_eventDataStoreOwnerAccountIdHasBeenSet = false;
111 bool m_requestIdHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace CloudTrail
116} // namespace Aws
AWS_CLOUDTRAIL_API GenerateQueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API GenerateQueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetQueryStatement(QueryStatementT &&value)
GenerateQueryResult & WithRequestId(RequestIdT &&value)
GenerateQueryResult & WithQueryStatement(QueryStatementT &&value)
void SetEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT &&value)
GenerateQueryResult & WithQueryAlias(QueryAliasT &&value)
AWS_CLOUDTRAIL_API GenerateQueryResult()=default
const Aws::String & GetEventDataStoreOwnerAccountId() const
GenerateQueryResult & WithEventDataStoreOwnerAccountId(EventDataStoreOwnerAccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue