AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
GetSnapshotsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/Interval.h>
11#include <aws/kendra/model/MetricType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace kendra {
17namespace Model {
18
22 public:
23 AWS_KENDRA_API GetSnapshotsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetSnapshots"; }
30
31 AWS_KENDRA_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetIndexId() const { return m_indexId; }
40 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
41 template <typename IndexIdT = Aws::String>
42 void SetIndexId(IndexIdT&& value) {
43 m_indexIdHasBeenSet = true;
44 m_indexId = std::forward<IndexIdT>(value);
45 }
46 template <typename IndexIdT = Aws::String>
47 GetSnapshotsRequest& WithIndexId(IndexIdT&& value) {
48 SetIndexId(std::forward<IndexIdT>(value));
49 return *this;
50 }
52
54
70 inline Interval GetInterval() const { return m_interval; }
71 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
72 inline void SetInterval(Interval value) {
73 m_intervalHasBeenSet = true;
74 m_interval = value;
75 }
77 SetInterval(value);
78 return *this;
79 }
81
83
89 inline MetricType GetMetricType() const { return m_metricType; }
90 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
91 inline void SetMetricType(MetricType value) {
92 m_metricTypeHasBeenSet = true;
93 m_metricType = value;
94 }
96 SetMetricType(value);
97 return *this;
98 }
100
102
107 inline const Aws::String& GetNextToken() const { return m_nextToken; }
108 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
109 template <typename NextTokenT = Aws::String>
110 void SetNextToken(NextTokenT&& value) {
111 m_nextTokenHasBeenSet = true;
112 m_nextToken = std::forward<NextTokenT>(value);
113 }
114 template <typename NextTokenT = Aws::String>
115 GetSnapshotsRequest& WithNextToken(NextTokenT&& value) {
116 SetNextToken(std::forward<NextTokenT>(value));
117 return *this;
118 }
120
122
125 inline int GetMaxResults() const { return m_maxResults; }
126 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
127 inline void SetMaxResults(int value) {
128 m_maxResultsHasBeenSet = true;
129 m_maxResults = value;
130 }
132 SetMaxResults(value);
133 return *this;
134 }
136 private:
137 Aws::String m_indexId;
138 bool m_indexIdHasBeenSet = false;
139
140 Interval m_interval{Interval::NOT_SET};
141 bool m_intervalHasBeenSet = false;
142
143 MetricType m_metricType{MetricType::NOT_SET};
144 bool m_metricTypeHasBeenSet = false;
145
146 Aws::String m_nextToken;
147 bool m_nextTokenHasBeenSet = false;
148
149 int m_maxResults{0};
150 bool m_maxResultsHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace kendra
155} // namespace Aws
AWS_KENDRA_API GetSnapshotsRequest()=default
GetSnapshotsRequest & WithNextToken(NextTokenT &&value)
AWS_KENDRA_API Aws::String SerializePayload() const override
GetSnapshotsRequest & WithInterval(Interval value)
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetSnapshotsRequest & WithIndexId(IndexIdT &&value)
virtual const char * GetServiceRequestName() const override
GetSnapshotsRequest & WithMaxResults(int value)
GetSnapshotsRequest & WithMetricType(MetricType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String