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/iotevents-data/IoTEventsData_EXPORTS.h>
8 #include <aws/iotevents-data/IoTEventsDataRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16     class URI;
17 } //namespace Http
18 namespace IoTEventsData
19 {
20 namespace Model
21 {
22 
23   /**
24    */
25   class AWS_IOTEVENTSDATA_API ListAlarmsRequest : public IoTEventsDataRequest
26   {
27   public:
28     ListAlarmsRequest();
29 
30     // Service request name is the Operation name which will send this request out,
31     // each operation should has unique request name, so that we can get operation's name from this request.
32     // Note: this is not true for response, multiple operations may have the same response name,
33     // so we can not get operation's name from response.
GetServiceRequestName()34     inline virtual const char* GetServiceRequestName() const override { return "ListAlarms"; }
35 
36     Aws::String SerializePayload() const override;
37 
38     void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
41     /**
42      * <p>The name of the alarm model.</p>
43      */
GetAlarmModelName()44     inline const Aws::String& GetAlarmModelName() const{ return m_alarmModelName; }
45 
46     /**
47      * <p>The name of the alarm model.</p>
48      */
AlarmModelNameHasBeenSet()49     inline bool AlarmModelNameHasBeenSet() const { return m_alarmModelNameHasBeenSet; }
50 
51     /**
52      * <p>The name of the alarm model.</p>
53      */
SetAlarmModelName(const Aws::String & value)54     inline void SetAlarmModelName(const Aws::String& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = value; }
55 
56     /**
57      * <p>The name of the alarm model.</p>
58      */
SetAlarmModelName(Aws::String && value)59     inline void SetAlarmModelName(Aws::String&& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = std::move(value); }
60 
61     /**
62      * <p>The name of the alarm model.</p>
63      */
SetAlarmModelName(const char * value)64     inline void SetAlarmModelName(const char* value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName.assign(value); }
65 
66     /**
67      * <p>The name of the alarm model.</p>
68      */
WithAlarmModelName(const Aws::String & value)69     inline ListAlarmsRequest& WithAlarmModelName(const Aws::String& value) { SetAlarmModelName(value); return *this;}
70 
71     /**
72      * <p>The name of the alarm model.</p>
73      */
WithAlarmModelName(Aws::String && value)74     inline ListAlarmsRequest& WithAlarmModelName(Aws::String&& value) { SetAlarmModelName(std::move(value)); return *this;}
75 
76     /**
77      * <p>The name of the alarm model.</p>
78      */
WithAlarmModelName(const char * value)79     inline ListAlarmsRequest& WithAlarmModelName(const char* value) { SetAlarmModelName(value); return *this;}
80 
81 
82     /**
83      * <p>The token that you can use to return the next set of results.</p>
84      */
GetNextToken()85     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 
87     /**
88      * <p>The token that you can use to return the next set of results.</p>
89      */
NextTokenHasBeenSet()90     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
91 
92     /**
93      * <p>The token that you can use to return the next set of results.</p>
94      */
SetNextToken(const Aws::String & value)95     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
96 
97     /**
98      * <p>The token that you can use to return the next set of results.</p>
99      */
SetNextToken(Aws::String && value)100     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
101 
102     /**
103      * <p>The token that you can use to return the next set of results.</p>
104      */
SetNextToken(const char * value)105     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
106 
107     /**
108      * <p>The token that you can use to return the next set of results.</p>
109      */
WithNextToken(const Aws::String & value)110     inline ListAlarmsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
111 
112     /**
113      * <p>The token that you can use to return the next set of results.</p>
114      */
WithNextToken(Aws::String && value)115     inline ListAlarmsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
116 
117     /**
118      * <p>The token that you can use to return the next set of results.</p>
119      */
WithNextToken(const char * value)120     inline ListAlarmsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122 
123     /**
124      * <p>The maximum number of results to be returned per request.</p>
125      */
GetMaxResults()126     inline int GetMaxResults() const{ return m_maxResults; }
127 
128     /**
129      * <p>The maximum number of results to be returned per request.</p>
130      */
MaxResultsHasBeenSet()131     inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
132 
133     /**
134      * <p>The maximum number of results to be returned per request.</p>
135      */
SetMaxResults(int value)136     inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
137 
138     /**
139      * <p>The maximum number of results to be returned per request.</p>
140      */
WithMaxResults(int value)141     inline ListAlarmsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
142 
143   private:
144 
145     Aws::String m_alarmModelName;
146     bool m_alarmModelNameHasBeenSet;
147 
148     Aws::String m_nextToken;
149     bool m_nextTokenHasBeenSet;
150 
151     int m_maxResults;
152     bool m_maxResultsHasBeenSet;
153   };
154 
155 } // namespace Model
156 } // namespace IoTEventsData
157 } // namespace Aws
158