com.amazonaws.services.location.model.CreateGeofenceCollectionResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-location Show documentation
/*
* 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 CreateGeofenceCollectionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The name for the geofence collection.
*
*/
private String collectionName;
/**
*
* 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
*
*
*
*/
private String collectionArn;
/**
*
* The timestamp for when the geofence collection was created in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
*
*/
private java.util.Date createTime;
/**
*
* The name for the geofence collection.
*
*
* @param collectionName
* The name for the geofence collection.
*/
public void setCollectionName(String collectionName) {
this.collectionName = collectionName;
}
/**
*
* The name for the geofence collection.
*
*
* @return The name for the geofence collection.
*/
public String getCollectionName() {
return this.collectionName;
}
/**
*
* The name for the geofence collection.
*
*
* @param collectionName
* The name for the geofence collection.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateGeofenceCollectionResult withCollectionName(String collectionName) {
setCollectionName(collectionName);
return this;
}
/**
*
* 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
*
*
*
*
* @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.
*
* -
*
* Format example: arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
*
*
*/
public void setCollectionArn(String collectionArn) {
this.collectionArn = collectionArn;
}
/**
*
* 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
*
*
*
*
* @return 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
*
*
*/
public String getCollectionArn() {
return this.collectionArn;
}
/**
*
* 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
*
*
*
*
* @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.
*
* -
*
* Format example: arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateGeofenceCollectionResult withCollectionArn(String collectionArn) {
setCollectionArn(collectionArn);
return this;
}
/**
*
* The timestamp for when the geofence collection was created in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
*
*
* @param createTime
* The timestamp for when the geofence collection was created in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
*/
public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime;
}
/**
*
* The timestamp for when the geofence collection was created in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
*
*
* @return The timestamp for when the geofence collection was created in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
*/
public java.util.Date getCreateTime() {
return this.createTime;
}
/**
*
* The timestamp for when the geofence collection was created in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
*
*
* @param createTime
* The timestamp for when the geofence collection was created 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 CreateGeofenceCollectionResult withCreateTime(java.util.Date createTime) {
setCreateTime(createTime);
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 (getCollectionName() != null)
sb.append("CollectionName: ").append(getCollectionName()).append(",");
if (getCollectionArn() != null)
sb.append("CollectionArn: ").append(getCollectionArn()).append(",");
if (getCreateTime() != null)
sb.append("CreateTime: ").append(getCreateTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateGeofenceCollectionResult == false)
return false;
CreateGeofenceCollectionResult other = (CreateGeofenceCollectionResult) obj;
if (other.getCollectionName() == null ^ this.getCollectionName() == null)
return false;
if (other.getCollectionName() != null && other.getCollectionName().equals(this.getCollectionName()) == false)
return false;
if (other.getCollectionArn() == null ^ this.getCollectionArn() == null)
return false;
if (other.getCollectionArn() != null && other.getCollectionArn().equals(this.getCollectionArn()) == false)
return false;
if (other.getCreateTime() == null ^ this.getCreateTime() == null)
return false;
if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCollectionName() == null) ? 0 : getCollectionName().hashCode());
hashCode = prime * hashCode + ((getCollectionArn() == null) ? 0 : getCollectionArn().hashCode());
hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
return hashCode;
}
@Override
public CreateGeofenceCollectionResult clone() {
try {
return (CreateGeofenceCollectionResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}