AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
QueryInfo.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/model/QueryLanguage.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/logs/model/QueryStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchLogs
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDWATCHLOGS_API QueryInfo() = default;
38 AWS_CLOUDWATCHLOGS_API QueryInfo(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API QueryInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
51 inline bool QueryLanguageHasBeenSet() const { return m_queryLanguageHasBeenSet; }
52 inline void SetQueryLanguage(QueryLanguage value) { m_queryLanguageHasBeenSet = true; m_queryLanguage = value; }
53 inline QueryInfo& WithQueryLanguage(QueryLanguage value) { SetQueryLanguage(value); return *this;}
55
57
60 inline const Aws::String& GetQueryId() const { return m_queryId; }
61 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
62 template<typename QueryIdT = Aws::String>
63 void SetQueryId(QueryIdT&& value) { m_queryIdHasBeenSet = true; m_queryId = std::forward<QueryIdT>(value); }
64 template<typename QueryIdT = Aws::String>
65 QueryInfo& WithQueryId(QueryIdT&& value) { SetQueryId(std::forward<QueryIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetQueryString() const { return m_queryString; }
73 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
74 template<typename QueryStringT = Aws::String>
75 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
76 template<typename QueryStringT = Aws::String>
77 QueryInfo& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
79
81
86 inline QueryStatus GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(QueryStatus value) { m_statusHasBeenSet = true; m_status = value; }
89 inline QueryInfo& WithStatus(QueryStatus value) { SetStatus(value); return *this;}
91
93
96 inline long long GetCreateTime() const { return m_createTime; }
97 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
98 inline void SetCreateTime(long long value) { m_createTimeHasBeenSet = true; m_createTime = value; }
99 inline QueryInfo& WithCreateTime(long long value) { SetCreateTime(value); return *this;}
101
103
106 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
107 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
108 template<typename LogGroupNameT = Aws::String>
109 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
110 template<typename LogGroupNameT = Aws::String>
111 QueryInfo& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
113 private:
114
115 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
116 bool m_queryLanguageHasBeenSet = false;
117
118 Aws::String m_queryId;
119 bool m_queryIdHasBeenSet = false;
120
121 Aws::String m_queryString;
122 bool m_queryStringHasBeenSet = false;
123
125 bool m_statusHasBeenSet = false;
126
127 long long m_createTime{0};
128 bool m_createTimeHasBeenSet = false;
129
130 Aws::String m_logGroupName;
131 bool m_logGroupNameHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace CloudWatchLogs
136} // namespace Aws
void SetLogGroupName(LogGroupNameT &&value)
Definition QueryInfo.h:109
AWS_CLOUDWATCHLOGS_API QueryInfo(Aws::Utils::Json::JsonView jsonValue)
QueryInfo & WithStatus(QueryStatus value)
Definition QueryInfo.h:89
AWS_CLOUDWATCHLOGS_API QueryInfo()=default
QueryLanguage GetQueryLanguage() const
Definition QueryInfo.h:50
QueryInfo & WithLogGroupName(LogGroupNameT &&value)
Definition QueryInfo.h:111
void SetQueryString(QueryStringT &&value)
Definition QueryInfo.h:75
QueryInfo & WithQueryString(QueryStringT &&value)
Definition QueryInfo.h:77
const Aws::String & GetQueryString() const
Definition QueryInfo.h:72
QueryInfo & WithQueryLanguage(QueryLanguage value)
Definition QueryInfo.h:53
QueryInfo & WithQueryId(QueryIdT &&value)
Definition QueryInfo.h:65
QueryInfo & WithCreateTime(long long value)
Definition QueryInfo.h:99
const Aws::String & GetQueryId() const
Definition QueryInfo.h:60
AWS_CLOUDWATCHLOGS_API QueryInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetQueryLanguage(QueryLanguage value)
Definition QueryInfo.h:52
void SetQueryId(QueryIdT &&value)
Definition QueryInfo.h:63
void SetCreateTime(long long value)
Definition QueryInfo.h:98
const Aws::String & GetLogGroupName() const
Definition QueryInfo.h:106
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(QueryStatus value)
Definition QueryInfo.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue