/*
* Copyright 2018-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.location.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetGeofenceResult extends com.amazonaws.AmazonWebServiceResult
* The timestamp for when the geofence collection was created in ISO 8601 format:
*
* The geofence identifier.
*
* User defined properties of the geofence. A property is a key-value pair stored with the geofence and added to any
* geofence event triggered with that geofence.
*
* Format:
* Contains the geofence geometry details describing a polygon or a circle.
*
* Identifies the state of the geofence. A geofence will hold one of the following states:
*
*
*
*
*
*
* The timestamp for when the geofence collection was last updated in ISO 8601 format:
*
* The timestamp for when the geofence collection was created in ISO 8601 format:
*
* The timestamp for when the geofence collection was created in ISO 8601 format:
*
* The timestamp for when the geofence collection was created in ISO 8601 format:
*
* The geofence identifier.
*
* The geofence identifier.
*
* The geofence identifier.
*
* User defined properties of the geofence. A property is a key-value pair stored with the geofence and added to any
* geofence event triggered with that geofence.
*
* Format: YYYY-MM-DDThh:mm:ss.sssZ
* "key" : "value"
*
*
*/
private String status;
/**
* ACTIVE
— The geofence has been indexed by the system.
* PENDING
— The geofence is being processed by the system.
* FAILED
— The geofence failed to be indexed by the system.
* DELETED
— The geofence has been deleted from the system index.
* DELETING
— The geofence is being deleted from the system index.
* YYYY-MM-DDThh:mm:ss.sssZ
* YYYY-MM-DDThh:mm:ss.sssZ
* YYYY-MM-DDThh:mm:ss.sssZ
*/
public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime;
}
/**
* YYYY-MM-DDThh:mm:ss.sssZ
* YYYY-MM-DDThh:mm:ss.sssZ
*/
public java.util.Date getCreateTime() {
return this.createTime;
}
/**
* YYYY-MM-DDThh:mm:ss.sssZ
* YYYY-MM-DDThh:mm:ss.sssZ
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetGeofenceResult withCreateTime(java.util.Date createTime) {
setCreateTime(createTime);
return this;
}
/**
* "key" : "value"
*
* Format:
* User defined properties of the geofence. A property is a key-value pair stored with the geofence and added to any
* geofence event triggered with that geofence.
*
* Format: "key" : "value"
*/
public java.util.Map"key" : "value"
*
* Format:
* User defined properties of the geofence. A property is a key-value pair stored with the geofence and added to any
* geofence event triggered with that geofence.
*
* Format: "key" : "value"
*/
public void setGeofenceProperties(java.util.Map"key" : "value"
*
* Format:
* Contains the geofence geometry details describing a polygon or a circle.
*
* Contains the geofence geometry details describing a polygon or a circle.
*
* Contains the geofence geometry details describing a polygon or a circle.
*
* Identifies the state of the geofence. A geofence will hold one of the following states:
*
*
*
*
*
* "key" : "value"
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetGeofenceResult withGeofenceProperties(java.util.Map
*
*
* @param status
* Identifies the state of the geofence. A geofence will hold one of the following states:ACTIVE
— The geofence has been indexed by the system.
* PENDING
— The geofence is being processed by the system.
* FAILED
— The geofence failed to be indexed by the system.
* DELETED
— The geofence has been deleted from the system index.
* DELETING
— The geofence is being deleted from the system index.
*
* ACTIVE
— The geofence has been indexed by the system.
*
* PENDING
— The geofence is being processed by the system.
*
* FAILED
— The geofence failed to be indexed by the system.
*
* DELETED
— The geofence has been deleted from the system index.
*
* DELETING
— The geofence is being deleted from the system index.
*
* Identifies the state of the geofence. A geofence will hold one of the following states: *
*
* ACTIVE
— The geofence has been indexed by the system.
*
* PENDING
— The geofence is being processed by the system.
*
* FAILED
— The geofence failed to be indexed by the system.
*
* DELETED
— The geofence has been deleted from the system index.
*
* DELETING
— The geofence is being deleted from the system index.
*
* ACTIVE
— The geofence has been indexed by the system.
*
* PENDING
— The geofence is being processed by the system.
*
* FAILED
— The geofence failed to be indexed by the system.
*
* DELETED
— The geofence has been deleted from the system index.
*
* DELETING
— The geofence is being deleted from the system index.
*
* Identifies the state of the geofence. A geofence will hold one of the following states: *
*
* ACTIVE
— The geofence has been indexed by the system.
*
* PENDING
— The geofence is being processed by the system.
*
* FAILED
— The geofence failed to be indexed by the system.
*
* DELETED
— The geofence has been deleted from the system index.
*
* DELETING
— The geofence is being deleted from the system index.
*
* ACTIVE
— The geofence has been indexed by the system.
*
* PENDING
— The geofence is being processed by the system.
*
* FAILED
— The geofence failed to be indexed by the system.
*
* DELETED
— The geofence has been deleted from the system index.
*
* DELETING
— The geofence is being deleted from the system index.
*
* The timestamp for when the geofence collection was last updated in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
*
YYYY-MM-DDThh:mm:ss.sssZ
*/
public void setUpdateTime(java.util.Date updateTime) {
this.updateTime = updateTime;
}
/**
*
* The timestamp for when the geofence collection was last updated in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
*
YYYY-MM-DDThh:mm:ss.sssZ
*/
public java.util.Date getUpdateTime() {
return this.updateTime;
}
/**
*
* The timestamp for when the geofence collection was last updated in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
*
YYYY-MM-DDThh:mm:ss.sssZ
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetGeofenceResult withUpdateTime(java.util.Date updateTime) {
setUpdateTime(updateTime);
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 (getCreateTime() != null)
sb.append("CreateTime: ").append(getCreateTime()).append(",");
if (getGeofenceId() != null)
sb.append("GeofenceId: ").append(getGeofenceId()).append(",");
if (getGeofenceProperties() != null)
sb.append("GeofenceProperties: ").append("***Sensitive Data Redacted***").append(",");
if (getGeometry() != null)
sb.append("Geometry: ").append(getGeometry()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getUpdateTime() != null)
sb.append("UpdateTime: ").append(getUpdateTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetGeofenceResult == false)
return false;
GetGeofenceResult other = (GetGeofenceResult) obj;
if (other.getCreateTime() == null ^ this.getCreateTime() == null)
return false;
if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false)
return false;
if (other.getGeofenceId() == null ^ this.getGeofenceId() == null)
return false;
if (other.getGeofenceId() != null && other.getGeofenceId().equals(this.getGeofenceId()) == false)
return false;
if (other.getGeofenceProperties() == null ^ this.getGeofenceProperties() == null)
return false;
if (other.getGeofenceProperties() != null && other.getGeofenceProperties().equals(this.getGeofenceProperties()) == false)
return false;
if (other.getGeometry() == null ^ this.getGeometry() == null)
return false;
if (other.getGeometry() != null && other.getGeometry().equals(this.getGeometry()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getUpdateTime() == null ^ this.getUpdateTime() == null)
return false;
if (other.getUpdateTime() != null && other.getUpdateTime().equals(this.getUpdateTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
hashCode = prime * hashCode + ((getGeofenceId() == null) ? 0 : getGeofenceId().hashCode());
hashCode = prime * hashCode + ((getGeofenceProperties() == null) ? 0 : getGeofenceProperties().hashCode());
hashCode = prime * hashCode + ((getGeometry() == null) ? 0 : getGeometry().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
return hashCode;
}
@Override
public GetGeofenceResult clone() {
try {
return (GetGeofenceResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}