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

com.amazonaws.services.qconnect.model.StartContentUploadResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Q Connect module holds the client classes that are used for communicating with Amazon Q Connect 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.qconnect.model;

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

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

    /**
     * 

* The headers to include in the upload. *

*/ private java.util.Map headersToInclude; /** *

* 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 getHeadersToInclude() { return headersToInclude; } /** *

* The headers to include in the upload. *

* * @param headersToInclude * The headers to include in the upload. */ public void setHeadersToInclude(java.util.Map headersToInclude) { this.headersToInclude = headersToInclude; } /** *

* 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 headersToInclude) { setHeadersToInclude(headersToInclude); return this; } /** * Add a single HeadersToInclude entry * * @see StartContentUploadResult#withHeadersToInclude * @returns a reference to this object so that method calls can be chained together. */ public StartContentUploadResult addHeadersToIncludeEntry(String key, String value) { if (null == this.headersToInclude) { this.headersToInclude = new java.util.HashMap(); } if (this.headersToInclude.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.headersToInclude.put(key, value); return this; } /** * Removes all the entries added into HeadersToInclude. * * @return Returns a reference to this object so that method calls can be chained together. */ public StartContentUploadResult clearHeadersToIncludeEntries() { this.headersToInclude = null; return this; } /** *

* 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); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy