AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
SearchInsightsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-guru/DevOpsGuruRequest.h>
9#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/InsightType.h>
11#include <aws/devops-guru/model/SearchInsightsFilters.h>
12#include <aws/devops-guru/model/StartTimeRange.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DevOpsGuru {
18namespace Model {
19
23 public:
24 AWS_DEVOPSGURU_API SearchInsightsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "SearchInsights"; }
31
32 AWS_DEVOPSGURU_API Aws::String SerializePayload() const override;
33
35
39 inline const StartTimeRange& GetStartTimeRange() const { return m_startTimeRange; }
40 inline bool StartTimeRangeHasBeenSet() const { return m_startTimeRangeHasBeenSet; }
41 template <typename StartTimeRangeT = StartTimeRange>
42 void SetStartTimeRange(StartTimeRangeT&& value) {
43 m_startTimeRangeHasBeenSet = true;
44 m_startTimeRange = std::forward<StartTimeRangeT>(value);
45 }
46 template <typename StartTimeRangeT = StartTimeRange>
47 SearchInsightsRequest& WithStartTimeRange(StartTimeRangeT&& value) {
48 SetStartTimeRange(std::forward<StartTimeRangeT>(value));
49 return *this;
50 }
52
54
58 inline const SearchInsightsFilters& GetFilters() const { return m_filters; }
59 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
60 template <typename FiltersT = SearchInsightsFilters>
61 void SetFilters(FiltersT&& value) {
62 m_filtersHasBeenSet = true;
63 m_filters = std::forward<FiltersT>(value);
64 }
65 template <typename FiltersT = SearchInsightsFilters>
67 SetFilters(std::forward<FiltersT>(value));
68 return *this;
69 }
71
73
78 inline int GetMaxResults() const { return m_maxResults; }
79 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
80 inline void SetMaxResults(int value) {
81 m_maxResultsHasBeenSet = true;
82 m_maxResults = value;
83 }
85 SetMaxResults(value);
86 return *this;
87 }
89
91
95 inline const Aws::String& GetNextToken() const { return m_nextToken; }
96 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
97 template <typename NextTokenT = Aws::String>
98 void SetNextToken(NextTokenT&& value) {
99 m_nextTokenHasBeenSet = true;
100 m_nextToken = std::forward<NextTokenT>(value);
101 }
102 template <typename NextTokenT = Aws::String>
104 SetNextToken(std::forward<NextTokenT>(value));
105 return *this;
106 }
108
110
114 inline InsightType GetType() const { return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 inline void SetType(InsightType value) {
117 m_typeHasBeenSet = true;
118 m_type = value;
119 }
121 SetType(value);
122 return *this;
123 }
125 private:
126 StartTimeRange m_startTimeRange;
127
128 SearchInsightsFilters m_filters;
129
130 int m_maxResults{0};
131
132 Aws::String m_nextToken;
133
135 bool m_startTimeRangeHasBeenSet = false;
136 bool m_filtersHasBeenSet = false;
137 bool m_maxResultsHasBeenSet = false;
138 bool m_nextTokenHasBeenSet = false;
139 bool m_typeHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace DevOpsGuru
144} // 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