AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetSnapshotsRequest.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kendra/model/Interval.h>
11#include <aws/kendra/model/MetricType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace kendra
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_KENDRA_API GetSnapshotsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetSnapshots"; }
33
34 AWS_KENDRA_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetIndexId() const { return m_indexId; }
44 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
45 template<typename IndexIdT = Aws::String>
46 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
47 template<typename IndexIdT = Aws::String>
48 GetSnapshotsRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
50
52
68 inline Interval GetInterval() const { return m_interval; }
69 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
70 inline void SetInterval(Interval value) { m_intervalHasBeenSet = true; m_interval = value; }
71 inline GetSnapshotsRequest& WithInterval(Interval value) { SetInterval(value); return *this;}
73
75
81 inline MetricType GetMetricType() const { return m_metricType; }
82 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
83 inline void SetMetricType(MetricType value) { m_metricTypeHasBeenSet = true; m_metricType = value; }
84 inline GetSnapshotsRequest& WithMetricType(MetricType value) { SetMetricType(value); return *this;}
86
88
93 inline const Aws::String& GetNextToken() const { return m_nextToken; }
94 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 template<typename NextTokenT = Aws::String>
96 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
97 template<typename NextTokenT = Aws::String>
98 GetSnapshotsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
100
102
105 inline int GetMaxResults() const { return m_maxResults; }
106 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
108 inline GetSnapshotsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
110 private:
111
112 Aws::String m_indexId;
113 bool m_indexIdHasBeenSet = false;
114
115 Interval m_interval{Interval::NOT_SET};
116 bool m_intervalHasBeenSet = false;
117
118 MetricType m_metricType{MetricType::NOT_SET};
119 bool m_metricTypeHasBeenSet = false;
120
121 Aws::String m_nextToken;
122 bool m_nextTokenHasBeenSet = false;
123
124 int m_maxResults{0};
125 bool m_maxResultsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace kendra
130} // 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