AWS SDK for C++  1.9.104
AWS SDK for C++
SendDataToWirelessDeviceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoTWireless
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 "SendDataToWirelessDevice"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetId() const{ return m_id; }
40 
44  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 
49  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 
54  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
55 
59  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
60 
64  inline SendDataToWirelessDeviceRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
65 
69  inline SendDataToWirelessDeviceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
70 
74  inline SendDataToWirelessDeviceRequest& WithId(const char* value) { SetId(value); return *this;}
75 
76 
82  inline int GetTransmitMode() const{ return m_transmitMode; }
83 
89  inline bool TransmitModeHasBeenSet() const { return m_transmitModeHasBeenSet; }
90 
96  inline void SetTransmitMode(int value) { m_transmitModeHasBeenSet = true; m_transmitMode = value; }
97 
103  inline SendDataToWirelessDeviceRequest& WithTransmitMode(int value) { SetTransmitMode(value); return *this;}
104 
105 
109  inline const Aws::String& GetPayloadData() const{ return m_payloadData; }
110 
114  inline bool PayloadDataHasBeenSet() const { return m_payloadDataHasBeenSet; }
115 
119  inline void SetPayloadData(const Aws::String& value) { m_payloadDataHasBeenSet = true; m_payloadData = value; }
120 
124  inline void SetPayloadData(Aws::String&& value) { m_payloadDataHasBeenSet = true; m_payloadData = std::move(value); }
125 
129  inline void SetPayloadData(const char* value) { m_payloadDataHasBeenSet = true; m_payloadData.assign(value); }
130 
134  inline SendDataToWirelessDeviceRequest& WithPayloadData(const Aws::String& value) { SetPayloadData(value); return *this;}
135 
139  inline SendDataToWirelessDeviceRequest& WithPayloadData(Aws::String&& value) { SetPayloadData(std::move(value)); return *this;}
140 
144  inline SendDataToWirelessDeviceRequest& WithPayloadData(const char* value) { SetPayloadData(value); return *this;}
145 
146 
150  inline const WirelessMetadata& GetWirelessMetadata() const{ return m_wirelessMetadata; }
151 
155  inline bool WirelessMetadataHasBeenSet() const { return m_wirelessMetadataHasBeenSet; }
156 
160  inline void SetWirelessMetadata(const WirelessMetadata& value) { m_wirelessMetadataHasBeenSet = true; m_wirelessMetadata = value; }
161 
165  inline void SetWirelessMetadata(WirelessMetadata&& value) { m_wirelessMetadataHasBeenSet = true; m_wirelessMetadata = std::move(value); }
166 
170  inline SendDataToWirelessDeviceRequest& WithWirelessMetadata(const WirelessMetadata& value) { SetWirelessMetadata(value); return *this;}
171 
175  inline SendDataToWirelessDeviceRequest& WithWirelessMetadata(WirelessMetadata&& value) { SetWirelessMetadata(std::move(value)); return *this;}
176 
177  private:
178 
179  Aws::String m_id;
180  bool m_idHasBeenSet;
181 
182  int m_transmitMode;
183  bool m_transmitModeHasBeenSet;
184 
185  Aws::String m_payloadData;
186  bool m_payloadDataHasBeenSet;
187 
188  WirelessMetadata m_wirelessMetadata;
189  bool m_wirelessMetadataHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace IoTWireless
194 } // namespace Aws
AWS_IOTWIRELESS_API
#define AWS_IOTWIRELESS_API
Definition: IoTWireless_EXPORTS.h:28
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::GetTransmitMode
int GetTransmitMode() const
Definition: SendDataToWirelessDeviceRequest.h:82
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::SetPayloadData
void SetPayloadData(const Aws::String &value)
Definition: SendDataToWirelessDeviceRequest.h:119
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::WithWirelessMetadata
SendDataToWirelessDeviceRequest & WithWirelessMetadata(const WirelessMetadata &value)
Definition: SendDataToWirelessDeviceRequest.h:170
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: SendDataToWirelessDeviceRequest.h:44
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::TransmitModeHasBeenSet
bool TransmitModeHasBeenSet() const
Definition: SendDataToWirelessDeviceRequest.h:89
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::SetPayloadData
void SetPayloadData(Aws::String &&value)
Definition: SendDataToWirelessDeviceRequest.h:124
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::SetId
void SetId(Aws::String &&value)
Definition: SendDataToWirelessDeviceRequest.h:54
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::SetTransmitMode
void SetTransmitMode(int value)
Definition: SendDataToWirelessDeviceRequest.h:96
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SendDataToWirelessDeviceRequest.h:31
IoTWireless_EXPORTS.h
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::SetWirelessMetadata
void SetWirelessMetadata(WirelessMetadata &&value)
Definition: SendDataToWirelessDeviceRequest.h:165
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::WithId
SendDataToWirelessDeviceRequest & WithId(const char *value)
Definition: SendDataToWirelessDeviceRequest.h:74
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::SetId
void SetId(const Aws::String &value)
Definition: SendDataToWirelessDeviceRequest.h:49
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::WithWirelessMetadata
SendDataToWirelessDeviceRequest & WithWirelessMetadata(WirelessMetadata &&value)
Definition: SendDataToWirelessDeviceRequest.h:175
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::SetWirelessMetadata
void SetWirelessMetadata(const WirelessMetadata &value)
Definition: SendDataToWirelessDeviceRequest.h:160
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::SetId
void SetId(const char *value)
Definition: SendDataToWirelessDeviceRequest.h:59
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::WithId
SendDataToWirelessDeviceRequest & WithId(Aws::String &&value)
Definition: SendDataToWirelessDeviceRequest.h:69
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::WirelessMetadataHasBeenSet
bool WirelessMetadataHasBeenSet() const
Definition: SendDataToWirelessDeviceRequest.h:155
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::GetWirelessMetadata
const WirelessMetadata & GetWirelessMetadata() const
Definition: SendDataToWirelessDeviceRequest.h:150
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::WithPayloadData
SendDataToWirelessDeviceRequest & WithPayloadData(const char *value)
Definition: SendDataToWirelessDeviceRequest.h:144
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::GetPayloadData
const Aws::String & GetPayloadData() const
Definition: SendDataToWirelessDeviceRequest.h:109
Aws::IoTWireless::IoTWirelessRequest
Definition: IoTWirelessRequest.h:17
AWSString.h
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::SetPayloadData
void SetPayloadData(const char *value)
Definition: SendDataToWirelessDeviceRequest.h:129
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::GetId
const Aws::String & GetId() const
Definition: SendDataToWirelessDeviceRequest.h:39
WirelessMetadata.h
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::WithPayloadData
SendDataToWirelessDeviceRequest & WithPayloadData(Aws::String &&value)
Definition: SendDataToWirelessDeviceRequest.h:139
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::PayloadDataHasBeenSet
bool PayloadDataHasBeenSet() const
Definition: SendDataToWirelessDeviceRequest.h:114
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::WithId
SendDataToWirelessDeviceRequest & WithId(const Aws::String &value)
Definition: SendDataToWirelessDeviceRequest.h:64
Aws
Definition: AccessManagementClient.h:15
IoTWirelessRequest.h
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::SendDataToWirelessDeviceRequest
SendDataToWirelessDeviceRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest
Definition: SendDataToWirelessDeviceRequest.h:23
Aws::IoTWireless::Model::WirelessMetadata
Definition: WirelessMetadata.h:33
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::WithTransmitMode
SendDataToWirelessDeviceRequest & WithTransmitMode(int value)
Definition: SendDataToWirelessDeviceRequest.h:103
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::WithPayloadData
SendDataToWirelessDeviceRequest & WithPayloadData(const Aws::String &value)
Definition: SendDataToWirelessDeviceRequest.h:134
Aws::IoTWireless::Model::SendDataToWirelessDeviceRequest::SerializePayload
Aws::String SerializePayload() const override