AWS SDK for C++  1.9.109
AWS SDK for C++
ListOTAUpdatesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace IoT
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListOTAUpdates"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline int GetMaxResults() const{ return m_maxResults; }
46 
50  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
51 
55  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
56 
60  inline ListOTAUpdatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
61 
62 
66  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
67 
71  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 
76  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
77 
81  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
82 
86  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
87 
91  inline ListOTAUpdatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
92 
96  inline ListOTAUpdatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
97 
101  inline ListOTAUpdatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
102 
103 
107  inline const OTAUpdateStatus& GetOtaUpdateStatus() const{ return m_otaUpdateStatus; }
108 
112  inline bool OtaUpdateStatusHasBeenSet() const { return m_otaUpdateStatusHasBeenSet; }
113 
117  inline void SetOtaUpdateStatus(const OTAUpdateStatus& value) { m_otaUpdateStatusHasBeenSet = true; m_otaUpdateStatus = value; }
118 
122  inline void SetOtaUpdateStatus(OTAUpdateStatus&& value) { m_otaUpdateStatusHasBeenSet = true; m_otaUpdateStatus = std::move(value); }
123 
127  inline ListOTAUpdatesRequest& WithOtaUpdateStatus(const OTAUpdateStatus& value) { SetOtaUpdateStatus(value); return *this;}
128 
132  inline ListOTAUpdatesRequest& WithOtaUpdateStatus(OTAUpdateStatus&& value) { SetOtaUpdateStatus(std::move(value)); return *this;}
133 
134  private:
135 
136  int m_maxResults;
137  bool m_maxResultsHasBeenSet;
138 
139  Aws::String m_nextToken;
140  bool m_nextTokenHasBeenSet;
141 
142  OTAUpdateStatus m_otaUpdateStatus;
143  bool m_otaUpdateStatusHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace IoT
148 } // namespace Aws
Aws::IoT::Model::ListOTAUpdatesRequest::WithOtaUpdateStatus
ListOTAUpdatesRequest & WithOtaUpdateStatus(const OTAUpdateStatus &value)
Definition: ListOTAUpdatesRequest.h:127
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListOTAUpdatesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListOTAUpdatesRequest.h:66
Aws::IoT::Model::ListOTAUpdatesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListOTAUpdatesRequest.h:55
Aws::IoT::Model::ListOTAUpdatesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListOTAUpdatesRequest.h:35
Aws::IoT::Model::ListOTAUpdatesRequest::SetOtaUpdateStatus
void SetOtaUpdateStatus(const OTAUpdateStatus &value)
Definition: ListOTAUpdatesRequest.h:117
Aws::IoT::Model::ListOTAUpdatesRequest
Definition: ListOTAUpdatesRequest.h:27
Aws::IoT::Model::ListOTAUpdatesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListOTAUpdatesRequest.h:86
Aws::IoT::Model::OTAUpdateStatus
OTAUpdateStatus
Definition: OTAUpdateStatus.h:17
Aws::IoT::Model::ListOTAUpdatesRequest::GetOtaUpdateStatus
const OTAUpdateStatus & GetOtaUpdateStatus() const
Definition: ListOTAUpdatesRequest.h:107
Aws::IoT::Model::ListOTAUpdatesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListOTAUpdatesRequest.h:76
Aws::IoT::Model::ListOTAUpdatesRequest::WithOtaUpdateStatus
ListOTAUpdatesRequest & WithOtaUpdateStatus(OTAUpdateStatus &&value)
Definition: ListOTAUpdatesRequest.h:132
Aws::IoT::Model::ListOTAUpdatesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListOTAUpdatesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListOTAUpdatesRequest.h:45
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
OTAUpdateStatus.h
Aws::IoT::Model::ListOTAUpdatesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListOTAUpdatesRequest.h:81
Aws::IoT::Model::ListOTAUpdatesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListOTAUpdatesRequest.h:71
Aws::IoT::Model::ListOTAUpdatesRequest::WithNextToken
ListOTAUpdatesRequest & WithNextToken(const char *value)
Definition: ListOTAUpdatesRequest.h:101
Aws::IoT::Model::ListOTAUpdatesRequest::WithNextToken
ListOTAUpdatesRequest & WithNextToken(Aws::String &&value)
Definition: ListOTAUpdatesRequest.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListOTAUpdatesRequest::OtaUpdateStatusHasBeenSet
bool OtaUpdateStatusHasBeenSet() const
Definition: ListOTAUpdatesRequest.h:112
Aws::IoT::Model::ListOTAUpdatesRequest::WithMaxResults
ListOTAUpdatesRequest & WithMaxResults(int value)
Definition: ListOTAUpdatesRequest.h:60
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListOTAUpdatesRequest::ListOTAUpdatesRequest
ListOTAUpdatesRequest()
Aws::IoT::Model::ListOTAUpdatesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListOTAUpdatesRequest.h:50
IoTRequest.h
Aws::IoT::Model::ListOTAUpdatesRequest::WithNextToken
ListOTAUpdatesRequest & WithNextToken(const Aws::String &value)
Definition: ListOTAUpdatesRequest.h:91
Aws::IoT::Model::ListOTAUpdatesRequest::SerializePayload
Aws::String SerializePayload() const override
IoT_EXPORTS.h
Aws::IoT::Model::ListOTAUpdatesRequest::SetOtaUpdateStatus
void SetOtaUpdateStatus(OTAUpdateStatus &&value)
Definition: ListOTAUpdatesRequest.h:122