/* * Copyright 2010-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.geo.model; import java.io.Serializable; public class GetMapSpritesResult implements Serializable { /** *

* Contains the body of the sprite sheet or JSON offset file. *

*/ private java.nio.ByteBuffer blob; /** *

* The HTTP Cache-Control directive for the value. *

*/ private String cacheControl; /** *

* The content type of the sprite sheet and offsets. For example, the sprite * sheet content type is image/png, and the sprite offset JSON * document is application/json. *

*/ private String contentType; /** *

* Contains the body of the sprite sheet or JSON offset file. *

* * @return

* Contains the body of the sprite sheet or JSON offset file. *

*/ public java.nio.ByteBuffer getBlob() { return blob; } /** *

* Contains the body of the sprite sheet or JSON offset file. *

* * @param blob

* Contains the body of the sprite sheet or JSON offset file. *

*/ public void setBlob(java.nio.ByteBuffer blob) { this.blob = blob; } /** *

* Contains the body of the sprite sheet or JSON offset file. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param blob

* Contains the body of the sprite sheet or JSON offset file. *

* @return A reference to this updated object so that method calls can be * chained together. */ public GetMapSpritesResult withBlob(java.nio.ByteBuffer blob) { this.blob = blob; return this; } /** *

* The HTTP Cache-Control directive for the value. *

* * @return

* The HTTP Cache-Control directive for the value. *

*/ public String getCacheControl() { return cacheControl; } /** *

* The HTTP Cache-Control directive for the value. *

* * @param cacheControl

* The HTTP Cache-Control directive for the value. *

*/ public void setCacheControl(String cacheControl) { this.cacheControl = cacheControl; } /** *

* The HTTP Cache-Control directive for the value. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param cacheControl

* The HTTP Cache-Control directive for the value. *

* @return A reference to this updated object so that method calls can be * chained together. */ public GetMapSpritesResult withCacheControl(String cacheControl) { this.cacheControl = cacheControl; return this; } /** *

* The content type of the sprite sheet and offsets. For example, the sprite * sheet content type is image/png, and the sprite offset JSON * document is application/json. *

* * @return

* The content type of the sprite sheet and offsets. For example, * the sprite sheet content type is image/png, and the * sprite offset JSON document is application/json. *

*/ public String getContentType() { return contentType; } /** *

* The content type of the sprite sheet and offsets. For example, the sprite * sheet content type is image/png, and the sprite offset JSON * document is application/json. *

* * @param contentType

* The content type of the sprite sheet and offsets. For example, * the sprite sheet content type is image/png, and * the sprite offset JSON document is * application/json. *

*/ public void setContentType(String contentType) { this.contentType = contentType; } /** *

* The content type of the sprite sheet and offsets. For example, the sprite * sheet content type is image/png, and the sprite offset JSON * document is application/json. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param contentType

* The content type of the sprite sheet and offsets. For example, * the sprite sheet content type is image/png, and * the sprite offset JSON document is * application/json. *

* @return A reference to this updated object so that method calls can be * chained together. */ public GetMapSpritesResult withContentType(String contentType) { this.contentType = contentType; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getBlob() != null) sb.append("Blob: " + getBlob() + ","); if (getCacheControl() != null) sb.append("CacheControl: " + getCacheControl() + ","); if (getContentType() != null) sb.append("ContentType: " + getContentType()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBlob() == null) ? 0 : getBlob().hashCode()); hashCode = prime * hashCode + ((getCacheControl() == null) ? 0 : getCacheControl().hashCode()); hashCode = prime * hashCode + ((getContentType() == null) ? 0 : getContentType().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetMapSpritesResult == false) return false; GetMapSpritesResult other = (GetMapSpritesResult) obj; if (other.getBlob() == null ^ this.getBlob() == null) return false; if (other.getBlob() != null && other.getBlob().equals(this.getBlob()) == false) return false; if (other.getCacheControl() == null ^ this.getCacheControl() == null) return false; if (other.getCacheControl() != null && other.getCacheControl().equals(this.getCacheControl()) == false) return false; if (other.getContentType() == null ^ this.getContentType() == null) return false; if (other.getContentType() != null && other.getContentType().equals(this.getContentType()) == false) return false; return true; } }