AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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/logs/model/QueryLanguage.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace CloudWatchLogs
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDWATCHLOGS_API PutQueryDefinitionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutQueryDefinition"; }
34
35 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
48 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
49 inline bool QueryLanguageHasBeenSet() const { return m_queryLanguageHasBeenSet; }
50 inline void SetQueryLanguage(QueryLanguage value) { m_queryLanguageHasBeenSet = true; m_queryLanguage = value; }
53
55
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 PutQueryDefinitionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
80 inline const Aws::String& GetQueryDefinitionId() const { return m_queryDefinitionId; }
81 inline bool QueryDefinitionIdHasBeenSet() const { return m_queryDefinitionIdHasBeenSet; }
82 template<typename QueryDefinitionIdT = Aws::String>
83 void SetQueryDefinitionId(QueryDefinitionIdT&& value) { m_queryDefinitionIdHasBeenSet = true; m_queryDefinitionId = std::forward<QueryDefinitionIdT>(value); }
84 template<typename QueryDefinitionIdT = Aws::String>
85 PutQueryDefinitionRequest& WithQueryDefinitionId(QueryDefinitionIdT&& value) { SetQueryDefinitionId(std::forward<QueryDefinitionIdT>(value)); return *this;}
87
89
97 inline const Aws::Vector<Aws::String>& GetLogGroupNames() const { return m_logGroupNames; }
98 inline bool LogGroupNamesHasBeenSet() const { return m_logGroupNamesHasBeenSet; }
99 template<typename LogGroupNamesT = Aws::Vector<Aws::String>>
100 void SetLogGroupNames(LogGroupNamesT&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames = std::forward<LogGroupNamesT>(value); }
101 template<typename LogGroupNamesT = Aws::Vector<Aws::String>>
102 PutQueryDefinitionRequest& WithLogGroupNames(LogGroupNamesT&& value) { SetLogGroupNames(std::forward<LogGroupNamesT>(value)); return *this;}
103 template<typename LogGroupNamesT = Aws::String>
104 PutQueryDefinitionRequest& AddLogGroupNames(LogGroupNamesT&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.emplace_back(std::forward<LogGroupNamesT>(value)); return *this; }
106
108
113 inline const Aws::String& GetQueryString() const { return m_queryString; }
114 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
115 template<typename QueryStringT = Aws::String>
116 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
117 template<typename QueryStringT = Aws::String>
118 PutQueryDefinitionRequest& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
120
122
126 inline const Aws::String& GetClientToken() const { return m_clientToken; }
127 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
128 template<typename ClientTokenT = Aws::String>
129 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
130 template<typename ClientTokenT = Aws::String>
131 PutQueryDefinitionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
133 private:
134
135 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
136 bool m_queryLanguageHasBeenSet = false;
137
138 Aws::String m_name;
139 bool m_nameHasBeenSet = false;
140
141 Aws::String m_queryDefinitionId;
142 bool m_queryDefinitionIdHasBeenSet = false;
143
144 Aws::Vector<Aws::String> m_logGroupNames;
145 bool m_logGroupNamesHasBeenSet = false;
146
147 Aws::String m_queryString;
148 bool m_queryStringHasBeenSet = false;
149
151 bool m_clientTokenHasBeenSet = true;
152 };
153
154} // namespace Model
155} // namespace CloudWatchLogs
156} // namespace Aws
PutQueryDefinitionRequest & WithLogGroupNames(LogGroupNamesT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutQueryDefinitionRequest & WithName(NameT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutQueryDefinitionRequest & AddLogGroupNames(LogGroupNamesT &&value)
PutQueryDefinitionRequest & WithClientToken(ClientTokenT &&value)
PutQueryDefinitionRequest & WithQueryDefinitionId(QueryDefinitionIdT &&value)
PutQueryDefinitionRequest & WithQueryLanguage(QueryLanguage value)
AWS_CLOUDWATCHLOGS_API PutQueryDefinitionRequest()=default
const Aws::Vector< Aws::String > & GetLogGroupNames() const
PutQueryDefinitionRequest & WithQueryString(QueryStringT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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