AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutQueryDefinitionRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace CloudWatchLogs
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHLOGS_API PutQueryDefinitionRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutQueryDefinition"; }
33
34 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline PutQueryDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline PutQueryDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline PutQueryDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
67 inline const Aws::String& GetQueryDefinitionId() const{ return m_queryDefinitionId; }
68 inline bool QueryDefinitionIdHasBeenSet() const { return m_queryDefinitionIdHasBeenSet; }
69 inline void SetQueryDefinitionId(const Aws::String& value) { m_queryDefinitionIdHasBeenSet = true; m_queryDefinitionId = value; }
70 inline void SetQueryDefinitionId(Aws::String&& value) { m_queryDefinitionIdHasBeenSet = true; m_queryDefinitionId = std::move(value); }
71 inline void SetQueryDefinitionId(const char* value) { m_queryDefinitionIdHasBeenSet = true; m_queryDefinitionId.assign(value); }
73 inline PutQueryDefinitionRequest& WithQueryDefinitionId(Aws::String&& value) { SetQueryDefinitionId(std::move(value)); return *this;}
74 inline PutQueryDefinitionRequest& WithQueryDefinitionId(const char* value) { SetQueryDefinitionId(value); return *this;}
76
78
83 inline const Aws::Vector<Aws::String>& GetLogGroupNames() const{ return m_logGroupNames; }
84 inline bool LogGroupNamesHasBeenSet() const { return m_logGroupNamesHasBeenSet; }
85 inline void SetLogGroupNames(const Aws::Vector<Aws::String>& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames = value; }
86 inline void SetLogGroupNames(Aws::Vector<Aws::String>&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames = std::move(value); }
88 inline PutQueryDefinitionRequest& WithLogGroupNames(Aws::Vector<Aws::String>&& value) { SetLogGroupNames(std::move(value)); return *this;}
89 inline PutQueryDefinitionRequest& AddLogGroupNames(const Aws::String& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.push_back(value); return *this; }
90 inline PutQueryDefinitionRequest& AddLogGroupNames(Aws::String&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.push_back(std::move(value)); return *this; }
91 inline PutQueryDefinitionRequest& AddLogGroupNames(const char* value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.push_back(value); return *this; }
93
95
100 inline const Aws::String& GetQueryString() const{ return m_queryString; }
101 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
102 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
103 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
104 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
105 inline PutQueryDefinitionRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
106 inline PutQueryDefinitionRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
107 inline PutQueryDefinitionRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
109
111
115 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
116 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
117 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
118 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
119 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
120 inline PutQueryDefinitionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
121 inline PutQueryDefinitionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
122 inline PutQueryDefinitionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
124 private:
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
129 Aws::String m_queryDefinitionId;
130 bool m_queryDefinitionIdHasBeenSet = false;
131
132 Aws::Vector<Aws::String> m_logGroupNames;
133 bool m_logGroupNamesHasBeenSet = false;
134
135 Aws::String m_queryString;
136 bool m_queryStringHasBeenSet = false;
137
138 Aws::String m_clientToken;
139 bool m_clientTokenHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace CloudWatchLogs
144} // namespace Aws
PutQueryDefinitionRequest & WithQueryDefinitionId(const char *value)
PutQueryDefinitionRequest & WithName(Aws::String &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
void SetLogGroupNames(Aws::Vector< Aws::String > &&value)
PutQueryDefinitionRequest & AddLogGroupNames(const Aws::String &value)
PutQueryDefinitionRequest & WithName(const char *value)
void SetLogGroupNames(const Aws::Vector< Aws::String > &value)
PutQueryDefinitionRequest & WithLogGroupNames(Aws::Vector< Aws::String > &&value)
PutQueryDefinitionRequest & WithQueryString(const char *value)
PutQueryDefinitionRequest & WithClientToken(const Aws::String &value)
PutQueryDefinitionRequest & WithLogGroupNames(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetLogGroupNames() const
PutQueryDefinitionRequest & WithQueryString(Aws::String &&value)
PutQueryDefinitionRequest & WithQueryString(const Aws::String &value)
PutQueryDefinitionRequest & WithName(const Aws::String &value)
PutQueryDefinitionRequest & AddLogGroupNames(Aws::String &&value)
PutQueryDefinitionRequest & WithQueryDefinitionId(Aws::String &&value)
PutQueryDefinitionRequest & WithClientToken(Aws::String &&value)
PutQueryDefinitionRequest & WithClientToken(const char *value)
PutQueryDefinitionRequest & AddLogGroupNames(const char *value)
PutQueryDefinitionRequest & WithQueryDefinitionId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector