All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.location.model.VerifyDevicePositionResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Location module holds the client classes that are used for communicating with Amazon Location Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.location.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class VerifyDevicePositionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* The inferred state of the device, given the provided position, IP address, cellular signals, and Wi-Fi- access * points. *

*/ private InferredState inferredState; /** *

* The device identifier. *

*/ private String deviceId; /** *

* The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

*/ private java.util.Date sampleTime; /** *

* The timestamp for when the tracker resource received the device position in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

*/ private java.util.Date receivedTime; /** *

* The distance unit for the verification response. *

*/ private String distanceUnit; /** *

* The inferred state of the device, given the provided position, IP address, cellular signals, and Wi-Fi- access * points. *

* * @param inferredState * The inferred state of the device, given the provided position, IP address, cellular signals, and Wi-Fi- * access points. */ public void setInferredState(InferredState inferredState) { this.inferredState = inferredState; } /** *

* The inferred state of the device, given the provided position, IP address, cellular signals, and Wi-Fi- access * points. *

* * @return The inferred state of the device, given the provided position, IP address, cellular signals, and Wi-Fi- * access points. */ public InferredState getInferredState() { return this.inferredState; } /** *

* The inferred state of the device, given the provided position, IP address, cellular signals, and Wi-Fi- access * points. *

* * @param inferredState * The inferred state of the device, given the provided position, IP address, cellular signals, and Wi-Fi- * access points. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifyDevicePositionResult withInferredState(InferredState inferredState) { setInferredState(inferredState); return this; } /** *

* The device identifier. *

* * @param deviceId * The device identifier. */ public void setDeviceId(String deviceId) { this.deviceId = deviceId; } /** *

* The device identifier. *

* * @return The device identifier. */ public String getDeviceId() { return this.deviceId; } /** *

* The device identifier. *

* * @param deviceId * The device identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifyDevicePositionResult withDeviceId(String deviceId) { setDeviceId(deviceId); return this; } /** *

* The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @param sampleTime * The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. */ public void setSampleTime(java.util.Date sampleTime) { this.sampleTime = sampleTime; } /** *

* The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @return The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. */ public java.util.Date getSampleTime() { return this.sampleTime; } /** *

* The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @param sampleTime * The timestamp at which the device's position was determined. Uses ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifyDevicePositionResult withSampleTime(java.util.Date sampleTime) { setSampleTime(sampleTime); return this; } /** *

* The timestamp for when the tracker resource received the device position in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @param receivedTime * The timestamp for when the tracker resource received the device position in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. */ public void setReceivedTime(java.util.Date receivedTime) { this.receivedTime = receivedTime; } /** *

* The timestamp for when the tracker resource received the device position in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @return The timestamp for when the tracker resource received the device position in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. */ public java.util.Date getReceivedTime() { return this.receivedTime; } /** *

* The timestamp for when the tracker resource received the device position in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @param receivedTime * The timestamp for when the tracker resource received the device position in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifyDevicePositionResult withReceivedTime(java.util.Date receivedTime) { setReceivedTime(receivedTime); return this; } /** *

* The distance unit for the verification response. *

* * @param distanceUnit * The distance unit for the verification response. * @see DistanceUnit */ public void setDistanceUnit(String distanceUnit) { this.distanceUnit = distanceUnit; } /** *

* The distance unit for the verification response. *

* * @return The distance unit for the verification response. * @see DistanceUnit */ public String getDistanceUnit() { return this.distanceUnit; } /** *

* The distance unit for the verification response. *

* * @param distanceUnit * The distance unit for the verification response. * @return Returns a reference to this object so that method calls can be chained together. * @see DistanceUnit */ public VerifyDevicePositionResult withDistanceUnit(String distanceUnit) { setDistanceUnit(distanceUnit); return this; } /** *

* The distance unit for the verification response. *

* * @param distanceUnit * The distance unit for the verification response. * @return Returns a reference to this object so that method calls can be chained together. * @see DistanceUnit */ public VerifyDevicePositionResult withDistanceUnit(DistanceUnit distanceUnit) { this.distanceUnit = distanceUnit.toString(); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getInferredState() != null) sb.append("InferredState: ").append(getInferredState()).append(","); if (getDeviceId() != null) sb.append("DeviceId: ").append(getDeviceId()).append(","); if (getSampleTime() != null) sb.append("SampleTime: ").append(getSampleTime()).append(","); if (getReceivedTime() != null) sb.append("ReceivedTime: ").append(getReceivedTime()).append(","); if (getDistanceUnit() != null) sb.append("DistanceUnit: ").append(getDistanceUnit()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof VerifyDevicePositionResult == false) return false; VerifyDevicePositionResult other = (VerifyDevicePositionResult) obj; if (other.getInferredState() == null ^ this.getInferredState() == null) return false; if (other.getInferredState() != null && other.getInferredState().equals(this.getInferredState()) == false) return false; if (other.getDeviceId() == null ^ this.getDeviceId() == null) return false; if (other.getDeviceId() != null && other.getDeviceId().equals(this.getDeviceId()) == false) return false; if (other.getSampleTime() == null ^ this.getSampleTime() == null) return false; if (other.getSampleTime() != null && other.getSampleTime().equals(this.getSampleTime()) == false) return false; if (other.getReceivedTime() == null ^ this.getReceivedTime() == null) return false; if (other.getReceivedTime() != null && other.getReceivedTime().equals(this.getReceivedTime()) == false) return false; if (other.getDistanceUnit() == null ^ this.getDistanceUnit() == null) return false; if (other.getDistanceUnit() != null && other.getDistanceUnit().equals(this.getDistanceUnit()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInferredState() == null) ? 0 : getInferredState().hashCode()); hashCode = prime * hashCode + ((getDeviceId() == null) ? 0 : getDeviceId().hashCode()); hashCode = prime * hashCode + ((getSampleTime() == null) ? 0 : getSampleTime().hashCode()); hashCode = prime * hashCode + ((getReceivedTime() == null) ? 0 : getReceivedTime().hashCode()); hashCode = prime * hashCode + ((getDistanceUnit() == null) ? 0 : getDistanceUnit().hashCode()); return hashCode; } @Override public VerifyDevicePositionResult clone() { try { return (VerifyDevicePositionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy