/*
* 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 DescribeGeofenceCollectionResult extends com.amazonaws.AmazonWebServiceResult
* The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource
* across all Amazon Web Services.
*
* Format example:
* The name of the geofence collection.
*
* The timestamp for when the geofence resource was created in ISO 8601 format:
*
* The optional description for the geofence collection.
*
* A key identifier for an Amazon
* Web Services KMS customer managed key assigned to the Amazon Location resource
*
* No longer used. Always returns
* No longer used. Always returns an empty string.
*
* Displays the key, value pairs of tags associated with this resource.
*
* The timestamp for when the geofence collection was last updated in ISO 8601 format:
*
* The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource
* across all Amazon Web Services.
*
* Format example:
*
*/
private String collectionArn;
/**
* arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
* YYYY-MM-DDThh:mm:ss.sssZ
* RequestBasedUsage
.
* YYYY-MM-DDThh:mm:ss.sssZ
*
*
*
* @param collectionArn
* The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a
* resource across all Amazon Web Services. arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
*
* Format example: arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
*
* The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource * across all Amazon Web Services. *
*
* Format example: arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
*
* Format example: arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
*
* The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource * across all Amazon Web Services. *
*
* Format example: arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
*
* Format example: arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
*
* The name of the geofence collection. *
* * @param collectionName * The name of the geofence collection. */ public void setCollectionName(String collectionName) { this.collectionName = collectionName; } /** ** The name of the geofence collection. *
* * @return The name of the geofence collection. */ public String getCollectionName() { return this.collectionName; } /** ** The name of the geofence collection. *
* * @param collectionName * The name of the geofence collection. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGeofenceCollectionResult withCollectionName(String collectionName) { setCollectionName(collectionName); return this; } /** *
* The timestamp for when the geofence resource was created in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
*
YYYY-MM-DDThh:mm:ss.sssZ
*/
public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime;
}
/**
*
* The timestamp for when the geofence resource was created in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
*
YYYY-MM-DDThh:mm:ss.sssZ
*/
public java.util.Date getCreateTime() {
return this.createTime;
}
/**
*
* The timestamp for when the geofence resource was created 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 DescribeGeofenceCollectionResult withCreateTime(java.util.Date createTime) {
setCreateTime(createTime);
return this;
}
/**
* * The optional description for the geofence collection. *
* * @param description * The optional description for the geofence collection. */ public void setDescription(String description) { this.description = description; } /** ** The optional description for the geofence collection. *
* * @return The optional description for the geofence collection. */ public String getDescription() { return this.description; } /** ** The optional description for the geofence collection. *
* * @param description * The optional description for the geofence collection. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGeofenceCollectionResult withDescription(String description) { setDescription(description); return this; } /** ** A key identifier for an Amazon * Web Services KMS customer managed key assigned to the Amazon Location resource *
* * @param kmsKeyId * A key identifier for an Amazon Web Services KMS * customer managed key assigned to the Amazon Location resource */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** ** A key identifier for an Amazon * Web Services KMS customer managed key assigned to the Amazon Location resource *
* * @return A key identifier for an Amazon Web Services KMS * customer managed key assigned to the Amazon Location resource */ public String getKmsKeyId() { return this.kmsKeyId; } /** ** A key identifier for an Amazon * Web Services KMS customer managed key assigned to the Amazon Location resource *
* * @param kmsKeyId * A key identifier for an Amazon Web Services KMS * customer managed key assigned to the Amazon Location resource * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGeofenceCollectionResult withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *
* No longer used. Always returns RequestBasedUsage
.
*
RequestBasedUsage
.
* @see PricingPlan
*/
@Deprecated
public void setPricingPlan(String pricingPlan) {
this.pricingPlan = pricingPlan;
}
/**
*
* No longer used. Always returns RequestBasedUsage
.
*
RequestBasedUsage
.
* @see PricingPlan
*/
@Deprecated
public String getPricingPlan() {
return this.pricingPlan;
}
/**
*
* No longer used. Always returns RequestBasedUsage
.
*
RequestBasedUsage
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PricingPlan
*/
@Deprecated
public DescribeGeofenceCollectionResult withPricingPlan(String pricingPlan) {
setPricingPlan(pricingPlan);
return this;
}
/**
*
* No longer used. Always returns RequestBasedUsage
.
*
RequestBasedUsage
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PricingPlan
*/
@Deprecated
public DescribeGeofenceCollectionResult withPricingPlan(PricingPlan pricingPlan) {
this.pricingPlan = pricingPlan.toString();
return this;
}
/**
* * No longer used. Always returns an empty string. *
* * @param pricingPlanDataSource * No longer used. Always returns an empty string. */ @Deprecated public void setPricingPlanDataSource(String pricingPlanDataSource) { this.pricingPlanDataSource = pricingPlanDataSource; } /** ** No longer used. Always returns an empty string. *
* * @return No longer used. Always returns an empty string. */ @Deprecated public String getPricingPlanDataSource() { return this.pricingPlanDataSource; } /** ** No longer used. Always returns an empty string. *
* * @param pricingPlanDataSource * No longer used. Always returns an empty string. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public DescribeGeofenceCollectionResult withPricingPlanDataSource(String pricingPlanDataSource) { setPricingPlanDataSource(pricingPlanDataSource); return this; } /** ** Displays the key, value pairs of tags associated with this resource. *
* * @return Displays the key, value pairs of tags associated with this resource. */ public java.util.Map* Displays the key, value pairs of tags associated with this resource. *
* * @param tags * Displays the key, value pairs of tags associated with this resource. */ public void setTags(java.util.Map* Displays the key, value pairs of tags associated with this resource. *
* * @param tags * Displays the key, value pairs of tags associated with this resource. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGeofenceCollectionResult withTags(java.util.Map
* 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 DescribeGeofenceCollectionResult 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 (getCollectionArn() != null)
sb.append("CollectionArn: ").append(getCollectionArn()).append(",");
if (getCollectionName() != null)
sb.append("CollectionName: ").append(getCollectionName()).append(",");
if (getCreateTime() != null)
sb.append("CreateTime: ").append(getCreateTime()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getPricingPlan() != null)
sb.append("PricingPlan: ").append(getPricingPlan()).append(",");
if (getPricingPlanDataSource() != null)
sb.append("PricingPlanDataSource: ").append(getPricingPlanDataSource()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).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 DescribeGeofenceCollectionResult == false)
return false;
DescribeGeofenceCollectionResult other = (DescribeGeofenceCollectionResult) obj;
if (other.getCollectionArn() == null ^ this.getCollectionArn() == null)
return false;
if (other.getCollectionArn() != null && other.getCollectionArn().equals(this.getCollectionArn()) == false)
return false;
if (other.getCollectionName() == null ^ this.getCollectionName() == null)
return false;
if (other.getCollectionName() != null && other.getCollectionName().equals(this.getCollectionName()) == false)
return false;
if (other.getCreateTime() == null ^ this.getCreateTime() == null)
return false;
if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
return false;
if (other.getPricingPlan() == null ^ this.getPricingPlan() == null)
return false;
if (other.getPricingPlan() != null && other.getPricingPlan().equals(this.getPricingPlan()) == false)
return false;
if (other.getPricingPlanDataSource() == null ^ this.getPricingPlanDataSource() == null)
return false;
if (other.getPricingPlanDataSource() != null && other.getPricingPlanDataSource().equals(this.getPricingPlanDataSource()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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 + ((getCollectionArn() == null) ? 0 : getCollectionArn().hashCode());
hashCode = prime * hashCode + ((getCollectionName() == null) ? 0 : getCollectionName().hashCode());
hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getPricingPlan() == null) ? 0 : getPricingPlan().hashCode());
hashCode = prime * hashCode + ((getPricingPlanDataSource() == null) ? 0 : getPricingPlanDataSource().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
return hashCode;
}
@Override
public DescribeGeofenceCollectionResult clone() {
try {
return (DescribeGeofenceCollectionResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}