AWS SDK for C++

AWS SDK for C++ Version 1.11.688

Loading...
Searching...
No Matches
GetBucketsAggregationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/BucketsAggregationType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IoT {
16namespace Model {
17
21 public:
22 AWS_IOT_API GetBucketsAggregationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetBucketsAggregation"; }
29
30 AWS_IOT_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetIndexName() const { return m_indexName; }
37 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
38 template <typename IndexNameT = Aws::String>
39 void SetIndexName(IndexNameT&& value) {
40 m_indexNameHasBeenSet = true;
41 m_indexName = std::forward<IndexNameT>(value);
42 }
43 template <typename IndexNameT = Aws::String>
45 SetIndexName(std::forward<IndexNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetQueryString() const { return m_queryString; }
55 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
56 template <typename QueryStringT = Aws::String>
57 void SetQueryString(QueryStringT&& value) {
58 m_queryStringHasBeenSet = true;
59 m_queryString = std::forward<QueryStringT>(value);
60 }
61 template <typename QueryStringT = Aws::String>
63 SetQueryString(std::forward<QueryStringT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetAggregationField() const { return m_aggregationField; }
73 inline bool AggregationFieldHasBeenSet() const { return m_aggregationFieldHasBeenSet; }
74 template <typename AggregationFieldT = Aws::String>
75 void SetAggregationField(AggregationFieldT&& value) {
76 m_aggregationFieldHasBeenSet = true;
77 m_aggregationField = std::forward<AggregationFieldT>(value);
78 }
79 template <typename AggregationFieldT = Aws::String>
81 SetAggregationField(std::forward<AggregationFieldT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetQueryVersion() const { return m_queryVersion; }
91 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
92 template <typename QueryVersionT = Aws::String>
93 void SetQueryVersion(QueryVersionT&& value) {
94 m_queryVersionHasBeenSet = true;
95 m_queryVersion = std::forward<QueryVersionT>(value);
96 }
97 template <typename QueryVersionT = Aws::String>
99 SetQueryVersion(std::forward<QueryVersionT>(value));
100 return *this;
101 }
103
105
109 inline const BucketsAggregationType& GetBucketsAggregationType() const { return m_bucketsAggregationType; }
110 inline bool BucketsAggregationTypeHasBeenSet() const { return m_bucketsAggregationTypeHasBeenSet; }
111 template <typename BucketsAggregationTypeT = BucketsAggregationType>
112 void SetBucketsAggregationType(BucketsAggregationTypeT&& value) {
113 m_bucketsAggregationTypeHasBeenSet = true;
114 m_bucketsAggregationType = std::forward<BucketsAggregationTypeT>(value);
115 }
116 template <typename BucketsAggregationTypeT = BucketsAggregationType>
118 SetBucketsAggregationType(std::forward<BucketsAggregationTypeT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_indexName;
124 bool m_indexNameHasBeenSet = false;
125
126 Aws::String m_queryString;
127 bool m_queryStringHasBeenSet = false;
128
129 Aws::String m_aggregationField;
130 bool m_aggregationFieldHasBeenSet = false;
131
132 Aws::String m_queryVersion;
133 bool m_queryVersionHasBeenSet = false;
134
135 BucketsAggregationType m_bucketsAggregationType;
136 bool m_bucketsAggregationTypeHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace IoT
141} // namespace Aws
GetBucketsAggregationRequest & WithQueryVersion(QueryVersionT &&value)
GetBucketsAggregationRequest & WithIndexName(IndexNameT &&value)
const BucketsAggregationType & GetBucketsAggregationType() const
virtual const char * GetServiceRequestName() const override
GetBucketsAggregationRequest & WithBucketsAggregationType(BucketsAggregationTypeT &&value)
GetBucketsAggregationRequest & WithAggregationField(AggregationFieldT &&value)
AWS_IOT_API GetBucketsAggregationRequest()=default
void SetBucketsAggregationType(BucketsAggregationTypeT &&value)
GetBucketsAggregationRequest & WithQueryString(QueryStringT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String