AWS SDK for C++  1.9.124
AWS SDK for C++
GetCardinalityRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetCardinality"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetIndexName() const{ return m_indexName; }
39 
43  inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
44 
48  inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
49 
53  inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
54 
58  inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
59 
63  inline GetCardinalityRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
64 
68  inline GetCardinalityRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
69 
73  inline GetCardinalityRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
74 
75 
79  inline const Aws::String& GetQueryString() const{ return m_queryString; }
80 
84  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
85 
89  inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
90 
94  inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
95 
99  inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
100 
104  inline GetCardinalityRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
105 
109  inline GetCardinalityRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
110 
114  inline GetCardinalityRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
115 
116 
120  inline const Aws::String& GetAggregationField() const{ return m_aggregationField; }
121 
125  inline bool AggregationFieldHasBeenSet() const { return m_aggregationFieldHasBeenSet; }
126 
130  inline void SetAggregationField(const Aws::String& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = value; }
131 
135  inline void SetAggregationField(Aws::String&& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = std::move(value); }
136 
140  inline void SetAggregationField(const char* value) { m_aggregationFieldHasBeenSet = true; m_aggregationField.assign(value); }
141 
145  inline GetCardinalityRequest& WithAggregationField(const Aws::String& value) { SetAggregationField(value); return *this;}
146 
150  inline GetCardinalityRequest& WithAggregationField(Aws::String&& value) { SetAggregationField(std::move(value)); return *this;}
151 
155  inline GetCardinalityRequest& WithAggregationField(const char* value) { SetAggregationField(value); return *this;}
156 
157 
161  inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
162 
166  inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
167 
171  inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
172 
176  inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
177 
181  inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
182 
186  inline GetCardinalityRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
187 
191  inline GetCardinalityRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
192 
196  inline GetCardinalityRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
197 
198  private:
199 
200  Aws::String m_indexName;
201  bool m_indexNameHasBeenSet;
202 
203  Aws::String m_queryString;
204  bool m_queryStringHasBeenSet;
205 
206  Aws::String m_aggregationField;
207  bool m_aggregationFieldHasBeenSet;
208 
209  Aws::String m_queryVersion;
210  bool m_queryVersionHasBeenSet;
211  };
212 
213 } // namespace Model
214 } // namespace IoT
215 } // namespace Aws
Aws::IoT::Model::GetCardinalityRequest::GetQueryVersion
const Aws::String & GetQueryVersion() const
Definition: GetCardinalityRequest.h:161
Aws::IoT::Model::GetCardinalityRequest::WithAggregationField
GetCardinalityRequest & WithAggregationField(const char *value)
Definition: GetCardinalityRequest.h:155
Aws::IoT::Model::GetCardinalityRequest::WithIndexName
GetCardinalityRequest & WithIndexName(const Aws::String &value)
Definition: GetCardinalityRequest.h:63
Aws::IoT::Model::GetCardinalityRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::GetCardinalityRequest::SetQueryVersion
void SetQueryVersion(Aws::String &&value)
Definition: GetCardinalityRequest.h:176
Aws::IoT::Model::GetCardinalityRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetCardinalityRequest.h:30
Aws::IoT::Model::GetCardinalityRequest::SetIndexName
void SetIndexName(const char *value)
Definition: GetCardinalityRequest.h:58
Aws::IoT::Model::GetCardinalityRequest::SetAggregationField
void SetAggregationField(const char *value)
Definition: GetCardinalityRequest.h:140
Aws::IoT::Model::GetCardinalityRequest::SetAggregationField
void SetAggregationField(const Aws::String &value)
Definition: GetCardinalityRequest.h:130
Aws::IoT::Model::GetCardinalityRequest::GetQueryString
const Aws::String & GetQueryString() const
Definition: GetCardinalityRequest.h:79
Aws::IoT::Model::GetCardinalityRequest::WithQueryVersion
GetCardinalityRequest & WithQueryVersion(const char *value)
Definition: GetCardinalityRequest.h:196
Aws::IoT::Model::GetCardinalityRequest::WithAggregationField
GetCardinalityRequest & WithAggregationField(const Aws::String &value)
Definition: GetCardinalityRequest.h:145
Aws::IoT::Model::GetCardinalityRequest::SetQueryString
void SetQueryString(const char *value)
Definition: GetCardinalityRequest.h:99
Aws::IoT::Model::GetCardinalityRequest::WithQueryString
GetCardinalityRequest & WithQueryString(const Aws::String &value)
Definition: GetCardinalityRequest.h:104
Aws::IoT::Model::GetCardinalityRequest::WithAggregationField
GetCardinalityRequest & WithAggregationField(Aws::String &&value)
Definition: GetCardinalityRequest.h:150
Aws::IoT::Model::GetCardinalityRequest::GetAggregationField
const Aws::String & GetAggregationField() const
Definition: GetCardinalityRequest.h:120
Aws::IoT::Model::GetCardinalityRequest::SetQueryVersion
void SetQueryVersion(const Aws::String &value)
Definition: GetCardinalityRequest.h:171
Aws::IoT::Model::GetCardinalityRequest::AggregationFieldHasBeenSet
bool AggregationFieldHasBeenSet() const
Definition: GetCardinalityRequest.h:125
Aws::IoT::Model::GetCardinalityRequest::SetIndexName
void SetIndexName(const Aws::String &value)
Definition: GetCardinalityRequest.h:48
Aws::IoT::Model::GetCardinalityRequest::WithQueryString
GetCardinalityRequest & WithQueryString(Aws::String &&value)
Definition: GetCardinalityRequest.h:109
Aws::IoT::Model::GetCardinalityRequest::WithIndexName
GetCardinalityRequest & WithIndexName(const char *value)
Definition: GetCardinalityRequest.h:73
Aws::IoT::Model::GetCardinalityRequest::WithQueryVersion
GetCardinalityRequest & WithQueryVersion(Aws::String &&value)
Definition: GetCardinalityRequest.h:191
Aws::IoT::Model::GetCardinalityRequest::QueryVersionHasBeenSet
bool QueryVersionHasBeenSet() const
Definition: GetCardinalityRequest.h:166
Aws::IoT::Model::GetCardinalityRequest::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: GetCardinalityRequest.h:89
Aws::IoT::Model::GetCardinalityRequest::WithQueryString
GetCardinalityRequest & WithQueryString(const char *value)
Definition: GetCardinalityRequest.h:114
Aws::IoT::Model::GetCardinalityRequest::WithQueryVersion
GetCardinalityRequest & WithQueryVersion(const Aws::String &value)
Definition: GetCardinalityRequest.h:186
Aws::IoT::Model::GetCardinalityRequest::SetAggregationField
void SetAggregationField(Aws::String &&value)
Definition: GetCardinalityRequest.h:135
AWSString.h
Aws::IoT::Model::GetCardinalityRequest::WithIndexName
GetCardinalityRequest & WithIndexName(Aws::String &&value)
Definition: GetCardinalityRequest.h:68
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::GetCardinalityRequest::IndexNameHasBeenSet
bool IndexNameHasBeenSet() const
Definition: GetCardinalityRequest.h:43
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::GetCardinalityRequest::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: GetCardinalityRequest.h:84
Aws::IoT::Model::GetCardinalityRequest::SetIndexName
void SetIndexName(Aws::String &&value)
Definition: GetCardinalityRequest.h:53
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::GetCardinalityRequest::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: GetCardinalityRequest.h:94
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::GetCardinalityRequest
Definition: GetCardinalityRequest.h:22
IoTRequest.h
Aws::IoT::Model::GetCardinalityRequest::GetCardinalityRequest
GetCardinalityRequest()
Aws::IoT::Model::GetCardinalityRequest::SetQueryVersion
void SetQueryVersion(const char *value)
Definition: GetCardinalityRequest.h:181
IoT_EXPORTS.h
Aws::IoT::Model::GetCardinalityRequest::GetIndexName
const Aws::String & GetIndexName() const
Definition: GetCardinalityRequest.h:38