AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetStatisticsRequest.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 GetStatisticsRequest();
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 "GetStatistics"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
34
36
40 inline const Aws::String& GetIndexName() const{ return m_indexName; }
41 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
42 inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
43 inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
44 inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
45 inline GetStatisticsRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
46 inline GetStatisticsRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
47 inline GetStatisticsRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
49
51
55 inline const Aws::String& GetQueryString() const{ return m_queryString; }
56 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
57 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
58 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
59 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
60 inline GetStatisticsRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
61 inline GetStatisticsRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
62 inline GetStatisticsRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
64
66
69 inline const Aws::String& GetAggregationField() const{ return m_aggregationField; }
70 inline bool AggregationFieldHasBeenSet() const { return m_aggregationFieldHasBeenSet; }
71 inline void SetAggregationField(const Aws::String& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = value; }
72 inline void SetAggregationField(Aws::String&& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = std::move(value); }
73 inline void SetAggregationField(const char* value) { m_aggregationFieldHasBeenSet = true; m_aggregationField.assign(value); }
74 inline GetStatisticsRequest& WithAggregationField(const Aws::String& value) { SetAggregationField(value); return *this;}
75 inline GetStatisticsRequest& WithAggregationField(Aws::String&& value) { SetAggregationField(std::move(value)); return *this;}
76 inline GetStatisticsRequest& WithAggregationField(const char* value) { SetAggregationField(value); return *this;}
78
80
83 inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
84 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
85 inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
86 inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
87 inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
88 inline GetStatisticsRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
89 inline GetStatisticsRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
90 inline GetStatisticsRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
92 private:
93
94 Aws::String m_indexName;
95 bool m_indexNameHasBeenSet = false;
96
97 Aws::String m_queryString;
98 bool m_queryStringHasBeenSet = false;
99
100 Aws::String m_aggregationField;
101 bool m_aggregationFieldHasBeenSet = false;
102
103 Aws::String m_queryVersion;
104 bool m_queryVersionHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace IoT
109} // namespace Aws
void SetAggregationField(Aws::String &&value)
const Aws::String & GetQueryVersion() const
void SetAggregationField(const Aws::String &value)
GetStatisticsRequest & WithAggregationField(Aws::String &&value)
void SetQueryVersion(const Aws::String &value)
GetStatisticsRequest & WithIndexName(const Aws::String &value)
void SetQueryString(const Aws::String &value)
GetStatisticsRequest & WithAggregationField(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
GetStatisticsRequest & WithAggregationField(const char *value)
GetStatisticsRequest & WithIndexName(Aws::String &&value)
GetStatisticsRequest & WithQueryString(const char *value)
const Aws::String & GetIndexName() const
const Aws::String & GetAggregationField() const
GetStatisticsRequest & WithQueryString(Aws::String &&value)
void SetIndexName(const Aws::String &value)
const Aws::String & GetQueryString() const
GetStatisticsRequest & WithQueryVersion(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetStatisticsRequest & WithQueryVersion(const char *value)
GetStatisticsRequest & WithQueryString(const Aws::String &value)
GetStatisticsRequest & WithQueryVersion(Aws::String &&value)
GetStatisticsRequest & WithIndexName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String