/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The Amazon Location rule action sends device location updates from an MQTT
* message to an Amazon Location tracker resource.See Also:
AWS
* API Reference
The IAM role that grants permission to write to the Amazon Location * resource.
*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *The IAM role that grants permission to write to the Amazon Location * resource.
*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *The IAM role that grants permission to write to the Amazon Location * resource.
*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *The IAM role that grants permission to write to the Amazon Location * resource.
*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *The IAM role that grants permission to write to the Amazon Location * resource.
*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *The IAM role that grants permission to write to the Amazon Location * resource.
*/ inline LocationAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *The IAM role that grants permission to write to the Amazon Location * resource.
*/ inline LocationAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *The IAM role that grants permission to write to the Amazon Location * resource.
*/ inline LocationAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *The name of the tracker resource in Amazon Location in which the location is * updated.
*/ inline const Aws::String& GetTrackerName() const{ return m_trackerName; } /** *The name of the tracker resource in Amazon Location in which the location is * updated.
*/ inline bool TrackerNameHasBeenSet() const { return m_trackerNameHasBeenSet; } /** *The name of the tracker resource in Amazon Location in which the location is * updated.
*/ inline void SetTrackerName(const Aws::String& value) { m_trackerNameHasBeenSet = true; m_trackerName = value; } /** *The name of the tracker resource in Amazon Location in which the location is * updated.
*/ inline void SetTrackerName(Aws::String&& value) { m_trackerNameHasBeenSet = true; m_trackerName = std::move(value); } /** *The name of the tracker resource in Amazon Location in which the location is * updated.
*/ inline void SetTrackerName(const char* value) { m_trackerNameHasBeenSet = true; m_trackerName.assign(value); } /** *The name of the tracker resource in Amazon Location in which the location is * updated.
*/ inline LocationAction& WithTrackerName(const Aws::String& value) { SetTrackerName(value); return *this;} /** *The name of the tracker resource in Amazon Location in which the location is * updated.
*/ inline LocationAction& WithTrackerName(Aws::String&& value) { SetTrackerName(std::move(value)); return *this;} /** *The name of the tracker resource in Amazon Location in which the location is * updated.
*/ inline LocationAction& WithTrackerName(const char* value) { SetTrackerName(value); return *this;} /** *The unique ID of the device providing the location data.
*/ inline const Aws::String& GetDeviceId() const{ return m_deviceId; } /** *The unique ID of the device providing the location data.
*/ inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; } /** *The unique ID of the device providing the location data.
*/ inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; } /** *The unique ID of the device providing the location data.
*/ inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); } /** *The unique ID of the device providing the location data.
*/ inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); } /** *The unique ID of the device providing the location data.
*/ inline LocationAction& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;} /** *The unique ID of the device providing the location data.
*/ inline LocationAction& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;} /** *The unique ID of the device providing the location data.
*/ inline LocationAction& WithDeviceId(const char* value) { SetDeviceId(value); return *this;} /** *The time that the location data was sampled. The default value is the time * the MQTT message was processed.
*/ inline const LocationTimestamp& GetTimestamp() const{ return m_timestamp; } /** *The time that the location data was sampled. The default value is the time * the MQTT message was processed.
*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *The time that the location data was sampled. The default value is the time * the MQTT message was processed.
*/ inline void SetTimestamp(const LocationTimestamp& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *The time that the location data was sampled. The default value is the time * the MQTT message was processed.
*/ inline void SetTimestamp(LocationTimestamp&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *The time that the location data was sampled. The default value is the time * the MQTT message was processed.
*/ inline LocationAction& WithTimestamp(const LocationTimestamp& value) { SetTimestamp(value); return *this;} /** *The time that the location data was sampled. The default value is the time * the MQTT message was processed.
*/ inline LocationAction& WithTimestamp(LocationTimestamp&& value) { SetTimestamp(std::move(value)); return *this;} /** *A string that evaluates to a double value that represents the latitude of the * device's location.
*/ inline const Aws::String& GetLatitude() const{ return m_latitude; } /** *A string that evaluates to a double value that represents the latitude of the * device's location.
*/ inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; } /** *A string that evaluates to a double value that represents the latitude of the * device's location.
*/ inline void SetLatitude(const Aws::String& value) { m_latitudeHasBeenSet = true; m_latitude = value; } /** *A string that evaluates to a double value that represents the latitude of the * device's location.
*/ inline void SetLatitude(Aws::String&& value) { m_latitudeHasBeenSet = true; m_latitude = std::move(value); } /** *A string that evaluates to a double value that represents the latitude of the * device's location.
*/ inline void SetLatitude(const char* value) { m_latitudeHasBeenSet = true; m_latitude.assign(value); } /** *A string that evaluates to a double value that represents the latitude of the * device's location.
*/ inline LocationAction& WithLatitude(const Aws::String& value) { SetLatitude(value); return *this;} /** *A string that evaluates to a double value that represents the latitude of the * device's location.
*/ inline LocationAction& WithLatitude(Aws::String&& value) { SetLatitude(std::move(value)); return *this;} /** *A string that evaluates to a double value that represents the latitude of the * device's location.
*/ inline LocationAction& WithLatitude(const char* value) { SetLatitude(value); return *this;} /** *A string that evaluates to a double value that represents the longitude of * the device's location.
*/ inline const Aws::String& GetLongitude() const{ return m_longitude; } /** *A string that evaluates to a double value that represents the longitude of * the device's location.
*/ inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; } /** *A string that evaluates to a double value that represents the longitude of * the device's location.
*/ inline void SetLongitude(const Aws::String& value) { m_longitudeHasBeenSet = true; m_longitude = value; } /** *A string that evaluates to a double value that represents the longitude of * the device's location.
*/ inline void SetLongitude(Aws::String&& value) { m_longitudeHasBeenSet = true; m_longitude = std::move(value); } /** *A string that evaluates to a double value that represents the longitude of * the device's location.
*/ inline void SetLongitude(const char* value) { m_longitudeHasBeenSet = true; m_longitude.assign(value); } /** *A string that evaluates to a double value that represents the longitude of * the device's location.
*/ inline LocationAction& WithLongitude(const Aws::String& value) { SetLongitude(value); return *this;} /** *A string that evaluates to a double value that represents the longitude of * the device's location.
*/ inline LocationAction& WithLongitude(Aws::String&& value) { SetLongitude(std::move(value)); return *this;} /** *A string that evaluates to a double value that represents the longitude of * the device's location.
*/ inline LocationAction& WithLongitude(const char* value) { SetLongitude(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_trackerName; bool m_trackerNameHasBeenSet = false; Aws::String m_deviceId; bool m_deviceIdHasBeenSet = false; LocationTimestamp m_timestamp; bool m_timestampHasBeenSet = false; Aws::String m_latitude; bool m_latitudeHasBeenSet = false; Aws::String m_longitude; bool m_longitudeHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws