AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ListProblemsRequest.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsightsRequest.h>
8#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
9#include <aws/application-insights/model/Visibility.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ApplicationInsights {
17namespace Model {
18
22 public:
23 AWS_APPLICATIONINSIGHTS_API ListProblemsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListProblems"; }
30
31 AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override;
32
33 AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetAccountId() const { return m_accountId; }
40 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
41 template <typename AccountIdT = Aws::String>
42 void SetAccountId(AccountIdT&& value) {
43 m_accountIdHasBeenSet = true;
44 m_accountId = std::forward<AccountIdT>(value);
45 }
46 template <typename AccountIdT = Aws::String>
47 ListProblemsRequest& WithAccountId(AccountIdT&& value) {
48 SetAccountId(std::forward<AccountIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
58 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
59 template <typename ResourceGroupNameT = Aws::String>
60 void SetResourceGroupName(ResourceGroupNameT&& value) {
61 m_resourceGroupNameHasBeenSet = true;
62 m_resourceGroupName = std::forward<ResourceGroupNameT>(value);
63 }
64 template <typename ResourceGroupNameT = Aws::String>
65 ListProblemsRequest& WithResourceGroupName(ResourceGroupNameT&& value) {
66 SetResourceGroupName(std::forward<ResourceGroupNameT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
78 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
79 template <typename StartTimeT = Aws::Utils::DateTime>
80 void SetStartTime(StartTimeT&& value) {
81 m_startTimeHasBeenSet = true;
82 m_startTime = std::forward<StartTimeT>(value);
83 }
84 template <typename StartTimeT = Aws::Utils::DateTime>
85 ListProblemsRequest& WithStartTime(StartTimeT&& value) {
86 SetStartTime(std::forward<StartTimeT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
97 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
98 template <typename EndTimeT = Aws::Utils::DateTime>
99 void SetEndTime(EndTimeT&& value) {
100 m_endTimeHasBeenSet = true;
101 m_endTime = std::forward<EndTimeT>(value);
102 }
103 template <typename EndTimeT = Aws::Utils::DateTime>
104 ListProblemsRequest& WithEndTime(EndTimeT&& value) {
105 SetEndTime(std::forward<EndTimeT>(value));
106 return *this;
107 }
109
111
116 inline int GetMaxResults() const { return m_maxResults; }
117 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
118 inline void SetMaxResults(int value) {
119 m_maxResultsHasBeenSet = true;
120 m_maxResults = value;
121 }
123 SetMaxResults(value);
124 return *this;
125 }
127
129
132 inline const Aws::String& GetNextToken() const { return m_nextToken; }
133 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
134 template <typename NextTokenT = Aws::String>
135 void SetNextToken(NextTokenT&& value) {
136 m_nextTokenHasBeenSet = true;
137 m_nextToken = std::forward<NextTokenT>(value);
138 }
139 template <typename NextTokenT = Aws::String>
140 ListProblemsRequest& WithNextToken(NextTokenT&& value) {
141 SetNextToken(std::forward<NextTokenT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetComponentName() const { return m_componentName; }
151 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
152 template <typename ComponentNameT = Aws::String>
153 void SetComponentName(ComponentNameT&& value) {
154 m_componentNameHasBeenSet = true;
155 m_componentName = std::forward<ComponentNameT>(value);
156 }
157 template <typename ComponentNameT = Aws::String>
158 ListProblemsRequest& WithComponentName(ComponentNameT&& value) {
159 SetComponentName(std::forward<ComponentNameT>(value));
160 return *this;
161 }
163
165
169 inline Visibility GetVisibility() const { return m_visibility; }
170 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
171 inline void SetVisibility(Visibility value) {
172 m_visibilityHasBeenSet = true;
173 m_visibility = value;
174 }
176 SetVisibility(value);
177 return *this;
178 }
180 private:
181 Aws::String m_accountId;
182
183 Aws::String m_resourceGroupName;
184
185 Aws::Utils::DateTime m_startTime{};
186
187 Aws::Utils::DateTime m_endTime{};
188
189 int m_maxResults{0};
190
191 Aws::String m_nextToken;
192
193 Aws::String m_componentName;
194
195 Visibility m_visibility{Visibility::NOT_SET};
196 bool m_accountIdHasBeenSet = false;
197 bool m_resourceGroupNameHasBeenSet = false;
198 bool m_startTimeHasBeenSet = false;
199 bool m_endTimeHasBeenSet = false;
200 bool m_maxResultsHasBeenSet = false;
201 bool m_nextTokenHasBeenSet = false;
202 bool m_componentNameHasBeenSet = false;
203 bool m_visibilityHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace ApplicationInsights
208} // namespace Aws
AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListProblemsRequest & WithComponentName(ComponentNameT &&value)
ListProblemsRequest & WithVisibility(Visibility value)
ListProblemsRequest & WithStartTime(StartTimeT &&value)
ListProblemsRequest & WithResourceGroupName(ResourceGroupNameT &&value)
AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override
ListProblemsRequest & WithEndTime(EndTimeT &&value)
ListProblemsRequest & WithAccountId(AccountIdT &&value)
ListProblemsRequest & WithNextToken(NextTokenT &&value)
AWS_APPLICATIONINSIGHTS_API ListProblemsRequest()=default
const Aws::Utils::DateTime & GetStartTime() const
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String