1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8 #include <aws/application-insights/ApplicationInsightsRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/core/utils/DateTime.h>
11 #include <aws/application-insights/model/ConfigurationEventStatus.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ApplicationInsights
17 {
18 namespace Model
19 {
20 
21   /**
22    */
23   class AWS_APPLICATIONINSIGHTS_API ListConfigurationHistoryRequest : public ApplicationInsightsRequest
24   {
25   public:
26     ListConfigurationHistoryRequest();
27 
28     // Service request name is the Operation name which will send this request out,
29     // each operation should has unique request name, so that we can get operation's name from this request.
30     // Note: this is not true for response, multiple operations may have the same response name,
31     // so we can not get operation's name from response.
GetServiceRequestName()32     inline virtual const char* GetServiceRequestName() const override { return "ListConfigurationHistory"; }
33 
34     Aws::String SerializePayload() const override;
35 
36     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
39     /**
40      * <p>Resource group to which the application belongs. </p>
41      */
GetResourceGroupName()42     inline const Aws::String& GetResourceGroupName() const{ return m_resourceGroupName; }
43 
44     /**
45      * <p>Resource group to which the application belongs. </p>
46      */
ResourceGroupNameHasBeenSet()47     inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
48 
49     /**
50      * <p>Resource group to which the application belongs. </p>
51      */
SetResourceGroupName(const Aws::String & value)52     inline void SetResourceGroupName(const Aws::String& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = value; }
53 
54     /**
55      * <p>Resource group to which the application belongs. </p>
56      */
SetResourceGroupName(Aws::String && value)57     inline void SetResourceGroupName(Aws::String&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::move(value); }
58 
59     /**
60      * <p>Resource group to which the application belongs. </p>
61      */
SetResourceGroupName(const char * value)62     inline void SetResourceGroupName(const char* value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName.assign(value); }
63 
64     /**
65      * <p>Resource group to which the application belongs. </p>
66      */
WithResourceGroupName(const Aws::String & value)67     inline ListConfigurationHistoryRequest& WithResourceGroupName(const Aws::String& value) { SetResourceGroupName(value); return *this;}
68 
69     /**
70      * <p>Resource group to which the application belongs. </p>
71      */
WithResourceGroupName(Aws::String && value)72     inline ListConfigurationHistoryRequest& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;}
73 
74     /**
75      * <p>Resource group to which the application belongs. </p>
76      */
WithResourceGroupName(const char * value)77     inline ListConfigurationHistoryRequest& WithResourceGroupName(const char* value) { SetResourceGroupName(value); return *this;}
78 
79 
80     /**
81      * <p>The start time of the event. </p>
82      */
GetStartTime()83     inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
84 
85     /**
86      * <p>The start time of the event. </p>
87      */
StartTimeHasBeenSet()88     inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
89 
90     /**
91      * <p>The start time of the event. </p>
92      */
SetStartTime(const Aws::Utils::DateTime & value)93     inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
94 
95     /**
96      * <p>The start time of the event. </p>
97      */
SetStartTime(Aws::Utils::DateTime && value)98     inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
99 
100     /**
101      * <p>The start time of the event. </p>
102      */
WithStartTime(const Aws::Utils::DateTime & value)103     inline ListConfigurationHistoryRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
104 
105     /**
106      * <p>The start time of the event. </p>
107      */
WithStartTime(Aws::Utils::DateTime && value)108     inline ListConfigurationHistoryRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
109 
110 
111     /**
112      * <p>The end time of the event.</p>
113      */
GetEndTime()114     inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
115 
116     /**
117      * <p>The end time of the event.</p>
118      */
EndTimeHasBeenSet()119     inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
120 
121     /**
122      * <p>The end time of the event.</p>
123      */
SetEndTime(const Aws::Utils::DateTime & value)124     inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
125 
126     /**
127      * <p>The end time of the event.</p>
128      */
SetEndTime(Aws::Utils::DateTime && value)129     inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
130 
131     /**
132      * <p>The end time of the event.</p>
133      */
WithEndTime(const Aws::Utils::DateTime & value)134     inline ListConfigurationHistoryRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
135 
136     /**
137      * <p>The end time of the event.</p>
138      */
WithEndTime(Aws::Utils::DateTime && value)139     inline ListConfigurationHistoryRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
140 
141 
142     /**
143      * <p>The status of the configuration update event. Possible values include INFO,
144      * WARN, and ERROR.</p>
145      */
GetEventStatus()146     inline const ConfigurationEventStatus& GetEventStatus() const{ return m_eventStatus; }
147 
148     /**
149      * <p>The status of the configuration update event. Possible values include INFO,
150      * WARN, and ERROR.</p>
151      */
EventStatusHasBeenSet()152     inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
153 
154     /**
155      * <p>The status of the configuration update event. Possible values include INFO,
156      * WARN, and ERROR.</p>
157      */
SetEventStatus(const ConfigurationEventStatus & value)158     inline void SetEventStatus(const ConfigurationEventStatus& value) { m_eventStatusHasBeenSet = true; m_eventStatus = value; }
159 
160     /**
161      * <p>The status of the configuration update event. Possible values include INFO,
162      * WARN, and ERROR.</p>
163      */
SetEventStatus(ConfigurationEventStatus && value)164     inline void SetEventStatus(ConfigurationEventStatus&& value) { m_eventStatusHasBeenSet = true; m_eventStatus = std::move(value); }
165 
166     /**
167      * <p>The status of the configuration update event. Possible values include INFO,
168      * WARN, and ERROR.</p>
169      */
WithEventStatus(const ConfigurationEventStatus & value)170     inline ListConfigurationHistoryRequest& WithEventStatus(const ConfigurationEventStatus& value) { SetEventStatus(value); return *this;}
171 
172     /**
173      * <p>The status of the configuration update event. Possible values include INFO,
174      * WARN, and ERROR.</p>
175      */
WithEventStatus(ConfigurationEventStatus && value)176     inline ListConfigurationHistoryRequest& WithEventStatus(ConfigurationEventStatus&& value) { SetEventStatus(std::move(value)); return *this;}
177 
178 
179     /**
180      * <p> The maximum number of results returned by
181      * <code>ListConfigurationHistory</code> in paginated output. When this parameter
182      * is used, <code>ListConfigurationHistory</code> returns only
183      * <code>MaxResults</code> in a single page along with a <code>NextToken</code>
184      * response element. The remaining results of the initial request can be seen by
185      * sending another <code>ListConfigurationHistory</code> request with the returned
186      * <code>NextToken</code> value. If this parameter is not used, then
187      * <code>ListConfigurationHistory</code> returns all results. </p>
188      */
GetMaxResults()189     inline int GetMaxResults() const{ return m_maxResults; }
190 
191     /**
192      * <p> The maximum number of results returned by
193      * <code>ListConfigurationHistory</code> in paginated output. When this parameter
194      * is used, <code>ListConfigurationHistory</code> returns only
195      * <code>MaxResults</code> in a single page along with a <code>NextToken</code>
196      * response element. The remaining results of the initial request can be seen by
197      * sending another <code>ListConfigurationHistory</code> request with the returned
198      * <code>NextToken</code> value. If this parameter is not used, then
199      * <code>ListConfigurationHistory</code> returns all results. </p>
200      */
MaxResultsHasBeenSet()201     inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
202 
203     /**
204      * <p> The maximum number of results returned by
205      * <code>ListConfigurationHistory</code> in paginated output. When this parameter
206      * is used, <code>ListConfigurationHistory</code> returns only
207      * <code>MaxResults</code> in a single page along with a <code>NextToken</code>
208      * response element. The remaining results of the initial request can be seen by
209      * sending another <code>ListConfigurationHistory</code> request with the returned
210      * <code>NextToken</code> value. If this parameter is not used, then
211      * <code>ListConfigurationHistory</code> returns all results. </p>
212      */
SetMaxResults(int value)213     inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
214 
215     /**
216      * <p> The maximum number of results returned by
217      * <code>ListConfigurationHistory</code> in paginated output. When this parameter
218      * is used, <code>ListConfigurationHistory</code> returns only
219      * <code>MaxResults</code> in a single page along with a <code>NextToken</code>
220      * response element. The remaining results of the initial request can be seen by
221      * sending another <code>ListConfigurationHistory</code> request with the returned
222      * <code>NextToken</code> value. If this parameter is not used, then
223      * <code>ListConfigurationHistory</code> returns all results. </p>
224      */
WithMaxResults(int value)225     inline ListConfigurationHistoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
226 
227 
228     /**
229      * <p>The <code>NextToken</code> value returned from a previous paginated
230      * <code>ListConfigurationHistory</code> request where <code>MaxResults</code> was
231      * used and the results exceeded the value of that parameter. Pagination continues
232      * from the end of the previous results that returned the <code>NextToken</code>
233      * value. This value is <code>null</code> when there are no more results to
234      * return.</p>
235      */
GetNextToken()236     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
237 
238     /**
239      * <p>The <code>NextToken</code> value returned from a previous paginated
240      * <code>ListConfigurationHistory</code> request where <code>MaxResults</code> was
241      * used and the results exceeded the value of that parameter. Pagination continues
242      * from the end of the previous results that returned the <code>NextToken</code>
243      * value. This value is <code>null</code> when there are no more results to
244      * return.</p>
245      */
NextTokenHasBeenSet()246     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
247 
248     /**
249      * <p>The <code>NextToken</code> value returned from a previous paginated
250      * <code>ListConfigurationHistory</code> request where <code>MaxResults</code> was
251      * used and the results exceeded the value of that parameter. Pagination continues
252      * from the end of the previous results that returned the <code>NextToken</code>
253      * value. This value is <code>null</code> when there are no more results to
254      * return.</p>
255      */
SetNextToken(const Aws::String & value)256     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
257 
258     /**
259      * <p>The <code>NextToken</code> value returned from a previous paginated
260      * <code>ListConfigurationHistory</code> request where <code>MaxResults</code> was
261      * used and the results exceeded the value of that parameter. Pagination continues
262      * from the end of the previous results that returned the <code>NextToken</code>
263      * value. This value is <code>null</code> when there are no more results to
264      * return.</p>
265      */
SetNextToken(Aws::String && value)266     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
267 
268     /**
269      * <p>The <code>NextToken</code> value returned from a previous paginated
270      * <code>ListConfigurationHistory</code> request where <code>MaxResults</code> was
271      * used and the results exceeded the value of that parameter. Pagination continues
272      * from the end of the previous results that returned the <code>NextToken</code>
273      * value. This value is <code>null</code> when there are no more results to
274      * return.</p>
275      */
SetNextToken(const char * value)276     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
277 
278     /**
279      * <p>The <code>NextToken</code> value returned from a previous paginated
280      * <code>ListConfigurationHistory</code> request where <code>MaxResults</code> was
281      * used and the results exceeded the value of that parameter. Pagination continues
282      * from the end of the previous results that returned the <code>NextToken</code>
283      * value. This value is <code>null</code> when there are no more results to
284      * return.</p>
285      */
WithNextToken(const Aws::String & value)286     inline ListConfigurationHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
287 
288     /**
289      * <p>The <code>NextToken</code> value returned from a previous paginated
290      * <code>ListConfigurationHistory</code> request where <code>MaxResults</code> was
291      * used and the results exceeded the value of that parameter. Pagination continues
292      * from the end of the previous results that returned the <code>NextToken</code>
293      * value. This value is <code>null</code> when there are no more results to
294      * return.</p>
295      */
WithNextToken(Aws::String && value)296     inline ListConfigurationHistoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
297 
298     /**
299      * <p>The <code>NextToken</code> value returned from a previous paginated
300      * <code>ListConfigurationHistory</code> request where <code>MaxResults</code> was
301      * used and the results exceeded the value of that parameter. Pagination continues
302      * from the end of the previous results that returned the <code>NextToken</code>
303      * value. This value is <code>null</code> when there are no more results to
304      * return.</p>
305      */
WithNextToken(const char * value)306     inline ListConfigurationHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
307 
308   private:
309 
310     Aws::String m_resourceGroupName;
311     bool m_resourceGroupNameHasBeenSet;
312 
313     Aws::Utils::DateTime m_startTime;
314     bool m_startTimeHasBeenSet;
315 
316     Aws::Utils::DateTime m_endTime;
317     bool m_endTimeHasBeenSet;
318 
319     ConfigurationEventStatus m_eventStatus;
320     bool m_eventStatusHasBeenSet;
321 
322     int m_maxResults;
323     bool m_maxResultsHasBeenSet;
324 
325     Aws::String m_nextToken;
326     bool m_nextTokenHasBeenSet;
327   };
328 
329 } // namespace Model
330 } // namespace ApplicationInsights
331 } // namespace Aws
332