AWS SDK for C++  1.9.123
AWS SDK for C++
GetPercentilesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "GetPercentiles"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetIndexName() const{ return m_indexName; }
40 
44  inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
45 
49  inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
50 
54  inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
55 
59  inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
60 
64  inline GetPercentilesRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
65 
69  inline GetPercentilesRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
70 
74  inline GetPercentilesRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
75 
76 
80  inline const Aws::String& GetQueryString() const{ return m_queryString; }
81 
85  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
86 
90  inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
91 
95  inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
96 
100  inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
101 
105  inline GetPercentilesRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
106 
110  inline GetPercentilesRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
111 
115  inline GetPercentilesRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
116 
117 
121  inline const Aws::String& GetAggregationField() const{ return m_aggregationField; }
122 
126  inline bool AggregationFieldHasBeenSet() const { return m_aggregationFieldHasBeenSet; }
127 
131  inline void SetAggregationField(const Aws::String& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = value; }
132 
136  inline void SetAggregationField(Aws::String&& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = std::move(value); }
137 
141  inline void SetAggregationField(const char* value) { m_aggregationFieldHasBeenSet = true; m_aggregationField.assign(value); }
142 
146  inline GetPercentilesRequest& WithAggregationField(const Aws::String& value) { SetAggregationField(value); return *this;}
147 
151  inline GetPercentilesRequest& WithAggregationField(Aws::String&& value) { SetAggregationField(std::move(value)); return *this;}
152 
156  inline GetPercentilesRequest& WithAggregationField(const char* value) { SetAggregationField(value); return *this;}
157 
158 
162  inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
163 
167  inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
168 
172  inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
173 
177  inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
178 
182  inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
183 
187  inline GetPercentilesRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
188 
192  inline GetPercentilesRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
193 
197  inline GetPercentilesRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
198 
199 
203  inline const Aws::Vector<double>& GetPercents() const{ return m_percents; }
204 
208  inline bool PercentsHasBeenSet() const { return m_percentsHasBeenSet; }
209 
213  inline void SetPercents(const Aws::Vector<double>& value) { m_percentsHasBeenSet = true; m_percents = value; }
214 
218  inline void SetPercents(Aws::Vector<double>&& value) { m_percentsHasBeenSet = true; m_percents = std::move(value); }
219 
223  inline GetPercentilesRequest& WithPercents(const Aws::Vector<double>& value) { SetPercents(value); return *this;}
224 
228  inline GetPercentilesRequest& WithPercents(Aws::Vector<double>&& value) { SetPercents(std::move(value)); return *this;}
229 
233  inline GetPercentilesRequest& AddPercents(double value) { m_percentsHasBeenSet = true; m_percents.push_back(value); return *this; }
234 
235  private:
236 
237  Aws::String m_indexName;
238  bool m_indexNameHasBeenSet;
239 
240  Aws::String m_queryString;
241  bool m_queryStringHasBeenSet;
242 
243  Aws::String m_aggregationField;
244  bool m_aggregationFieldHasBeenSet;
245 
246  Aws::String m_queryVersion;
247  bool m_queryVersionHasBeenSet;
248 
249  Aws::Vector<double> m_percents;
250  bool m_percentsHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace IoT
255 } // namespace Aws
Aws::IoT::Model::GetPercentilesRequest::WithQueryString
GetPercentilesRequest & WithQueryString(const char *value)
Definition: GetPercentilesRequest.h:115
Aws::IoT::Model::GetPercentilesRequest::WithPercents
GetPercentilesRequest & WithPercents(const Aws::Vector< double > &value)
Definition: GetPercentilesRequest.h:223
Aws::IoT::Model::GetPercentilesRequest::GetIndexName
const Aws::String & GetIndexName() const
Definition: GetPercentilesRequest.h:39
Aws::IoT::Model::GetPercentilesRequest::SetQueryVersion
void SetQueryVersion(const Aws::String &value)
Definition: GetPercentilesRequest.h:172
Aws::IoT::Model::GetPercentilesRequest::AddPercents
GetPercentilesRequest & AddPercents(double value)
Definition: GetPercentilesRequest.h:233
Aws::IoT::Model::GetPercentilesRequest::IndexNameHasBeenSet
bool IndexNameHasBeenSet() const
Definition: GetPercentilesRequest.h:44
Aws::IoT::Model::GetPercentilesRequest::SetAggregationField
void SetAggregationField(const Aws::String &value)
Definition: GetPercentilesRequest.h:131
Aws::IoT::Model::GetPercentilesRequest::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: GetPercentilesRequest.h:95
Aws::IoT::Model::GetPercentilesRequest::GetPercents
const Aws::Vector< double > & GetPercents() const
Definition: GetPercentilesRequest.h:203
Aws::IoT::Model::GetPercentilesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::GetPercentilesRequest::SetAggregationField
void SetAggregationField(const char *value)
Definition: GetPercentilesRequest.h:141
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::IoT::Model::GetPercentilesRequest::WithQueryString
GetPercentilesRequest & WithQueryString(const Aws::String &value)
Definition: GetPercentilesRequest.h:105
Aws::IoT::Model::GetPercentilesRequest::WithQueryString
GetPercentilesRequest & WithQueryString(Aws::String &&value)
Definition: GetPercentilesRequest.h:110
Aws::IoT::Model::GetPercentilesRequest::WithAggregationField
GetPercentilesRequest & WithAggregationField(const Aws::String &value)
Definition: GetPercentilesRequest.h:146
Aws::IoT::Model::GetPercentilesRequest::SetIndexName
void SetIndexName(const char *value)
Definition: GetPercentilesRequest.h:59
Aws::IoT::Model::GetPercentilesRequest::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: GetPercentilesRequest.h:90
Aws::IoT::Model::GetPercentilesRequest::WithAggregationField
GetPercentilesRequest & WithAggregationField(Aws::String &&value)
Definition: GetPercentilesRequest.h:151
Aws::IoT::Model::GetPercentilesRequest::GetAggregationField
const Aws::String & GetAggregationField() const
Definition: GetPercentilesRequest.h:121
Aws::IoT::Model::GetPercentilesRequest::WithIndexName
GetPercentilesRequest & WithIndexName(const char *value)
Definition: GetPercentilesRequest.h:74
Aws::IoT::Model::GetPercentilesRequest::GetQueryString
const Aws::String & GetQueryString() const
Definition: GetPercentilesRequest.h:80
Aws::IoT::Model::GetPercentilesRequest::SetIndexName
void SetIndexName(const Aws::String &value)
Definition: GetPercentilesRequest.h:49
Aws::IoT::Model::GetPercentilesRequest::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: GetPercentilesRequest.h:85
Aws::IoT::Model::GetPercentilesRequest::SetQueryVersion
void SetQueryVersion(Aws::String &&value)
Definition: GetPercentilesRequest.h:177
Aws::IoT::Model::GetPercentilesRequest::WithQueryVersion
GetPercentilesRequest & WithQueryVersion(const Aws::String &value)
Definition: GetPercentilesRequest.h:187
Aws::IoT::Model::GetPercentilesRequest::PercentsHasBeenSet
bool PercentsHasBeenSet() const
Definition: GetPercentilesRequest.h:208
Aws::IoT::Model::GetPercentilesRequest::WithQueryVersion
GetPercentilesRequest & WithQueryVersion(const char *value)
Definition: GetPercentilesRequest.h:197
Aws::IoT::Model::GetPercentilesRequest::SetAggregationField
void SetAggregationField(Aws::String &&value)
Definition: GetPercentilesRequest.h:136
AWSString.h
Aws::IoT::Model::GetPercentilesRequest
Definition: GetPercentilesRequest.h:23
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::GetPercentilesRequest::AggregationFieldHasBeenSet
bool AggregationFieldHasBeenSet() const
Definition: GetPercentilesRequest.h:126
Aws::IoT::Model::GetPercentilesRequest::SetPercents
void SetPercents(Aws::Vector< double > &&value)
Definition: GetPercentilesRequest.h:218
Aws::IoT::Model::GetPercentilesRequest::SetIndexName
void SetIndexName(Aws::String &&value)
Definition: GetPercentilesRequest.h:54
Aws::IoT::Model::GetPercentilesRequest::WithAggregationField
GetPercentilesRequest & WithAggregationField(const char *value)
Definition: GetPercentilesRequest.h:156
Aws::IoT::Model::GetPercentilesRequest::SetQueryString
void SetQueryString(const char *value)
Definition: GetPercentilesRequest.h:100
Aws::IoT::Model::GetPercentilesRequest::WithIndexName
GetPercentilesRequest & WithIndexName(const Aws::String &value)
Definition: GetPercentilesRequest.h:64
Aws::IoT::Model::GetPercentilesRequest::WithQueryVersion
GetPercentilesRequest & WithQueryVersion(Aws::String &&value)
Definition: GetPercentilesRequest.h:192
Aws::IoT::Model::GetPercentilesRequest::WithIndexName
GetPercentilesRequest & WithIndexName(Aws::String &&value)
Definition: GetPercentilesRequest.h:69
Aws::IoT::Model::GetPercentilesRequest::QueryVersionHasBeenSet
bool QueryVersionHasBeenSet() const
Definition: GetPercentilesRequest.h:167
Aws::IoT::Model::GetPercentilesRequest::WithPercents
GetPercentilesRequest & WithPercents(Aws::Vector< double > &&value)
Definition: GetPercentilesRequest.h:228
Aws::IoT::Model::GetPercentilesRequest::GetPercentilesRequest
GetPercentilesRequest()
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::GetPercentilesRequest::SetPercents
void SetPercents(const Aws::Vector< double > &value)
Definition: GetPercentilesRequest.h:213
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::GetPercentilesRequest::GetQueryVersion
const Aws::String & GetQueryVersion() const
Definition: GetPercentilesRequest.h:162
IoTRequest.h
Aws::IoT::Model::GetPercentilesRequest::SetQueryVersion
void SetQueryVersion(const char *value)
Definition: GetPercentilesRequest.h:182
Aws::IoT::Model::GetPercentilesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetPercentilesRequest.h:31
IoT_EXPORTS.h