AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetBucketsAggregationRequest.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 <aws/iot/model/BucketsAggregationType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoT
16{
17namespace 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_IOT_API Aws::String SerializePayload() const override;
34
35
37
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 GetBucketsAggregationRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
46 inline GetBucketsAggregationRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
47 inline GetBucketsAggregationRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
49
51
54 inline const Aws::String& GetQueryString() const{ return m_queryString; }
55 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
56 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
57 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
58 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
59 inline GetBucketsAggregationRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
60 inline GetBucketsAggregationRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
61 inline GetBucketsAggregationRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
63
65
68 inline const Aws::String& GetAggregationField() const{ return m_aggregationField; }
69 inline bool AggregationFieldHasBeenSet() const { return m_aggregationFieldHasBeenSet; }
70 inline void SetAggregationField(const Aws::String& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = value; }
71 inline void SetAggregationField(Aws::String&& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = std::move(value); }
72 inline void SetAggregationField(const char* value) { m_aggregationFieldHasBeenSet = true; m_aggregationField.assign(value); }
74 inline GetBucketsAggregationRequest& WithAggregationField(Aws::String&& value) { SetAggregationField(std::move(value)); return *this;}
75 inline GetBucketsAggregationRequest& WithAggregationField(const char* value) { SetAggregationField(value); return *this;}
77
79
82 inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
83 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
84 inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
85 inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
86 inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
87 inline GetBucketsAggregationRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
88 inline GetBucketsAggregationRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
89 inline GetBucketsAggregationRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
91
93
97 inline const BucketsAggregationType& GetBucketsAggregationType() const{ return m_bucketsAggregationType; }
98 inline bool BucketsAggregationTypeHasBeenSet() const { return m_bucketsAggregationTypeHasBeenSet; }
99 inline void SetBucketsAggregationType(const BucketsAggregationType& value) { m_bucketsAggregationTypeHasBeenSet = true; m_bucketsAggregationType = value; }
100 inline void SetBucketsAggregationType(BucketsAggregationType&& value) { m_bucketsAggregationTypeHasBeenSet = true; m_bucketsAggregationType = std::move(value); }
104 private:
105
106 Aws::String m_indexName;
107 bool m_indexNameHasBeenSet = false;
108
109 Aws::String m_queryString;
110 bool m_queryStringHasBeenSet = false;
111
112 Aws::String m_aggregationField;
113 bool m_aggregationFieldHasBeenSet = false;
114
115 Aws::String m_queryVersion;
116 bool m_queryVersionHasBeenSet = false;
117
118 BucketsAggregationType m_bucketsAggregationType;
119 bool m_bucketsAggregationTypeHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace IoT
124} // namespace Aws
GetBucketsAggregationRequest & WithBucketsAggregationType(BucketsAggregationType &&value)
const BucketsAggregationType & GetBucketsAggregationType() const
void SetBucketsAggregationType(BucketsAggregationType &&value)
GetBucketsAggregationRequest & WithIndexName(const char *value)
GetBucketsAggregationRequest & WithQueryVersion(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
GetBucketsAggregationRequest & WithIndexName(const Aws::String &value)
GetBucketsAggregationRequest & WithQueryString(const Aws::String &value)
void SetBucketsAggregationType(const BucketsAggregationType &value)
GetBucketsAggregationRequest & WithAggregationField(Aws::String &&value)
GetBucketsAggregationRequest & WithQueryVersion(const Aws::String &value)
GetBucketsAggregationRequest & WithQueryVersion(const char *value)
GetBucketsAggregationRequest & WithAggregationField(const char *value)
GetBucketsAggregationRequest & WithAggregationField(const Aws::String &value)
GetBucketsAggregationRequest & WithIndexName(Aws::String &&value)
GetBucketsAggregationRequest & WithBucketsAggregationType(const BucketsAggregationType &value)
GetBucketsAggregationRequest & WithQueryString(Aws::String &&value)
GetBucketsAggregationRequest & WithQueryString(const char *value)
AWS_IOT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String