AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetPercentilesRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoT
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOT_API GetPercentilesRequest();
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 "GetPercentiles"; }
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 GetPercentilesRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
46 inline GetPercentilesRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
47 inline GetPercentilesRequest& 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 GetPercentilesRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
60 inline GetPercentilesRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
61 inline GetPercentilesRequest& 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); }
73 inline GetPercentilesRequest& WithAggregationField(const Aws::String& value) { SetAggregationField(value); return *this;}
74 inline GetPercentilesRequest& WithAggregationField(Aws::String&& value) { SetAggregationField(std::move(value)); return *this;}
75 inline GetPercentilesRequest& 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 GetPercentilesRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
88 inline GetPercentilesRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
89 inline GetPercentilesRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
91
93
96 inline const Aws::Vector<double>& GetPercents() const{ return m_percents; }
97 inline bool PercentsHasBeenSet() const { return m_percentsHasBeenSet; }
98 inline void SetPercents(const Aws::Vector<double>& value) { m_percentsHasBeenSet = true; m_percents = value; }
99 inline void SetPercents(Aws::Vector<double>&& value) { m_percentsHasBeenSet = true; m_percents = std::move(value); }
100 inline GetPercentilesRequest& WithPercents(const Aws::Vector<double>& value) { SetPercents(value); return *this;}
101 inline GetPercentilesRequest& WithPercents(Aws::Vector<double>&& value) { SetPercents(std::move(value)); return *this;}
102 inline GetPercentilesRequest& AddPercents(double value) { m_percentsHasBeenSet = true; m_percents.push_back(value); return *this; }
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 Aws::Vector<double> m_percents;
119 bool m_percentsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace IoT
124} // namespace Aws
GetPercentilesRequest & WithAggregationField(const char *value)
GetPercentilesRequest & WithQueryString(const char *value)
GetPercentilesRequest & WithPercents(Aws::Vector< double > &&value)
virtual const char * GetServiceRequestName() const override
GetPercentilesRequest & WithQueryVersion(const Aws::String &value)
const Aws::Vector< double > & GetPercents() const
const Aws::String & GetAggregationField() const
GetPercentilesRequest & WithIndexName(Aws::String &&value)
void SetAggregationField(const Aws::String &value)
GetPercentilesRequest & AddPercents(double value)
void SetPercents(const Aws::Vector< double > &value)
const Aws::String & GetQueryVersion() const
void SetIndexName(const Aws::String &value)
void SetQueryVersion(const Aws::String &value)
GetPercentilesRequest & WithQueryString(const Aws::String &value)
void SetQueryString(const Aws::String &value)
GetPercentilesRequest & WithQueryString(Aws::String &&value)
GetPercentilesRequest & WithPercents(const Aws::Vector< double > &value)
GetPercentilesRequest & WithQueryVersion(const char *value)
void SetPercents(Aws::Vector< double > &&value)
GetPercentilesRequest & WithAggregationField(const Aws::String &value)
GetPercentilesRequest & WithQueryVersion(Aws::String &&value)
GetPercentilesRequest & WithIndexName(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
GetPercentilesRequest & WithAggregationField(Aws::String &&value)
GetPercentilesRequest & WithIndexName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector