com.amazonaws.services.location.model.GetMapTileRequest 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;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetMapTileRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The map resource to retrieve the map tiles from.
*
*/
private String mapName;
/**
*
* The zoom value for the map tile.
*
*/
private String z;
/**
*
* The X axis value for the map tile.
*
*/
private String x;
/**
*
* The Y axis value for the map tile.
*
*/
private String y;
/**
*
* The optional API key
* to authorize the request.
*
*/
private String key;
/**
*
* The map resource to retrieve the map tiles from.
*
*
* @param mapName
* The map resource to retrieve the map tiles from.
*/
public void setMapName(String mapName) {
this.mapName = mapName;
}
/**
*
* The map resource to retrieve the map tiles from.
*
*
* @return The map resource to retrieve the map tiles from.
*/
public String getMapName() {
return this.mapName;
}
/**
*
* The map resource to retrieve the map tiles from.
*
*
* @param mapName
* The map resource to retrieve the map tiles from.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetMapTileRequest withMapName(String mapName) {
setMapName(mapName);
return this;
}
/**
*
* The zoom value for the map tile.
*
*
* @param z
* The zoom value for the map tile.
*/
public void setZ(String z) {
this.z = z;
}
/**
*
* The zoom value for the map tile.
*
*
* @return The zoom value for the map tile.
*/
public String getZ() {
return this.z;
}
/**
*
* The zoom value for the map tile.
*
*
* @param z
* The zoom value for the map tile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetMapTileRequest withZ(String z) {
setZ(z);
return this;
}
/**
*
* The X axis value for the map tile.
*
*
* @param x
* The X axis value for the map tile.
*/
public void setX(String x) {
this.x = x;
}
/**
*
* The X axis value for the map tile.
*
*
* @return The X axis value for the map tile.
*/
public String getX() {
return this.x;
}
/**
*
* The X axis value for the map tile.
*
*
* @param x
* The X axis value for the map tile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetMapTileRequest withX(String x) {
setX(x);
return this;
}
/**
*
* The Y axis value for the map tile.
*
*
* @param y
* The Y axis value for the map tile.
*/
public void setY(String y) {
this.y = y;
}
/**
*
* The Y axis value for the map tile.
*
*
* @return The Y axis value for the map tile.
*/
public String getY() {
return this.y;
}
/**
*
* The Y axis value for the map tile.
*
*
* @param y
* The Y axis value for the map tile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetMapTileRequest withY(String y) {
setY(y);
return this;
}
/**
*
* The optional API key
* to authorize the request.
*
*
* @param key
* The optional API
* key to authorize the request.
*/
public void setKey(String key) {
this.key = key;
}
/**
*
* The optional API key
* to authorize the request.
*
*
* @return The optional API
* key to authorize the request.
*/
public String getKey() {
return this.key;
}
/**
*
* The optional API key
* to authorize the request.
*
*
* @param key
* The optional API
* key to authorize the request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetMapTileRequest withKey(String key) {
setKey(key);
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 (getMapName() != null)
sb.append("MapName: ").append(getMapName()).append(",");
if (getZ() != null)
sb.append("Z: ").append(getZ()).append(",");
if (getX() != null)
sb.append("X: ").append(getX()).append(",");
if (getY() != null)
sb.append("Y: ").append(getY()).append(",");
if (getKey() != null)
sb.append("Key: ").append("***Sensitive Data Redacted***");
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetMapTileRequest == false)
return false;
GetMapTileRequest other = (GetMapTileRequest) obj;
if (other.getMapName() == null ^ this.getMapName() == null)
return false;
if (other.getMapName() != null && other.getMapName().equals(this.getMapName()) == false)
return false;
if (other.getZ() == null ^ this.getZ() == null)
return false;
if (other.getZ() != null && other.getZ().equals(this.getZ()) == false)
return false;
if (other.getX() == null ^ this.getX() == null)
return false;
if (other.getX() != null && other.getX().equals(this.getX()) == false)
return false;
if (other.getY() == null ^ this.getY() == null)
return false;
if (other.getY() != null && other.getY().equals(this.getY()) == false)
return false;
if (other.getKey() == null ^ this.getKey() == null)
return false;
if (other.getKey() != null && other.getKey().equals(this.getKey()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMapName() == null) ? 0 : getMapName().hashCode());
hashCode = prime * hashCode + ((getZ() == null) ? 0 : getZ().hashCode());
hashCode = prime * hashCode + ((getX() == null) ? 0 : getX().hashCode());
hashCode = prime * hashCode + ((getY() == null) ? 0 : getY().hashCode());
hashCode = prime * hashCode + ((getKey() == null) ? 0 : getKey().hashCode());
return hashCode;
}
@Override
public GetMapTileRequest clone() {
return (GetMapTileRequest) super.clone();
}
}