AWS SDK for C++  1.9.129
AWS SDK for C++
SearchInsightsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace DevOpsGuru
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "SearchInsights"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
42  inline const StartTimeRange& GetStartTimeRange() const{ return m_startTimeRange; }
43 
48  inline bool StartTimeRangeHasBeenSet() const { return m_startTimeRangeHasBeenSet; }
49 
54  inline void SetStartTimeRange(const StartTimeRange& value) { m_startTimeRangeHasBeenSet = true; m_startTimeRange = value; }
55 
60  inline void SetStartTimeRange(StartTimeRange&& value) { m_startTimeRangeHasBeenSet = true; m_startTimeRange = std::move(value); }
61 
66  inline SearchInsightsRequest& WithStartTimeRange(const StartTimeRange& value) { SetStartTimeRange(value); return *this;}
67 
72  inline SearchInsightsRequest& WithStartTimeRange(StartTimeRange&& value) { SetStartTimeRange(std::move(value)); return *this;}
73 
74 
79  inline const SearchInsightsFilters& GetFilters() const{ return m_filters; }
80 
85  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
86 
91  inline void SetFilters(const SearchInsightsFilters& value) { m_filtersHasBeenSet = true; m_filters = value; }
92 
97  inline void SetFilters(SearchInsightsFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
98 
103  inline SearchInsightsRequest& WithFilters(const SearchInsightsFilters& value) { SetFilters(value); return *this;}
104 
109  inline SearchInsightsRequest& WithFilters(SearchInsightsFilters&& value) { SetFilters(std::move(value)); return *this;}
110 
111 
117  inline int GetMaxResults() const{ return m_maxResults; }
118 
124  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
125 
131  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
132 
138  inline SearchInsightsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
139 
140 
145  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
146 
151  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
152 
157  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
158 
163  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
164 
169  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
170 
175  inline SearchInsightsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
176 
181  inline SearchInsightsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
182 
187  inline SearchInsightsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
188 
189 
194  inline const InsightType& GetType() const{ return m_type; }
195 
200  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
201 
206  inline void SetType(const InsightType& value) { m_typeHasBeenSet = true; m_type = value; }
207 
212  inline void SetType(InsightType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
213 
218  inline SearchInsightsRequest& WithType(const InsightType& value) { SetType(value); return *this;}
219 
224  inline SearchInsightsRequest& WithType(InsightType&& value) { SetType(std::move(value)); return *this;}
225 
226  private:
227 
228  StartTimeRange m_startTimeRange;
229  bool m_startTimeRangeHasBeenSet;
230 
231  SearchInsightsFilters m_filters;
232  bool m_filtersHasBeenSet;
233 
234  int m_maxResults;
235  bool m_maxResultsHasBeenSet;
236 
237  Aws::String m_nextToken;
238  bool m_nextTokenHasBeenSet;
239 
240  InsightType m_type;
241  bool m_typeHasBeenSet;
242  };
243 
244 } // namespace Model
245 } // namespace DevOpsGuru
246 } // namespace Aws
Aws::DevOpsGuru::Model::SearchInsightsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: SearchInsightsRequest.h:169
Aws::DevOpsGuru::Model::SearchInsightsRequest::GetMaxResults
int GetMaxResults() const
Definition: SearchInsightsRequest.h:117
Aws::DevOpsGuru::Model::SearchInsightsRequest::WithType
SearchInsightsRequest & WithType(InsightType &&value)
Definition: SearchInsightsRequest.h:224
Aws::DevOpsGuru::Model::SearchInsightsRequest::StartTimeRangeHasBeenSet
bool StartTimeRangeHasBeenSet() const
Definition: SearchInsightsRequest.h:48
Aws::DevOpsGuru::Model::SearchInsightsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: SearchInsightsRequest.h:151
Aws::DevOpsGuru::Model::SearchInsightsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: SearchInsightsRequest.h:145
Aws::DevOpsGuru::Model::SearchInsightsRequest::SetStartTimeRange
void SetStartTimeRange(const StartTimeRange &value)
Definition: SearchInsightsRequest.h:54
Aws::DevOpsGuru::Model::SearchInsightsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: SearchInsightsRequest.h:85
Aws::DevOpsGuru::Model::SearchInsightsRequest::SetFilters
void SetFilters(const SearchInsightsFilters &value)
Definition: SearchInsightsRequest.h:91
InsightType.h
Aws::DevOpsGuru::Model::SearchInsightsRequest::GetFilters
const SearchInsightsFilters & GetFilters() const
Definition: SearchInsightsRequest.h:79
Aws::DevOpsGuru::Model::InsightType
InsightType
Definition: InsightType.h:17
Aws::DevOpsGuru::Model::SearchInsightsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: SearchInsightsRequest.h:157
Aws::DevOpsGuru::Model::SearchInsightsRequest::WithFilters
SearchInsightsRequest & WithFilters(const SearchInsightsFilters &value)
Definition: SearchInsightsRequest.h:103
Aws::DevOpsGuru::Model::SearchInsightsRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: SearchInsightsRequest.h:200
Aws::DevOpsGuru::Model::SearchInsightsFilters
Definition: SearchInsightsFilters.h:37
DevOpsGuruRequest.h
Aws::DevOpsGuru::Model::SearchInsightsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: SearchInsightsRequest.h:131
AWSString.h
Aws::DevOpsGuru::DevOpsGuruRequest
Definition: DevOpsGuruRequest.h:17
Aws::DevOpsGuru::Model::SearchInsightsRequest::SetFilters
void SetFilters(SearchInsightsFilters &&value)
Definition: SearchInsightsRequest.h:97
Aws::DevOpsGuru::Model::SearchInsightsRequest::SetStartTimeRange
void SetStartTimeRange(StartTimeRange &&value)
Definition: SearchInsightsRequest.h:60
Aws::DevOpsGuru::Model::SearchInsightsRequest::WithMaxResults
SearchInsightsRequest & WithMaxResults(int value)
Definition: SearchInsightsRequest.h:138
Aws::DevOpsGuru::Model::SearchInsightsRequest::WithStartTimeRange
SearchInsightsRequest & WithStartTimeRange(const StartTimeRange &value)
Definition: SearchInsightsRequest.h:66
Aws::DevOpsGuru::Model::SearchInsightsRequest::GetStartTimeRange
const StartTimeRange & GetStartTimeRange() const
Definition: SearchInsightsRequest.h:42
Aws::DevOpsGuru::Model::SearchInsightsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SearchInsightsRequest.h:33
Aws::DevOpsGuru::Model::SearchInsightsRequest::SetType
void SetType(InsightType &&value)
Definition: SearchInsightsRequest.h:212
Aws::DevOpsGuru::Model::SearchInsightsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: SearchInsightsRequest.h:124
StartTimeRange.h
SearchInsightsFilters.h
Aws::DevOpsGuru::Model::SearchInsightsRequest::WithType
SearchInsightsRequest & WithType(const InsightType &value)
Definition: SearchInsightsRequest.h:218
Aws::DevOpsGuru::Model::SearchInsightsRequest::WithFilters
SearchInsightsRequest & WithFilters(SearchInsightsFilters &&value)
Definition: SearchInsightsRequest.h:109
Aws
Definition: AccessManagementClient.h:15
Aws::DevOpsGuru::Model::SearchInsightsRequest::WithNextToken
SearchInsightsRequest & WithNextToken(const char *value)
Definition: SearchInsightsRequest.h:187
Aws::DevOpsGuru::Model::SearchInsightsRequest::GetType
const InsightType & GetType() const
Definition: SearchInsightsRequest.h:194
Aws::DevOpsGuru::Model::StartTimeRange
Definition: StartTimeRange.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DevOpsGuru::Model::SearchInsightsRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_DEVOPSGURU_API
#define AWS_DEVOPSGURU_API
Definition: DevOpsGuru_EXPORTS.h:28
Aws::DevOpsGuru::Model::SearchInsightsRequest::SearchInsightsRequest
SearchInsightsRequest()
Aws::DevOpsGuru::Model::SearchInsightsRequest
Definition: SearchInsightsRequest.h:25
DevOpsGuru_EXPORTS.h
Aws::DevOpsGuru::Model::SearchInsightsRequest::WithNextToken
SearchInsightsRequest & WithNextToken(const Aws::String &value)
Definition: SearchInsightsRequest.h:175
Aws::DevOpsGuru::Model::SearchInsightsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: SearchInsightsRequest.h:163
Aws::DevOpsGuru::Model::SearchInsightsRequest::SetType
void SetType(const InsightType &value)
Definition: SearchInsightsRequest.h:206
Aws::DevOpsGuru::Model::SearchInsightsRequest::WithStartTimeRange
SearchInsightsRequest & WithStartTimeRange(StartTimeRange &&value)
Definition: SearchInsightsRequest.h:72
Aws::DevOpsGuru::Model::SearchInsightsRequest::WithNextToken
SearchInsightsRequest & WithNextToken(Aws::String &&value)
Definition: SearchInsightsRequest.h:181