AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SearchInsightsRequest.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/devops-guru/DevOpsGuruRequest.h>
9#include <aws/devops-guru/model/StartTimeRange.h>
10#include <aws/devops-guru/model/SearchInsightsFilters.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/devops-guru/model/InsightType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace DevOpsGuru
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DEVOPSGURU_API SearchInsightsRequest() = default;
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_DEVOPSGURU_API Aws::String SerializePayload() const override;
36
37
39
43 inline const StartTimeRange& GetStartTimeRange() const { return m_startTimeRange; }
44 inline bool StartTimeRangeHasBeenSet() const { return m_startTimeRangeHasBeenSet; }
45 template<typename StartTimeRangeT = StartTimeRange>
46 void SetStartTimeRange(StartTimeRangeT&& value) { m_startTimeRangeHasBeenSet = true; m_startTimeRange = std::forward<StartTimeRangeT>(value); }
47 template<typename StartTimeRangeT = StartTimeRange>
48 SearchInsightsRequest& WithStartTimeRange(StartTimeRangeT&& value) { SetStartTimeRange(std::forward<StartTimeRangeT>(value)); return *this;}
50
52
56 inline const SearchInsightsFilters& GetFilters() const { return m_filters; }
57 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
58 template<typename FiltersT = SearchInsightsFilters>
59 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
60 template<typename FiltersT = SearchInsightsFilters>
61 SearchInsightsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
63
65
70 inline int GetMaxResults() const { return m_maxResults; }
71 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
72 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
73 inline SearchInsightsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
75
77
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 template<typename NextTokenT = Aws::String>
84 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
85 template<typename NextTokenT = Aws::String>
86 SearchInsightsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
88
90
94 inline InsightType GetType() const { return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 inline void SetType(InsightType value) { m_typeHasBeenSet = true; m_type = value; }
97 inline SearchInsightsRequest& WithType(InsightType value) { SetType(value); return *this;}
99 private:
100
101 StartTimeRange m_startTimeRange;
102 bool m_startTimeRangeHasBeenSet = false;
103
104 SearchInsightsFilters m_filters;
105 bool m_filtersHasBeenSet = false;
106
107 int m_maxResults{0};
108 bool m_maxResultsHasBeenSet = false;
109
110 Aws::String m_nextToken;
111 bool m_nextTokenHasBeenSet = false;
112
114 bool m_typeHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace DevOpsGuru
119} // namespace Aws
SearchInsightsRequest & WithFilters(FiltersT &&value)
const SearchInsightsFilters & GetFilters() const
SearchInsightsRequest & WithType(InsightType value)
SearchInsightsRequest & WithStartTimeRange(StartTimeRangeT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DEVOPSGURU_API SearchInsightsRequest()=default
AWS_DEVOPSGURU_API Aws::String SerializePayload() const override
SearchInsightsRequest & WithNextToken(NextTokenT &&value)
SearchInsightsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String