AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCardinalityRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace IoT
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_IOT_API GetCardinalityRequest();
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_IOT_API Aws::String SerializePayload() const override;
33
34
36
39 inline const Aws::String& GetIndexName() const{ return m_indexName; }
40 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
41 inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
42 inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
43 inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
44 inline GetCardinalityRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
45 inline GetCardinalityRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
46 inline GetCardinalityRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
48
50
53 inline const Aws::String& GetQueryString() const{ return m_queryString; }
54 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
55 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
56 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
57 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
58 inline GetCardinalityRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
59 inline GetCardinalityRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
60 inline GetCardinalityRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
62
64
67 inline const Aws::String& GetAggregationField() const{ return m_aggregationField; }
68 inline bool AggregationFieldHasBeenSet() const { return m_aggregationFieldHasBeenSet; }
69 inline void SetAggregationField(const Aws::String& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = value; }
70 inline void SetAggregationField(Aws::String&& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = std::move(value); }
71 inline void SetAggregationField(const char* value) { m_aggregationFieldHasBeenSet = true; m_aggregationField.assign(value); }
72 inline GetCardinalityRequest& WithAggregationField(const Aws::String& value) { SetAggregationField(value); return *this;}
73 inline GetCardinalityRequest& WithAggregationField(Aws::String&& value) { SetAggregationField(std::move(value)); return *this;}
74 inline GetCardinalityRequest& WithAggregationField(const char* value) { SetAggregationField(value); return *this;}
76
78
81 inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
82 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
83 inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
84 inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
85 inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
86 inline GetCardinalityRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
87 inline GetCardinalityRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
88 inline GetCardinalityRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
90 private:
91
92 Aws::String m_indexName;
93 bool m_indexNameHasBeenSet = false;
94
95 Aws::String m_queryString;
96 bool m_queryStringHasBeenSet = false;
97
98 Aws::String m_aggregationField;
99 bool m_aggregationFieldHasBeenSet = false;
100
101 Aws::String m_queryVersion;
102 bool m_queryVersionHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace IoT
107} // namespace Aws
GetCardinalityRequest & WithQueryVersion(const Aws::String &value)
void SetAggregationField(const Aws::String &value)
GetCardinalityRequest & WithAggregationField(Aws::String &&value)
GetCardinalityRequest & WithIndexName(Aws::String &&value)
GetCardinalityRequest & WithAggregationField(const Aws::String &value)
GetCardinalityRequest & WithIndexName(const char *value)
GetCardinalityRequest & WithQueryVersion(const char *value)
void SetQueryVersion(const Aws::String &value)
GetCardinalityRequest & WithQueryString(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetCardinalityRequest & WithQueryString(Aws::String &&value)
GetCardinalityRequest & WithAggregationField(const char *value)
GetCardinalityRequest & WithIndexName(const Aws::String &value)
void SetIndexName(const Aws::String &value)
const Aws::String & GetAggregationField() const
void SetQueryString(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
const Aws::String & GetQueryVersion() const
GetCardinalityRequest & WithQueryVersion(Aws::String &&value)
GetCardinalityRequest & WithQueryString(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String