AWS SDK for C++  1.9.132
AWS SDK for C++
GetBucketsAggregationRequest.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 "GetBucketsAggregation"; }
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 GetBucketsAggregationRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
65 
69  inline GetBucketsAggregationRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
70 
74  inline GetBucketsAggregationRequest& 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 GetBucketsAggregationRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
106 
110  inline GetBucketsAggregationRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
111 
115  inline GetBucketsAggregationRequest& 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 GetBucketsAggregationRequest& WithAggregationField(const Aws::String& value) { SetAggregationField(value); return *this;}
147 
151  inline GetBucketsAggregationRequest& WithAggregationField(Aws::String&& value) { SetAggregationField(std::move(value)); return *this;}
152 
156  inline GetBucketsAggregationRequest& 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 GetBucketsAggregationRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
188 
192  inline GetBucketsAggregationRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
193 
197  inline GetBucketsAggregationRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
198 
199 
204  inline const BucketsAggregationType& GetBucketsAggregationType() const{ return m_bucketsAggregationType; }
205 
210  inline bool BucketsAggregationTypeHasBeenSet() const { return m_bucketsAggregationTypeHasBeenSet; }
211 
216  inline void SetBucketsAggregationType(const BucketsAggregationType& value) { m_bucketsAggregationTypeHasBeenSet = true; m_bucketsAggregationType = value; }
217 
222  inline void SetBucketsAggregationType(BucketsAggregationType&& value) { m_bucketsAggregationTypeHasBeenSet = true; m_bucketsAggregationType = std::move(value); }
223 
228  inline GetBucketsAggregationRequest& WithBucketsAggregationType(const BucketsAggregationType& value) { SetBucketsAggregationType(value); return *this;}
229 
234  inline GetBucketsAggregationRequest& WithBucketsAggregationType(BucketsAggregationType&& value) { SetBucketsAggregationType(std::move(value)); return *this;}
235 
236  private:
237 
238  Aws::String m_indexName;
239  bool m_indexNameHasBeenSet;
240 
241  Aws::String m_queryString;
242  bool m_queryStringHasBeenSet;
243 
244  Aws::String m_aggregationField;
245  bool m_aggregationFieldHasBeenSet;
246 
247  Aws::String m_queryVersion;
248  bool m_queryVersionHasBeenSet;
249 
250  BucketsAggregationType m_bucketsAggregationType;
251  bool m_bucketsAggregationTypeHasBeenSet;
252  };
253 
254 } // namespace Model
255 } // namespace IoT
256 } // namespace Aws
Aws::IoT::Model::GetBucketsAggregationRequest::SetIndexName
void SetIndexName(Aws::String &&value)
Definition: GetBucketsAggregationRequest.h:54
Aws::IoT::Model::GetBucketsAggregationRequest::SetIndexName
void SetIndexName(const char *value)
Definition: GetBucketsAggregationRequest.h:59
Aws::IoT::Model::GetBucketsAggregationRequest::WithQueryString
GetBucketsAggregationRequest & WithQueryString(const Aws::String &value)
Definition: GetBucketsAggregationRequest.h:105
Aws::IoT::Model::GetBucketsAggregationRequest::SetAggregationField
void SetAggregationField(const Aws::String &value)
Definition: GetBucketsAggregationRequest.h:131
BucketsAggregationType.h
Aws::IoT::Model::GetBucketsAggregationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::GetBucketsAggregationRequest::GetQueryVersion
const Aws::String & GetQueryVersion() const
Definition: GetBucketsAggregationRequest.h:162
Aws::IoT::Model::GetBucketsAggregationRequest::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: GetBucketsAggregationRequest.h:85
Aws::IoT::Model::GetBucketsAggregationRequest::SetQueryVersion
void SetQueryVersion(const Aws::String &value)
Definition: GetBucketsAggregationRequest.h:172
Aws::IoT::Model::GetBucketsAggregationRequest::WithAggregationField
GetBucketsAggregationRequest & WithAggregationField(const Aws::String &value)
Definition: GetBucketsAggregationRequest.h:146
Aws::IoT::Model::GetBucketsAggregationRequest::WithBucketsAggregationType
GetBucketsAggregationRequest & WithBucketsAggregationType(BucketsAggregationType &&value)
Definition: GetBucketsAggregationRequest.h:234
Aws::IoT::Model::GetBucketsAggregationRequest::WithAggregationField
GetBucketsAggregationRequest & WithAggregationField(const char *value)
Definition: GetBucketsAggregationRequest.h:156
Aws::IoT::Model::GetBucketsAggregationRequest::GetAggregationField
const Aws::String & GetAggregationField() const
Definition: GetBucketsAggregationRequest.h:121
Aws::IoT::Model::GetBucketsAggregationRequest::GetQueryString
const Aws::String & GetQueryString() const
Definition: GetBucketsAggregationRequest.h:80
Aws::IoT::Model::GetBucketsAggregationRequest::WithQueryVersion
GetBucketsAggregationRequest & WithQueryVersion(const Aws::String &value)
Definition: GetBucketsAggregationRequest.h:187
Aws::IoT::Model::GetBucketsAggregationRequest::SetQueryVersion
void SetQueryVersion(const char *value)
Definition: GetBucketsAggregationRequest.h:182
Aws::IoT::Model::GetBucketsAggregationRequest::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: GetBucketsAggregationRequest.h:95
Aws::IoT::Model::GetBucketsAggregationRequest::SetQueryVersion
void SetQueryVersion(Aws::String &&value)
Definition: GetBucketsAggregationRequest.h:177
Aws::IoT::Model::GetBucketsAggregationRequest::WithIndexName
GetBucketsAggregationRequest & WithIndexName(const Aws::String &value)
Definition: GetBucketsAggregationRequest.h:64
Aws::IoT::Model::GetBucketsAggregationRequest::GetIndexName
const Aws::String & GetIndexName() const
Definition: GetBucketsAggregationRequest.h:39
Aws::IoT::Model::GetBucketsAggregationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetBucketsAggregationRequest.h:31
Aws::IoT::Model::GetBucketsAggregationRequest::GetBucketsAggregationRequest
GetBucketsAggregationRequest()
Aws::IoT::Model::GetBucketsAggregationRequest::QueryVersionHasBeenSet
bool QueryVersionHasBeenSet() const
Definition: GetBucketsAggregationRequest.h:167
Aws::IoT::Model::GetBucketsAggregationRequest::SetQueryString
void SetQueryString(const char *value)
Definition: GetBucketsAggregationRequest.h:100
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::GetBucketsAggregationRequest::GetBucketsAggregationType
const BucketsAggregationType & GetBucketsAggregationType() const
Definition: GetBucketsAggregationRequest.h:204
Aws::IoT::Model::GetBucketsAggregationRequest::SetAggregationField
void SetAggregationField(const char *value)
Definition: GetBucketsAggregationRequest.h:141
Aws::IoT::Model::GetBucketsAggregationRequest::WithQueryVersion
GetBucketsAggregationRequest & WithQueryVersion(const char *value)
Definition: GetBucketsAggregationRequest.h:197
Aws::IoT::Model::GetBucketsAggregationRequest::WithQueryVersion
GetBucketsAggregationRequest & WithQueryVersion(Aws::String &&value)
Definition: GetBucketsAggregationRequest.h:192
Aws::IoT::Model::GetBucketsAggregationRequest::WithQueryString
GetBucketsAggregationRequest & WithQueryString(Aws::String &&value)
Definition: GetBucketsAggregationRequest.h:110
Aws::IoT::Model::GetBucketsAggregationRequest::WithAggregationField
GetBucketsAggregationRequest & WithAggregationField(Aws::String &&value)
Definition: GetBucketsAggregationRequest.h:151
Aws::IoT::Model::GetBucketsAggregationRequest::SetAggregationField
void SetAggregationField(Aws::String &&value)
Definition: GetBucketsAggregationRequest.h:136
Aws::IoT::Model::GetBucketsAggregationRequest::WithIndexName
GetBucketsAggregationRequest & WithIndexName(Aws::String &&value)
Definition: GetBucketsAggregationRequest.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::GetBucketsAggregationRequest::SetBucketsAggregationType
void SetBucketsAggregationType(BucketsAggregationType &&value)
Definition: GetBucketsAggregationRequest.h:222
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::GetBucketsAggregationRequest::SetIndexName
void SetIndexName(const Aws::String &value)
Definition: GetBucketsAggregationRequest.h:49
Aws::IoT::Model::GetBucketsAggregationRequest::BucketsAggregationTypeHasBeenSet
bool BucketsAggregationTypeHasBeenSet() const
Definition: GetBucketsAggregationRequest.h:210
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::BucketsAggregationType
Definition: BucketsAggregationType.h:32
Aws::IoT::Model::GetBucketsAggregationRequest::WithBucketsAggregationType
GetBucketsAggregationRequest & WithBucketsAggregationType(const BucketsAggregationType &value)
Definition: GetBucketsAggregationRequest.h:228
Aws::IoT::Model::GetBucketsAggregationRequest::WithIndexName
GetBucketsAggregationRequest & WithIndexName(const char *value)
Definition: GetBucketsAggregationRequest.h:74
Aws::IoT::Model::GetBucketsAggregationRequest::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: GetBucketsAggregationRequest.h:90
Aws::IoT::Model::GetBucketsAggregationRequest::WithQueryString
GetBucketsAggregationRequest & WithQueryString(const char *value)
Definition: GetBucketsAggregationRequest.h:115
IoTRequest.h
Aws::IoT::Model::GetBucketsAggregationRequest::SetBucketsAggregationType
void SetBucketsAggregationType(const BucketsAggregationType &value)
Definition: GetBucketsAggregationRequest.h:216
Aws::IoT::Model::GetBucketsAggregationRequest
Definition: GetBucketsAggregationRequest.h:23
IoT_EXPORTS.h
Aws::IoT::Model::GetBucketsAggregationRequest::IndexNameHasBeenSet
bool IndexNameHasBeenSet() const
Definition: GetBucketsAggregationRequest.h:44
Aws::IoT::Model::GetBucketsAggregationRequest::AggregationFieldHasBeenSet
bool AggregationFieldHasBeenSet() const
Definition: GetBucketsAggregationRequest.h:126