AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QueryInfo.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/QueryStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDWATCHLOGS_API QueryInfo();
37 AWS_CLOUDWATCHLOGS_API QueryInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API QueryInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetQueryId() const{ return m_queryId; }
47 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
48 inline void SetQueryId(const Aws::String& value) { m_queryIdHasBeenSet = true; m_queryId = value; }
49 inline void SetQueryId(Aws::String&& value) { m_queryIdHasBeenSet = true; m_queryId = std::move(value); }
50 inline void SetQueryId(const char* value) { m_queryIdHasBeenSet = true; m_queryId.assign(value); }
51 inline QueryInfo& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;}
52 inline QueryInfo& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;}
53 inline QueryInfo& WithQueryId(const char* value) { SetQueryId(value); return *this;}
55
57
60 inline const Aws::String& GetQueryString() const{ return m_queryString; }
61 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
62 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
63 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
64 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
65 inline QueryInfo& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
66 inline QueryInfo& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
67 inline QueryInfo& WithQueryString(const char* value) { SetQueryString(value); return *this;}
69
71
76 inline const QueryStatus& GetStatus() const{ return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(const QueryStatus& value) { m_statusHasBeenSet = true; m_status = value; }
79 inline void SetStatus(QueryStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
80 inline QueryInfo& WithStatus(const QueryStatus& value) { SetStatus(value); return *this;}
81 inline QueryInfo& WithStatus(QueryStatus&& value) { SetStatus(std::move(value)); return *this;}
83
85
88 inline long long GetCreateTime() const{ return m_createTime; }
89 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
90 inline void SetCreateTime(long long value) { m_createTimeHasBeenSet = true; m_createTime = value; }
91 inline QueryInfo& WithCreateTime(long long value) { SetCreateTime(value); return *this;}
93
95
98 inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
99 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
100 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
101 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
102 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
103 inline QueryInfo& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
104 inline QueryInfo& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
105 inline QueryInfo& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
107 private:
108
109 Aws::String m_queryId;
110 bool m_queryIdHasBeenSet = false;
111
112 Aws::String m_queryString;
113 bool m_queryStringHasBeenSet = false;
114
115 QueryStatus m_status;
116 bool m_statusHasBeenSet = false;
117
118 long long m_createTime;
119 bool m_createTimeHasBeenSet = false;
120
121 Aws::String m_logGroupName;
122 bool m_logGroupNameHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace CloudWatchLogs
127} // namespace Aws
AWS_CLOUDWATCHLOGS_API QueryInfo(Aws::Utils::Json::JsonView jsonValue)
QueryInfo & WithStatus(QueryStatus &&value)
Definition QueryInfo.h:81
void SetQueryString(Aws::String &&value)
Definition QueryInfo.h:63
void SetQueryString(const char *value)
Definition QueryInfo.h:64
void SetQueryId(const char *value)
Definition QueryInfo.h:50
void SetQueryString(const Aws::String &value)
Definition QueryInfo.h:62
QueryInfo & WithLogGroupName(Aws::String &&value)
Definition QueryInfo.h:104
QueryInfo & WithQueryId(Aws::String &&value)
Definition QueryInfo.h:52
const Aws::String & GetQueryString() const
Definition QueryInfo.h:60
AWS_CLOUDWATCHLOGS_API QueryInfo()
void SetLogGroupName(const char *value)
Definition QueryInfo.h:102
QueryInfo & WithQueryId(const char *value)
Definition QueryInfo.h:53
const QueryStatus & GetStatus() const
Definition QueryInfo.h:76
QueryInfo & WithStatus(const QueryStatus &value)
Definition QueryInfo.h:80
QueryInfo & WithLogGroupName(const Aws::String &value)
Definition QueryInfo.h:103
QueryInfo & WithQueryString(Aws::String &&value)
Definition QueryInfo.h:66
QueryInfo & WithQueryString(const Aws::String &value)
Definition QueryInfo.h:65
QueryInfo & WithCreateTime(long long value)
Definition QueryInfo.h:91
void SetLogGroupName(const Aws::String &value)
Definition QueryInfo.h:100
QueryInfo & WithLogGroupName(const char *value)
Definition QueryInfo.h:105
const Aws::String & GetQueryId() const
Definition QueryInfo.h:46
AWS_CLOUDWATCHLOGS_API QueryInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLogGroupName(Aws::String &&value)
Definition QueryInfo.h:101
void SetCreateTime(long long value)
Definition QueryInfo.h:90
const Aws::String & GetLogGroupName() const
Definition QueryInfo.h:98
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
QueryInfo & WithQueryId(const Aws::String &value)
Definition QueryInfo.h:51
void SetStatus(const QueryStatus &value)
Definition QueryInfo.h:78
QueryInfo & WithQueryString(const char *value)
Definition QueryInfo.h:67
void SetQueryId(const Aws::String &value)
Definition QueryInfo.h:48
void SetQueryId(Aws::String &&value)
Definition QueryInfo.h:49
void SetStatus(QueryStatus &&value)
Definition QueryInfo.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue