AWS SDK for C++  1.9.123
AWS SDK for C++
BatchUpdateDevicePositionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace LocationService
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "BatchUpdateDevicePosition"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetTrackerName() const{ return m_trackerName; }
41 
45  inline bool TrackerNameHasBeenSet() const { return m_trackerNameHasBeenSet; }
46 
50  inline void SetTrackerName(const Aws::String& value) { m_trackerNameHasBeenSet = true; m_trackerName = value; }
51 
55  inline void SetTrackerName(Aws::String&& value) { m_trackerNameHasBeenSet = true; m_trackerName = std::move(value); }
56 
60  inline void SetTrackerName(const char* value) { m_trackerNameHasBeenSet = true; m_trackerName.assign(value); }
61 
65  inline BatchUpdateDevicePositionRequest& WithTrackerName(const Aws::String& value) { SetTrackerName(value); return *this;}
66 
70  inline BatchUpdateDevicePositionRequest& WithTrackerName(Aws::String&& value) { SetTrackerName(std::move(value)); return *this;}
71 
75  inline BatchUpdateDevicePositionRequest& WithTrackerName(const char* value) { SetTrackerName(value); return *this;}
76 
77 
81  inline const Aws::Vector<DevicePositionUpdate>& GetUpdates() const{ return m_updates; }
82 
86  inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
87 
91  inline void SetUpdates(const Aws::Vector<DevicePositionUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
92 
96  inline void SetUpdates(Aws::Vector<DevicePositionUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
97 
101  inline BatchUpdateDevicePositionRequest& WithUpdates(const Aws::Vector<DevicePositionUpdate>& value) { SetUpdates(value); return *this;}
102 
106  inline BatchUpdateDevicePositionRequest& WithUpdates(Aws::Vector<DevicePositionUpdate>&& value) { SetUpdates(std::move(value)); return *this;}
107 
111  inline BatchUpdateDevicePositionRequest& AddUpdates(const DevicePositionUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
112 
116  inline BatchUpdateDevicePositionRequest& AddUpdates(DevicePositionUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(std::move(value)); return *this; }
117 
118  private:
119 
120  Aws::String m_trackerName;
121  bool m_trackerNameHasBeenSet;
122 
124  bool m_updatesHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace LocationService
129 } // namespace Aws
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::BatchUpdateDevicePositionRequest
BatchUpdateDevicePositionRequest()
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::SetUpdates
void SetUpdates(Aws::Vector< DevicePositionUpdate > &&value)
Definition: BatchUpdateDevicePositionRequest.h:96
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchUpdateDevicePositionRequest.h:32
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::AddUpdates
BatchUpdateDevicePositionRequest & AddUpdates(const DevicePositionUpdate &value)
Definition: BatchUpdateDevicePositionRequest.h:111
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::WithUpdates
BatchUpdateDevicePositionRequest & WithUpdates(Aws::Vector< DevicePositionUpdate > &&value)
Definition: BatchUpdateDevicePositionRequest.h:106
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::UpdatesHasBeenSet
bool UpdatesHasBeenSet() const
Definition: BatchUpdateDevicePositionRequest.h:86
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::SetTrackerName
void SetTrackerName(const char *value)
Definition: BatchUpdateDevicePositionRequest.h:60
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::WithTrackerName
BatchUpdateDevicePositionRequest & WithTrackerName(Aws::String &&value)
Definition: BatchUpdateDevicePositionRequest.h:70
Aws::LocationService::Model::DevicePositionUpdate
Definition: DevicePositionUpdate.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::AddUpdates
BatchUpdateDevicePositionRequest & AddUpdates(DevicePositionUpdate &&value)
Definition: BatchUpdateDevicePositionRequest.h:116
AWSVector.h
AWS_LOCATIONSERVICE_API
#define AWS_LOCATIONSERVICE_API
Definition: LocationService_EXPORTS.h:28
LocationServiceRequest.h
LocationService_EXPORTS.h
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::WithUpdates
BatchUpdateDevicePositionRequest & WithUpdates(const Aws::Vector< DevicePositionUpdate > &value)
Definition: BatchUpdateDevicePositionRequest.h:101
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::TrackerNameHasBeenSet
bool TrackerNameHasBeenSet() const
Definition: BatchUpdateDevicePositionRequest.h:45
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::GetTrackerName
const Aws::String & GetTrackerName() const
Definition: BatchUpdateDevicePositionRequest.h:40
AWSString.h
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::GetUpdates
const Aws::Vector< DevicePositionUpdate > & GetUpdates() const
Definition: BatchUpdateDevicePositionRequest.h:81
DevicePositionUpdate.h
Aws::LocationService::Model::BatchUpdateDevicePositionRequest
Definition: BatchUpdateDevicePositionRequest.h:24
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::WithTrackerName
BatchUpdateDevicePositionRequest & WithTrackerName(const char *value)
Definition: BatchUpdateDevicePositionRequest.h:75
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::SetTrackerName
void SetTrackerName(Aws::String &&value)
Definition: BatchUpdateDevicePositionRequest.h:55
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::SetTrackerName
void SetTrackerName(const Aws::String &value)
Definition: BatchUpdateDevicePositionRequest.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::WithTrackerName
BatchUpdateDevicePositionRequest & WithTrackerName(const Aws::String &value)
Definition: BatchUpdateDevicePositionRequest.h:65
Aws::LocationService::Model::BatchUpdateDevicePositionRequest::SetUpdates
void SetUpdates(const Aws::Vector< DevicePositionUpdate > &value)
Definition: BatchUpdateDevicePositionRequest.h:91
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LocationService::LocationServiceRequest
Definition: LocationServiceRequest.h:17