AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GenerateQueryResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Json {
18class JsonValue;
19} // namespace Json
20} // namespace Utils
21namespace CloudTrail {
22namespace Model {
24 public:
25 AWS_CLOUDTRAIL_API GenerateQueryResult() = default;
28
30
33 inline const Aws::String& GetQueryStatement() const { return m_queryStatement; }
34 template <typename QueryStatementT = Aws::String>
35 void SetQueryStatement(QueryStatementT&& value) {
36 m_queryStatementHasBeenSet = true;
37 m_queryStatement = std::forward<QueryStatementT>(value);
38 }
39 template <typename QueryStatementT = Aws::String>
40 GenerateQueryResult& WithQueryStatement(QueryStatementT&& value) {
41 SetQueryStatement(std::forward<QueryStatementT>(value));
42 return *this;
43 }
45
47
52 inline const Aws::String& GetQueryAlias() const { return m_queryAlias; }
53 template <typename QueryAliasT = Aws::String>
54 void SetQueryAlias(QueryAliasT&& value) {
55 m_queryAliasHasBeenSet = true;
56 m_queryAlias = std::forward<QueryAliasT>(value);
57 }
58 template <typename QueryAliasT = Aws::String>
59 GenerateQueryResult& WithQueryAlias(QueryAliasT&& value) {
60 SetQueryAlias(std::forward<QueryAliasT>(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 GenerateQueryResult& 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 GenerateQueryResult& WithRequestId(RequestIdT&& value) {
92 SetRequestId(std::forward<RequestIdT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_queryStatement;
98
99 Aws::String m_queryAlias;
100
101 Aws::String m_eventDataStoreOwnerAccountId;
102
103 Aws::String m_requestId;
104 bool m_queryStatementHasBeenSet = false;
105 bool m_queryAliasHasBeenSet = false;
106 bool m_eventDataStoreOwnerAccountIdHasBeenSet = false;
107 bool m_requestIdHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace CloudTrail
112} // 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)
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