AWS SDK for C++  1.9.46
AWS SDK for C++
ListDeviceEventsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AlexaForBusiness
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "ListDeviceEvents"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetDeviceArn() const{ return m_deviceArn; }
42 
46  inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
47 
51  inline void SetDeviceArn(const Aws::String& value) { m_deviceArnHasBeenSet = true; m_deviceArn = value; }
52 
56  inline void SetDeviceArn(Aws::String&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = std::move(value); }
57 
61  inline void SetDeviceArn(const char* value) { m_deviceArnHasBeenSet = true; m_deviceArn.assign(value); }
62 
66  inline ListDeviceEventsRequest& WithDeviceArn(const Aws::String& value) { SetDeviceArn(value); return *this;}
67 
71  inline ListDeviceEventsRequest& WithDeviceArn(Aws::String&& value) { SetDeviceArn(std::move(value)); return *this;}
72 
76  inline ListDeviceEventsRequest& WithDeviceArn(const char* value) { SetDeviceArn(value); return *this;}
77 
78 
85  inline const DeviceEventType& GetEventType() const{ return m_eventType; }
86 
93  inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
94 
101  inline void SetEventType(const DeviceEventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
102 
109  inline void SetEventType(DeviceEventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
110 
117  inline ListDeviceEventsRequest& WithEventType(const DeviceEventType& value) { SetEventType(value); return *this;}
118 
125  inline ListDeviceEventsRequest& WithEventType(DeviceEventType&& value) { SetEventType(std::move(value)); return *this;}
126 
127 
135  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
136 
144  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
145 
153  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
154 
162  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
163 
171  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
172 
180  inline ListDeviceEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
181 
189  inline ListDeviceEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
190 
198  inline ListDeviceEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
199 
200 
206  inline int GetMaxResults() const{ return m_maxResults; }
207 
213  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
214 
220  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
221 
227  inline ListDeviceEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
228 
229  private:
230 
231  Aws::String m_deviceArn;
232  bool m_deviceArnHasBeenSet;
233 
234  DeviceEventType m_eventType;
235  bool m_eventTypeHasBeenSet;
236 
237  Aws::String m_nextToken;
238  bool m_nextTokenHasBeenSet;
239 
240  int m_maxResults;
241  bool m_maxResultsHasBeenSet;
242  };
243 
244 } // namespace Model
245 } // namespace AlexaForBusiness
246 } // namespace Aws
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::SetDeviceArn
void SetDeviceArn(const Aws::String &value)
Definition: ListDeviceEventsRequest.h:51
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDeviceEventsRequest.h:153
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::WithDeviceArn
ListDeviceEventsRequest & WithDeviceArn(Aws::String &&value)
Definition: ListDeviceEventsRequest.h:71
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListDeviceEventsRequest.h:206
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListDeviceEventsRequest.h:31
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::GetEventType
const DeviceEventType & GetEventType() const
Definition: ListDeviceEventsRequest.h:85
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::WithNextToken
ListDeviceEventsRequest & WithNextToken(Aws::String &&value)
Definition: ListDeviceEventsRequest.h:189
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListDeviceEventsRequest.h:213
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListDeviceEventsRequest.h:220
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::ListDeviceEventsRequest
ListDeviceEventsRequest()
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::DeviceEventType
DeviceEventType
Definition: DeviceEventType.h:17
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::SetDeviceArn
void SetDeviceArn(const char *value)
Definition: ListDeviceEventsRequest.h:61
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::SetEventType
void SetEventType(DeviceEventType &&value)
Definition: ListDeviceEventsRequest.h:109
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::SetDeviceArn
void SetDeviceArn(Aws::String &&value)
Definition: ListDeviceEventsRequest.h:56
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::WithDeviceArn
ListDeviceEventsRequest & WithDeviceArn(const Aws::String &value)
Definition: ListDeviceEventsRequest.h:66
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::WithNextToken
ListDeviceEventsRequest & WithNextToken(const Aws::String &value)
Definition: ListDeviceEventsRequest.h:180
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::WithMaxResults
ListDeviceEventsRequest & WithMaxResults(int value)
Definition: ListDeviceEventsRequest.h:227
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListDeviceEventsRequest.h:144
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeviceEventType.h
AWSString.h
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::SetEventType
void SetEventType(const DeviceEventType &value)
Definition: ListDeviceEventsRequest.h:101
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::WithEventType
ListDeviceEventsRequest & WithEventType(DeviceEventType &&value)
Definition: ListDeviceEventsRequest.h:125
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::EventTypeHasBeenSet
bool EventTypeHasBeenSet() const
Definition: ListDeviceEventsRequest.h:93
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::WithDeviceArn
ListDeviceEventsRequest & WithDeviceArn(const char *value)
Definition: ListDeviceEventsRequest.h:76
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::WithEventType
ListDeviceEventsRequest & WithEventType(const DeviceEventType &value)
Definition: ListDeviceEventsRequest.h:117
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::AlexaForBusinessRequest
Definition: AlexaForBusinessRequest.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::GetDeviceArn
const Aws::String & GetDeviceArn() const
Definition: ListDeviceEventsRequest.h:41
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest
Definition: ListDeviceEventsRequest.h:23
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDeviceEventsRequest.h:162
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDeviceEventsRequest.h:135
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::DeviceArnHasBeenSet
bool DeviceArnHasBeenSet() const
Definition: ListDeviceEventsRequest.h:46
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListDeviceEventsRequest.h:171
Aws::AlexaForBusiness::Model::ListDeviceEventsRequest::WithNextToken
ListDeviceEventsRequest & WithNextToken(const char *value)
Definition: ListDeviceEventsRequest.h:198
AlexaForBusinessRequest.h