AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
ListInsightsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/InsightEntity.h>
11#include <aws/opensearch/model/InsightSortOrder.h>
12#include <aws/opensearch/model/InsightTimeRange.h>
13
14#include <utility>
15
16namespace Aws {
17namespace OpenSearchService {
18namespace Model {
19
27 public:
28 AWS_OPENSEARCHSERVICE_API ListInsightsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListInsights"; }
35
36 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
37
39
43 inline const InsightEntity& GetEntity() const { return m_entity; }
44 inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; }
45 template <typename EntityT = InsightEntity>
46 void SetEntity(EntityT&& value) {
47 m_entityHasBeenSet = true;
48 m_entity = std::forward<EntityT>(value);
49 }
50 template <typename EntityT = InsightEntity>
51 ListInsightsRequest& WithEntity(EntityT&& value) {
52 SetEntity(std::forward<EntityT>(value));
53 return *this;
54 }
56
58
62 inline const InsightTimeRange& GetTimeRange() const { return m_timeRange; }
63 inline bool TimeRangeHasBeenSet() const { return m_timeRangeHasBeenSet; }
64 template <typename TimeRangeT = InsightTimeRange>
65 void SetTimeRange(TimeRangeT&& value) {
66 m_timeRangeHasBeenSet = true;
67 m_timeRange = std::forward<TimeRangeT>(value);
68 }
69 template <typename TimeRangeT = InsightTimeRange>
70 ListInsightsRequest& WithTimeRange(TimeRangeT&& value) {
71 SetTimeRange(std::forward<TimeRangeT>(value));
72 return *this;
73 }
75
77
81 inline InsightSortOrder GetSortOrder() const { return m_sortOrder; }
82 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
83 inline void SetSortOrder(InsightSortOrder value) {
84 m_sortOrderHasBeenSet = true;
85 m_sortOrder = value;
86 }
88 SetSortOrder(value);
89 return *this;
90 }
92
94
99 inline int GetMaxResults() const { return m_maxResults; }
100 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
101 inline void SetMaxResults(int value) {
102 m_maxResultsHasBeenSet = true;
103 m_maxResults = value;
104 }
106 SetMaxResults(value);
107 return *this;
108 }
110
112
118 inline const Aws::String& GetNextToken() const { return m_nextToken; }
119 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
120 template <typename NextTokenT = Aws::String>
121 void SetNextToken(NextTokenT&& value) {
122 m_nextTokenHasBeenSet = true;
123 m_nextToken = std::forward<NextTokenT>(value);
124 }
125 template <typename NextTokenT = Aws::String>
126 ListInsightsRequest& WithNextToken(NextTokenT&& value) {
127 SetNextToken(std::forward<NextTokenT>(value));
128 return *this;
129 }
131 private:
132 InsightEntity m_entity;
133
134 InsightTimeRange m_timeRange;
135
137
138 int m_maxResults{0};
139
140 Aws::String m_nextToken;
141 bool m_entityHasBeenSet = false;
142 bool m_timeRangeHasBeenSet = false;
143 bool m_sortOrderHasBeenSet = false;
144 bool m_maxResultsHasBeenSet = false;
145 bool m_nextTokenHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace OpenSearchService
150} // namespace Aws
ListInsightsRequest & WithNextToken(NextTokenT &&value)
ListInsightsRequest & WithSortOrder(InsightSortOrder value)
ListInsightsRequest & WithTimeRange(TimeRangeT &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
ListInsightsRequest & WithEntity(EntityT &&value)
virtual const char * GetServiceRequestName() const override
AWS_OPENSEARCHSERVICE_API ListInsightsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String