AWS SDK for C++  1.9.129
AWS SDK for C++
GetDevicePositionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace LocationService
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetDevicePosition"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
39 
43  inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
44 
48  inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
49 
53  inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
54 
58  inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
59 
63  inline GetDevicePositionRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
64 
68  inline GetDevicePositionRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
69 
73  inline GetDevicePositionRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
74 
75 
79  inline const Aws::String& GetTrackerName() const{ return m_trackerName; }
80 
84  inline bool TrackerNameHasBeenSet() const { return m_trackerNameHasBeenSet; }
85 
89  inline void SetTrackerName(const Aws::String& value) { m_trackerNameHasBeenSet = true; m_trackerName = value; }
90 
94  inline void SetTrackerName(Aws::String&& value) { m_trackerNameHasBeenSet = true; m_trackerName = std::move(value); }
95 
99  inline void SetTrackerName(const char* value) { m_trackerNameHasBeenSet = true; m_trackerName.assign(value); }
100 
104  inline GetDevicePositionRequest& WithTrackerName(const Aws::String& value) { SetTrackerName(value); return *this;}
105 
109  inline GetDevicePositionRequest& WithTrackerName(Aws::String&& value) { SetTrackerName(std::move(value)); return *this;}
110 
114  inline GetDevicePositionRequest& WithTrackerName(const char* value) { SetTrackerName(value); return *this;}
115 
116  private:
117 
118  Aws::String m_deviceId;
119  bool m_deviceIdHasBeenSet;
120 
121  Aws::String m_trackerName;
122  bool m_trackerNameHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace LocationService
127 } // namespace Aws
Aws::LocationService::Model::GetDevicePositionRequest::WithDeviceId
GetDevicePositionRequest & WithDeviceId(Aws::String &&value)
Definition: GetDevicePositionRequest.h:68
Aws::LocationService::Model::GetDevicePositionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetDevicePositionRequest.h:30
Aws::LocationService::Model::GetDevicePositionRequest::SetDeviceId
void SetDeviceId(const char *value)
Definition: GetDevicePositionRequest.h:58
Aws::LocationService::Model::GetDevicePositionRequest::SetTrackerName
void SetTrackerName(Aws::String &&value)
Definition: GetDevicePositionRequest.h:94
Aws::LocationService::Model::GetDevicePositionRequest::SetTrackerName
void SetTrackerName(const Aws::String &value)
Definition: GetDevicePositionRequest.h:89
Aws::LocationService::Model::GetDevicePositionRequest::SetDeviceId
void SetDeviceId(Aws::String &&value)
Definition: GetDevicePositionRequest.h:53
Aws::LocationService::Model::GetDevicePositionRequest::SetTrackerName
void SetTrackerName(const char *value)
Definition: GetDevicePositionRequest.h:99
Aws::LocationService::Model::GetDevicePositionRequest::GetDevicePositionRequest
GetDevicePositionRequest()
AWS_LOCATIONSERVICE_API
#define AWS_LOCATIONSERVICE_API
Definition: LocationService_EXPORTS.h:28
Aws::LocationService::Model::GetDevicePositionRequest::GetDeviceId
const Aws::String & GetDeviceId() const
Definition: GetDevicePositionRequest.h:38
LocationServiceRequest.h
LocationService_EXPORTS.h
Aws::LocationService::Model::GetDevicePositionRequest::WithTrackerName
GetDevicePositionRequest & WithTrackerName(const char *value)
Definition: GetDevicePositionRequest.h:114
Aws::LocationService::Model::GetDevicePositionRequest::WithTrackerName
GetDevicePositionRequest & WithTrackerName(Aws::String &&value)
Definition: GetDevicePositionRequest.h:109
Aws::LocationService::Model::GetDevicePositionRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::LocationService::Model::GetDevicePositionRequest::GetTrackerName
const Aws::String & GetTrackerName() const
Definition: GetDevicePositionRequest.h:79
Aws::LocationService::Model::GetDevicePositionRequest::SetDeviceId
void SetDeviceId(const Aws::String &value)
Definition: GetDevicePositionRequest.h:48
Aws::LocationService::Model::GetDevicePositionRequest::DeviceIdHasBeenSet
bool DeviceIdHasBeenSet() const
Definition: GetDevicePositionRequest.h:43
Aws::LocationService::Model::GetDevicePositionRequest::WithTrackerName
GetDevicePositionRequest & WithTrackerName(const Aws::String &value)
Definition: GetDevicePositionRequest.h:104
Aws
Definition: AccessManagementClient.h:15
Aws::LocationService::Model::GetDevicePositionRequest::WithDeviceId
GetDevicePositionRequest & WithDeviceId(const Aws::String &value)
Definition: GetDevicePositionRequest.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LocationService::Model::GetDevicePositionRequest
Definition: GetDevicePositionRequest.h:22
Aws::LocationService::Model::GetDevicePositionRequest::TrackerNameHasBeenSet
bool TrackerNameHasBeenSet() const
Definition: GetDevicePositionRequest.h:84
Aws::LocationService::Model::GetDevicePositionRequest::WithDeviceId
GetDevicePositionRequest & WithDeviceId(const char *value)
Definition: GetDevicePositionRequest.h:73
Aws::LocationService::LocationServiceRequest
Definition: LocationServiceRequest.h:17