* The headers to include in the upload. *
*/ private java.util.Map* The identifier of the upload. *
*/ private String uploadId; /** ** The URL of the upload. *
*/ private String url; /** ** The expiration time of the URL as an epoch timestamp. *
*/ private java.util.Date urlExpiry; /** ** The headers to include in the upload. *
* * @return The headers to include in the upload. */ public java.util.Map* The headers to include in the upload. *
* * @param headersToInclude * The headers to include in the upload. */ public void setHeadersToInclude(java.util.Map* The headers to include in the upload. *
* * @param headersToInclude * The headers to include in the upload. * @return Returns a reference to this object so that method calls can be chained together. */ public StartContentUploadResult withHeadersToInclude(java.util.Map* The identifier of the upload. *
* * @param uploadId * The identifier of the upload. */ public void setUploadId(String uploadId) { this.uploadId = uploadId; } /** ** The identifier of the upload. *
* * @return The identifier of the upload. */ public String getUploadId() { return this.uploadId; } /** ** The identifier of the upload. *
* * @param uploadId * The identifier of the upload. * @return Returns a reference to this object so that method calls can be chained together. */ public StartContentUploadResult withUploadId(String uploadId) { setUploadId(uploadId); return this; } /** ** The URL of the upload. *
* * @param url * The URL of the upload. */ public void setUrl(String url) { this.url = url; } /** ** The URL of the upload. *
* * @return The URL of the upload. */ public String getUrl() { return this.url; } /** ** The URL of the upload. *
* * @param url * The URL of the upload. * @return Returns a reference to this object so that method calls can be chained together. */ public StartContentUploadResult withUrl(String url) { setUrl(url); return this; } /** ** The expiration time of the URL as an epoch timestamp. *
* * @param urlExpiry * The expiration time of the URL as an epoch timestamp. */ public void setUrlExpiry(java.util.Date urlExpiry) { this.urlExpiry = urlExpiry; } /** ** The expiration time of the URL as an epoch timestamp. *
* * @return The expiration time of the URL as an epoch timestamp. */ public java.util.Date getUrlExpiry() { return this.urlExpiry; } /** ** The expiration time of the URL as an epoch timestamp. *
* * @param urlExpiry * The expiration time of the URL as an epoch timestamp. * @return Returns a reference to this object so that method calls can be chained together. */ public StartContentUploadResult withUrlExpiry(java.util.Date urlExpiry) { setUrlExpiry(urlExpiry); 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 (getHeadersToInclude() != null) sb.append("HeadersToInclude: ").append(getHeadersToInclude()).append(","); if (getUploadId() != null) sb.append("UploadId: ").append(getUploadId()).append(","); if (getUrl() != null) sb.append("Url: ").append("***Sensitive Data Redacted***").append(","); if (getUrlExpiry() != null) sb.append("UrlExpiry: ").append(getUrlExpiry()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartContentUploadResult == false) return false; StartContentUploadResult other = (StartContentUploadResult) obj; if (other.getHeadersToInclude() == null ^ this.getHeadersToInclude() == null) return false; if (other.getHeadersToInclude() != null && other.getHeadersToInclude().equals(this.getHeadersToInclude()) == false) return false; if (other.getUploadId() == null ^ this.getUploadId() == null) return false; if (other.getUploadId() != null && other.getUploadId().equals(this.getUploadId()) == false) return false; if (other.getUrl() == null ^ this.getUrl() == null) return false; if (other.getUrl() != null && other.getUrl().equals(this.getUrl()) == false) return false; if (other.getUrlExpiry() == null ^ this.getUrlExpiry() == null) return false; if (other.getUrlExpiry() != null && other.getUrlExpiry().equals(this.getUrlExpiry()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHeadersToInclude() == null) ? 0 : getHeadersToInclude().hashCode()); hashCode = prime * hashCode + ((getUploadId() == null) ? 0 : getUploadId().hashCode()); hashCode = prime * hashCode + ((getUrl() == null) ? 0 : getUrl().hashCode()); hashCode = prime * hashCode + ((getUrlExpiry() == null) ? 0 : getUrlExpiry().hashCode()); return hashCode; } @Override public StartContentUploadResult clone() { try { return (StartContentUploadResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }