/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.geo.model; import java.io.Serializable; /** *
* Contains the device position details. *
*/ public class DevicePosition implements Serializable { /** ** The accuracy of the device position. *
*/ private PositionalAccuracy accuracy; /** ** The device whose position you retrieved. *
*
* Constraints:
* Length: 1 - 100
* Pattern: ^[-._\p{L}\p{N}]+$
*/
private String deviceId;
/**
*
* The last known device position. *
*/ private java.util.List* The properties associated with the position. *
*/ private java.util.Map
* The timestamp for when the tracker resource received the device position
* in ISO
* 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
*
* The timestamp at which the device's position was determined. Uses ISO
* 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
*
* The accuracy of the device position. *
* * @return* The accuracy of the device position. *
*/ public PositionalAccuracy getAccuracy() { return accuracy; } /** ** The accuracy of the device position. *
* * @param accuracy* The accuracy of the device position. *
*/ public void setAccuracy(PositionalAccuracy accuracy) { this.accuracy = accuracy; } /** ** The accuracy of the device position. *
** Returns a reference to this object so that method calls can be chained * together. * * @param accuracy
* The accuracy of the device position. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DevicePosition withAccuracy(PositionalAccuracy accuracy) { this.accuracy = accuracy; return this; } /** ** The device whose position you retrieved. *
*
* Constraints:
* Length: 1 - 100
* Pattern: ^[-._\p{L}\p{N}]+$
*
* @return
* The device whose position you retrieved. *
*/ public String getDeviceId() { return deviceId; } /** ** The device whose position you retrieved. *
*
* Constraints:
* Length: 1 - 100
* Pattern: ^[-._\p{L}\p{N}]+$
*
* @param deviceId
* The device whose position you retrieved. *
*/ public void setDeviceId(String deviceId) { this.deviceId = deviceId; } /** ** The device whose position you retrieved. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 100
* Pattern: ^[-._\p{L}\p{N}]+$
*
* @param deviceId
* The device whose position you retrieved. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DevicePosition withDeviceId(String deviceId) { this.deviceId = deviceId; return this; } /** ** The last known device position. *
* * @return* The last known device position. *
*/ public java.util.List* The last known device position. *
* * @param position* The last known device position. *
*/ public void setPosition(java.util.Collection* The last known device position. *
** Returns a reference to this object so that method calls can be chained * together. * * @param position
* The last known device position. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DevicePosition withPosition(Double... position) { if (getPosition() == null) { this.position = new java.util.ArrayList* The last known device position. *
** Returns a reference to this object so that method calls can be chained * together. * * @param position
* The last known device position. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DevicePosition withPosition(java.util.Collection* The properties associated with the position. *
* * @return* The properties associated with the position. *
*/ public java.util.Map* The properties associated with the position. *
* * @param positionProperties* The properties associated with the position. *
*/ public void setPositionProperties(java.util.Map* The properties associated with the position. *
** Returns a reference to this object so that method calls can be chained * together. * * @param positionProperties
* The properties associated with the position. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DevicePosition withPositionProperties(java.util.Map* The properties associated with the position. *
*
* The method adds a new key-value pair into PositionProperties parameter,
* and returns a reference to this object so that method calls can be
* chained together.
*
* @param key The key of the entry to be added into PositionProperties.
* @param value The corresponding value of the entry to be added into
* PositionProperties.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public DevicePosition addPositionPropertiesEntry(String key, String value) {
if (null == this.positionProperties) {
this.positionProperties = new java.util.HashMap
* Returns a reference to this object so that method calls can be chained
* together.
*/
public DevicePosition clearPositionPropertiesEntries() {
this.positionProperties = null;
return this;
}
/**
*
* The timestamp for when the tracker resource received the device position
* in ISO
* 8601 format:
* The timestamp for when the tracker resource received the device
* position in
* ISO 8601 format:
* The timestamp for when the tracker resource received the device position
* in ISO
* 8601 format:
* The timestamp for when the tracker resource received the
* device position in ISO
* 8601 format:
* The timestamp for when the tracker resource received the device position
* in ISO
* 8601 format:
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param receivedTime
* The timestamp for when the tracker resource received the
* device position in ISO
* 8601 format:
* The timestamp at which the device's position was determined. Uses ISO
* 8601 format:
* The timestamp at which the device's position was determined. Uses
*
* ISO 8601 format:
* The timestamp at which the device's position was determined. Uses ISO
* 8601 format:
* The timestamp at which the device's position was determined.
* Uses ISO
* 8601 format:
* The timestamp at which the device's position was determined. Uses ISO
* 8601 format:
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param sampleTime
* The timestamp at which the device's position was determined.
* Uses ISO
* 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
* YYYY-MM-DDThh:mm:ss.sssZ
.
* YYYY-MM-DDThh:mm:ss.sssZ
.
* YYYY-MM-DDThh:mm:ss.sssZ
.
* YYYY-MM-DDThh:mm:ss.sssZ
.
* YYYY-MM-DDThh:mm:ss.sssZ
.
* YYYY-MM-DDThh:mm:ss.sssZ
.
* YYYY-MM-DDThh:mm:ss.sssZ
.
* YYYY-MM-DDThh:mm:ss.sssZ
.
* YYYY-MM-DDThh:mm:ss.sssZ
.
* YYYY-MM-DDThh:mm:ss.sssZ
.
* YYYY-MM-DDThh:mm:ss.sssZ
.
*