/* * 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 error details for each device that failed to update its position. *
*/ public class BatchUpdateDevicePositionError implements Serializable { /** ** The device associated with the failed location update. *
*
* Constraints:
* Length: 1 - 100
* Pattern: ^[-._\p{L}\p{N}]+$
*/
private String deviceId;
/**
*
* Contains details related to the error code such as the error code and * error message. *
*/ private BatchItemError error; /** *
* The timestamp at which the device position was determined. Uses ISO
* 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
*
* The device associated with the failed location update. *
*
* Constraints:
* Length: 1 - 100
* Pattern: ^[-._\p{L}\p{N}]+$
*
* @return
* The device associated with the failed location update. *
*/ public String getDeviceId() { return deviceId; } /** ** The device associated with the failed location update. *
*
* Constraints:
* Length: 1 - 100
* Pattern: ^[-._\p{L}\p{N}]+$
*
* @param deviceId
* The device associated with the failed location update. *
*/ public void setDeviceId(String deviceId) { this.deviceId = deviceId; } /** ** The device associated with the failed location update. *
** 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 associated with the failed location update. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BatchUpdateDevicePositionError withDeviceId(String deviceId) { this.deviceId = deviceId; return this; } /** ** Contains details related to the error code such as the error code and * error message. *
* * @return* Contains details related to the error code such as the error code * and error message. *
*/ public BatchItemError getError() { return error; } /** ** Contains details related to the error code such as the error code and * error message. *
* * @param error* Contains details related to the error code such as the error * code and error message. *
*/ public void setError(BatchItemError error) { this.error = error; } /** ** Contains details related to the error code such as the error code and * error message. *
** Returns a reference to this object so that method calls can be chained * together. * * @param error
* Contains details related to the error code such as the error * code and error message. *
* @return A reference to this updated object so that method calls can be * chained together. */ public BatchUpdateDevicePositionError withError(BatchItemError error) { this.error = error; return this; } /** *
* The timestamp at which the device position was determined. Uses ISO
* 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
*
* The timestamp at which the device position was determined. Uses
*
* ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
*
* The timestamp at which the device position was determined. Uses ISO
* 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
*
* The timestamp at which the device position was determined.
* Uses ISO
* 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
*
* The timestamp at which the device position was determined. Uses ISO
* 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param sampleTime
* The timestamp at which the device position was determined.
* Uses ISO
* 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
.
*