AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QueryDefinition.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 QueryDefinition();
37 AWS_CLOUDWATCHLOGS_API QueryDefinition(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API QueryDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetQueryDefinitionId() const{ return m_queryDefinitionId; }
47 inline bool QueryDefinitionIdHasBeenSet() const { return m_queryDefinitionIdHasBeenSet; }
48 inline void SetQueryDefinitionId(const Aws::String& value) { m_queryDefinitionIdHasBeenSet = true; m_queryDefinitionId = value; }
49 inline void SetQueryDefinitionId(Aws::String&& value) { m_queryDefinitionIdHasBeenSet = true; m_queryDefinitionId = std::move(value); }
50 inline void SetQueryDefinitionId(const char* value) { m_queryDefinitionIdHasBeenSet = true; m_queryDefinitionId.assign(value); }
51 inline QueryDefinition& WithQueryDefinitionId(const Aws::String& value) { SetQueryDefinitionId(value); return *this;}
52 inline QueryDefinition& WithQueryDefinitionId(Aws::String&& value) { SetQueryDefinitionId(std::move(value)); return *this;}
53 inline QueryDefinition& WithQueryDefinitionId(const char* value) { SetQueryDefinitionId(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline QueryDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline QueryDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline QueryDefinition& WithName(const char* value) { SetName(value); return *this;}
69
71
76 inline const Aws::String& GetQueryString() const{ return m_queryString; }
77 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
78 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
79 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
80 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
81 inline QueryDefinition& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
82 inline QueryDefinition& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
83 inline QueryDefinition& WithQueryString(const char* value) { SetQueryString(value); return *this;}
85
87
90 inline long long GetLastModified() const{ return m_lastModified; }
91 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
92 inline void SetLastModified(long long value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
93 inline QueryDefinition& WithLastModified(long long value) { SetLastModified(value); return *this;}
95
97
101 inline const Aws::Vector<Aws::String>& GetLogGroupNames() const{ return m_logGroupNames; }
102 inline bool LogGroupNamesHasBeenSet() const { return m_logGroupNamesHasBeenSet; }
103 inline void SetLogGroupNames(const Aws::Vector<Aws::String>& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames = value; }
104 inline void SetLogGroupNames(Aws::Vector<Aws::String>&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames = std::move(value); }
105 inline QueryDefinition& WithLogGroupNames(const Aws::Vector<Aws::String>& value) { SetLogGroupNames(value); return *this;}
106 inline QueryDefinition& WithLogGroupNames(Aws::Vector<Aws::String>&& value) { SetLogGroupNames(std::move(value)); return *this;}
107 inline QueryDefinition& AddLogGroupNames(const Aws::String& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.push_back(value); return *this; }
108 inline QueryDefinition& AddLogGroupNames(Aws::String&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.push_back(std::move(value)); return *this; }
109 inline QueryDefinition& AddLogGroupNames(const char* value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.push_back(value); return *this; }
111 private:
112
113 Aws::String m_queryDefinitionId;
114 bool m_queryDefinitionIdHasBeenSet = false;
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 Aws::String m_queryString;
120 bool m_queryStringHasBeenSet = false;
121
122 long long m_lastModified;
123 bool m_lastModifiedHasBeenSet = false;
124
125 Aws::Vector<Aws::String> m_logGroupNames;
126 bool m_logGroupNamesHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace CloudWatchLogs
131} // namespace Aws
QueryDefinition & WithQueryString(const Aws::String &value)
void SetQueryString(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API QueryDefinition()
void SetLogGroupNames(Aws::Vector< Aws::String > &&value)
QueryDefinition & WithName(const char *value)
QueryDefinition & WithQueryDefinitionId(Aws::String &&value)
const Aws::String & GetQueryDefinitionId() const
QueryDefinition & AddLogGroupNames(Aws::String &&value)
QueryDefinition & WithLastModified(long long value)
QueryDefinition & WithLogGroupNames(Aws::Vector< Aws::String > &&value)
const Aws::String & GetQueryString() const
AWS_CLOUDWATCHLOGS_API QueryDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryDefinition & WithQueryDefinitionId(const char *value)
const Aws::Vector< Aws::String > & GetLogGroupNames() const
QueryDefinition & AddLogGroupNames(const Aws::String &value)
QueryDefinition & WithName(const Aws::String &value)
QueryDefinition & AddLogGroupNames(const char *value)
void SetLogGroupNames(const Aws::Vector< Aws::String > &value)
QueryDefinition & WithQueryString(Aws::String &&value)
QueryDefinition & WithQueryDefinitionId(const Aws::String &value)
QueryDefinition & WithLogGroupNames(const Aws::Vector< Aws::String > &value)
void SetQueryDefinitionId(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API QueryDefinition(Aws::Utils::Json::JsonView jsonValue)
QueryDefinition & WithName(Aws::String &&value)
void SetName(const Aws::String &value)
void SetQueryDefinitionId(Aws::String &&value)
QueryDefinition & WithQueryString(const char *value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue