All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.mediastoredata.model.DescribeObjectResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Elemental MediaStore Data Plane module holds the client classes that are used for communicating with AWS Elemental MediaStore Data Plane Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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.mediastoredata.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeObjectResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* The ETag that represents a unique instance of the object. *

*/ private String eTag; /** *

* The content type of the object. *

*/ private String contentType; /** *

* The length of the object in bytes. *

*/ private Long contentLength; /** *

* An optional CacheControl header that allows the caller to control the object's cache behavior. * Headers can be passed in as specified in the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9. *

*

* Headers with a custom user-defined value are also accepted. *

*/ private String cacheControl; /** *

* The date and time that the object was last modified. *

*/ private java.util.Date lastModified; /** *

* The ETag that represents a unique instance of the object. *

* * @param eTag * The ETag that represents a unique instance of the object. */ public void setETag(String eTag) { this.eTag = eTag; } /** *

* The ETag that represents a unique instance of the object. *

* * @return The ETag that represents a unique instance of the object. */ public String getETag() { return this.eTag; } /** *

* The ETag that represents a unique instance of the object. *

* * @param eTag * The ETag that represents a unique instance of the object. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeObjectResult withETag(String eTag) { setETag(eTag); return this; } /** *

* The content type of the object. *

* * @param contentType * The content type of the object. */ public void setContentType(String contentType) { this.contentType = contentType; } /** *

* The content type of the object. *

* * @return The content type of the object. */ public String getContentType() { return this.contentType; } /** *

* The content type of the object. *

* * @param contentType * The content type of the object. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeObjectResult withContentType(String contentType) { setContentType(contentType); return this; } /** *

* The length of the object in bytes. *

* * @param contentLength * The length of the object in bytes. */ public void setContentLength(Long contentLength) { this.contentLength = contentLength; } /** *

* The length of the object in bytes. *

* * @return The length of the object in bytes. */ public Long getContentLength() { return this.contentLength; } /** *

* The length of the object in bytes. *

* * @param contentLength * The length of the object in bytes. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeObjectResult withContentLength(Long contentLength) { setContentLength(contentLength); return this; } /** *

* An optional CacheControl header that allows the caller to control the object's cache behavior. * Headers can be passed in as specified in the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9. *

*

* Headers with a custom user-defined value are also accepted. *

* * @param cacheControl * An optional CacheControl header that allows the caller to control the object's cache * behavior. Headers can be passed in as specified in the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*

* Headers with a custom user-defined value are also accepted. */ public void setCacheControl(String cacheControl) { this.cacheControl = cacheControl; } /** *

* An optional CacheControl header that allows the caller to control the object's cache behavior. * Headers can be passed in as specified in the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9. *

*

* Headers with a custom user-defined value are also accepted. *

* * @return An optional CacheControl header that allows the caller to control the object's cache * behavior. Headers can be passed in as specified in the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*

* Headers with a custom user-defined value are also accepted. */ public String getCacheControl() { return this.cacheControl; } /** *

* An optional CacheControl header that allows the caller to control the object's cache behavior. * Headers can be passed in as specified in the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9. *

*

* Headers with a custom user-defined value are also accepted. *

* * @param cacheControl * An optional CacheControl header that allows the caller to control the object's cache * behavior. Headers can be passed in as specified in the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

*

* Headers with a custom user-defined value are also accepted. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeObjectResult withCacheControl(String cacheControl) { setCacheControl(cacheControl); return this; } /** *

* The date and time that the object was last modified. *

* * @param lastModified * The date and time that the object was last modified. */ public void setLastModified(java.util.Date lastModified) { this.lastModified = lastModified; } /** *

* The date and time that the object was last modified. *

* * @return The date and time that the object was last modified. */ public java.util.Date getLastModified() { return this.lastModified; } /** *

* The date and time that the object was last modified. *

* * @param lastModified * The date and time that the object was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeObjectResult withLastModified(java.util.Date lastModified) { setLastModified(lastModified); 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 (getETag() != null) sb.append("ETag: ").append(getETag()).append(","); if (getContentType() != null) sb.append("ContentType: ").append(getContentType()).append(","); if (getContentLength() != null) sb.append("ContentLength: ").append(getContentLength()).append(","); if (getCacheControl() != null) sb.append("CacheControl: ").append(getCacheControl()).append(","); if (getLastModified() != null) sb.append("LastModified: ").append(getLastModified()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeObjectResult == false) return false; DescribeObjectResult other = (DescribeObjectResult) obj; if (other.getETag() == null ^ this.getETag() == null) return false; if (other.getETag() != null && other.getETag().equals(this.getETag()) == false) return false; if (other.getContentType() == null ^ this.getContentType() == null) return false; if (other.getContentType() != null && other.getContentType().equals(this.getContentType()) == false) return false; if (other.getContentLength() == null ^ this.getContentLength() == null) return false; if (other.getContentLength() != null && other.getContentLength().equals(this.getContentLength()) == 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.getLastModified() == null ^ this.getLastModified() == null) return false; if (other.getLastModified() != null && other.getLastModified().equals(this.getLastModified()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getETag() == null) ? 0 : getETag().hashCode()); hashCode = prime * hashCode + ((getContentType() == null) ? 0 : getContentType().hashCode()); hashCode = prime * hashCode + ((getContentLength() == null) ? 0 : getContentLength().hashCode()); hashCode = prime * hashCode + ((getCacheControl() == null) ? 0 : getCacheControl().hashCode()); hashCode = prime * hashCode + ((getLastModified() == null) ? 0 : getLastModified().hashCode()); return hashCode; } @Override public DescribeObjectResult clone() { try { return (DescribeObjectResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy