AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
SearchOrganizationInsightsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devops-guru/DevOpsGuruRequest.h>
10#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
11#include <aws/devops-guru/model/InsightType.h>
12#include <aws/devops-guru/model/SearchOrganizationInsightsFilters.h>
13#include <aws/devops-guru/model/StartTimeRange.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DevOpsGuru {
19namespace Model {
20
24 public:
25 AWS_DEVOPSGURU_API SearchOrganizationInsightsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SearchOrganizationInsights"; }
32
33 AWS_DEVOPSGURU_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
40 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
41 template <typename AccountIdsT = Aws::Vector<Aws::String>>
42 void SetAccountIds(AccountIdsT&& value) {
43 m_accountIdsHasBeenSet = true;
44 m_accountIds = std::forward<AccountIdsT>(value);
45 }
46 template <typename AccountIdsT = Aws::Vector<Aws::String>>
48 SetAccountIds(std::forward<AccountIdsT>(value));
49 return *this;
50 }
51 template <typename AccountIdsT = Aws::String>
53 m_accountIdsHasBeenSet = true;
54 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
55 return *this;
56 }
58
60
61 inline const StartTimeRange& GetStartTimeRange() const { return m_startTimeRange; }
62 inline bool StartTimeRangeHasBeenSet() const { return m_startTimeRangeHasBeenSet; }
63 template <typename StartTimeRangeT = StartTimeRange>
64 void SetStartTimeRange(StartTimeRangeT&& value) {
65 m_startTimeRangeHasBeenSet = true;
66 m_startTimeRange = std::forward<StartTimeRangeT>(value);
67 }
68 template <typename StartTimeRangeT = StartTimeRange>
70 SetStartTimeRange(std::forward<StartTimeRangeT>(value));
71 return *this;
72 }
74
76
80 inline const SearchOrganizationInsightsFilters& GetFilters() const { return m_filters; }
81 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
82 template <typename FiltersT = SearchOrganizationInsightsFilters>
83 void SetFilters(FiltersT&& value) {
84 m_filtersHasBeenSet = true;
85 m_filters = std::forward<FiltersT>(value);
86 }
87 template <typename FiltersT = SearchOrganizationInsightsFilters>
89 SetFilters(std::forward<FiltersT>(value));
90 return *this;
91 }
93
95
100 inline int GetMaxResults() const { return m_maxResults; }
101 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
102 inline void SetMaxResults(int value) {
103 m_maxResultsHasBeenSet = true;
104 m_maxResults = value;
105 }
107 SetMaxResults(value);
108 return *this;
109 }
111
113
117 inline const Aws::String& GetNextToken() const { return m_nextToken; }
118 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
119 template <typename NextTokenT = Aws::String>
120 void SetNextToken(NextTokenT&& value) {
121 m_nextTokenHasBeenSet = true;
122 m_nextToken = std::forward<NextTokenT>(value);
123 }
124 template <typename NextTokenT = Aws::String>
126 SetNextToken(std::forward<NextTokenT>(value));
127 return *this;
128 }
130
132
136 inline InsightType GetType() const { return m_type; }
137 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
138 inline void SetType(InsightType value) {
139 m_typeHasBeenSet = true;
140 m_type = value;
141 }
143 SetType(value);
144 return *this;
145 }
147 private:
148 Aws::Vector<Aws::String> m_accountIds;
149
150 StartTimeRange m_startTimeRange;
151
153
154 int m_maxResults{0};
155
156 Aws::String m_nextToken;
157
159 bool m_accountIdsHasBeenSet = false;
160 bool m_startTimeRangeHasBeenSet = false;
161 bool m_filtersHasBeenSet = false;
162 bool m_maxResultsHasBeenSet = false;
163 bool m_nextTokenHasBeenSet = false;
164 bool m_typeHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace DevOpsGuru
169} // namespace Aws
AWS_DEVOPSGURU_API Aws::String SerializePayload() const override
SearchOrganizationInsightsRequest & WithFilters(FiltersT &&value)
SearchOrganizationInsightsRequest & AddAccountIds(AccountIdsT &&value)
SearchOrganizationInsightsRequest & WithNextToken(NextTokenT &&value)
SearchOrganizationInsightsRequest & WithType(InsightType value)
SearchOrganizationInsightsRequest & WithStartTimeRange(StartTimeRangeT &&value)
SearchOrganizationInsightsRequest & WithAccountIds(AccountIdsT &&value)
AWS_DEVOPSGURU_API SearchOrganizationInsightsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector