com.amazonaws.services.location.model.ListMapsResponseEntry 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Contains details of an existing map resource in your Amazon Web Services account.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListMapsResponseEntry implements Serializable, Cloneable, StructuredPojo {
/**
*
* The name of the associated map resource.
*
*/
private String mapName;
/**
*
* The description for the map resource.
*
*/
private String description;
/**
*
* Specifies the data provider for the associated map tiles.
*
*/
private String dataSource;
/**
*
* No longer used. Always returns RequestBasedUsage
.
*
*/
@Deprecated
private String pricingPlan;
/**
*
* The timestamp for when the map resource was created in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
.
*
*/
private java.util.Date createTime;
/**
*
* The timestamp for when the map resource was last updated in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
.
*
*/
private java.util.Date updateTime;
/**
*
* The name of the associated map resource.
*
*
* @param mapName
* The name of the associated map resource.
*/
public void setMapName(String mapName) {
this.mapName = mapName;
}
/**
*
* The name of the associated map resource.
*
*
* @return The name of the associated map resource.
*/
public String getMapName() {
return this.mapName;
}
/**
*
* The name of the associated map resource.
*
*
* @param mapName
* The name of the associated map resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListMapsResponseEntry withMapName(String mapName) {
setMapName(mapName);
return this;
}
/**
*
* The description for the map resource.
*
*
* @param description
* The description for the map resource.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description for the map resource.
*
*
* @return The description for the map resource.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description for the map resource.
*
*
* @param description
* The description for the map resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListMapsResponseEntry withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* Specifies the data provider for the associated map tiles.
*
*
* @param dataSource
* Specifies the data provider for the associated map tiles.
*/
public void setDataSource(String dataSource) {
this.dataSource = dataSource;
}
/**
*
* Specifies the data provider for the associated map tiles.
*
*
* @return Specifies the data provider for the associated map tiles.
*/
public String getDataSource() {
return this.dataSource;
}
/**
*
* Specifies the data provider for the associated map tiles.
*
*
* @param dataSource
* Specifies the data provider for the associated map tiles.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListMapsResponseEntry withDataSource(String dataSource) {
setDataSource(dataSource);
return this;
}
/**
*
* No longer used. Always returns RequestBasedUsage
.
*
*
* @param pricingPlan
* No longer used. Always returns RequestBasedUsage
.
* @see PricingPlan
*/
@Deprecated
public void setPricingPlan(String pricingPlan) {
this.pricingPlan = pricingPlan;
}
/**
*
* No longer used. Always returns RequestBasedUsage
.
*
*
* @return No longer used. Always returns RequestBasedUsage
.
* @see PricingPlan
*/
@Deprecated
public String getPricingPlan() {
return this.pricingPlan;
}
/**
*
* No longer used. Always returns RequestBasedUsage
.
*
*
* @param pricingPlan
* No longer used. Always returns RequestBasedUsage
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PricingPlan
*/
@Deprecated
public ListMapsResponseEntry withPricingPlan(String pricingPlan) {
setPricingPlan(pricingPlan);
return this;
}
/**
*
* No longer used. Always returns RequestBasedUsage
.
*
*
* @param pricingPlan
* No longer used. Always returns RequestBasedUsage
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PricingPlan
*/
@Deprecated
public ListMapsResponseEntry withPricingPlan(PricingPlan pricingPlan) {
this.pricingPlan = pricingPlan.toString();
return this;
}
/**
*
* The timestamp for when the map resource was created in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
.
*
*
* @param createTime
* The timestamp for when the map resource 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 map resource was created in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
.
*
*
* @return The timestamp for when the map resource 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 map resource was created in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
.
*
*
* @param createTime
* The timestamp for when the map resource 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 ListMapsResponseEntry withCreateTime(java.util.Date createTime) {
setCreateTime(createTime);
return this;
}
/**
*
* The timestamp for when the map resource was last updated in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
.
*
*
* @param updateTime
* The timestamp for when the map resource was last updated in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
.
*/
public void setUpdateTime(java.util.Date updateTime) {
this.updateTime = updateTime;
}
/**
*
* The timestamp for when the map resource was last updated in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
.
*
*
* @return The timestamp for when the map resource was last updated in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
.
*/
public java.util.Date getUpdateTime() {
return this.updateTime;
}
/**
*
* The timestamp for when the map resource was last updated in ISO 8601 format:
* YYYY-MM-DDThh:mm:ss.sssZ
.
*
*
* @param updateTime
* The timestamp for when the map resource was last updated 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 ListMapsResponseEntry 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 (getMapName() != null)
sb.append("MapName: ").append(getMapName()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getDataSource() != null)
sb.append("DataSource: ").append(getDataSource()).append(",");
if (getPricingPlan() != null)
sb.append("PricingPlan: ").append(getPricingPlan()).append(",");
if (getCreateTime() != null)
sb.append("CreateTime: ").append(getCreateTime()).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 ListMapsResponseEntry == false)
return false;
ListMapsResponseEntry other = (ListMapsResponseEntry) obj;
if (other.getMapName() == null ^ this.getMapName() == null)
return false;
if (other.getMapName() != null && other.getMapName().equals(this.getMapName()) == 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.getDataSource() == null ^ this.getDataSource() == null)
return false;
if (other.getDataSource() != null && other.getDataSource().equals(this.getDataSource()) == 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.getCreateTime() == null ^ this.getCreateTime() == null)
return false;
if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == 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 + ((getMapName() == null) ? 0 : getMapName().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getDataSource() == null) ? 0 : getDataSource().hashCode());
hashCode = prime * hashCode + ((getPricingPlan() == null) ? 0 : getPricingPlan().hashCode());
hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
hashCode = prime * hashCode + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
return hashCode;
}
@Override
public ListMapsResponseEntry clone() {
try {
return (ListMapsResponseEntry) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.location.model.transform.ListMapsResponseEntryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}