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

com.amazonaws.services.qconnect.model.ImportJobData 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

The 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Summary information about the import job. *

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

* The timestamp when the import job was created. *

*/ private java.util.Date createdTime; private ExternalSourceConfiguration externalSourceConfiguration; /** *

* The link to download the information of resource data that failed to be imported. *

*/ private String failedRecordReport; /** *

* The identifier of the import job. *

*/ private String importJobId; /** *

* The type of the import job. *

*/ private String importJobType; /** *

* The Amazon Resource Name (ARN) of the knowledge base. *

*/ private String knowledgeBaseArn; /** *

* The identifier of the knowledge base. *

*/ private String knowledgeBaseId; /** *

* The timestamp when the import job data was last modified. *

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

* The metadata fields of the imported Amazon Q in Connect resources. *

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

* The status of the import job. *

*/ private String status; /** *

* A pointer to the uploaded asset. This value is returned by StartContentUpload. *

*/ private String uploadId; /** *

* The download link to the resource file that is uploaded to the import job. *

*/ private String url; /** *

* The expiration time of the URL as an epoch timestamp. *

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

* The timestamp when the import job was created. *

* * @param createdTime * The timestamp when the import job was created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** *

* The timestamp when the import job was created. *

* * @return The timestamp when the import job was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** *

* The timestamp when the import job was created. *

* * @param createdTime * The timestamp when the import job was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportJobData withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** * @param externalSourceConfiguration */ public void setExternalSourceConfiguration(ExternalSourceConfiguration externalSourceConfiguration) { this.externalSourceConfiguration = externalSourceConfiguration; } /** * @return */ public ExternalSourceConfiguration getExternalSourceConfiguration() { return this.externalSourceConfiguration; } /** * @param externalSourceConfiguration * @return Returns a reference to this object so that method calls can be chained together. */ public ImportJobData withExternalSourceConfiguration(ExternalSourceConfiguration externalSourceConfiguration) { setExternalSourceConfiguration(externalSourceConfiguration); return this; } /** *

* The link to download the information of resource data that failed to be imported. *

* * @param failedRecordReport * The link to download the information of resource data that failed to be imported. */ public void setFailedRecordReport(String failedRecordReport) { this.failedRecordReport = failedRecordReport; } /** *

* The link to download the information of resource data that failed to be imported. *

* * @return The link to download the information of resource data that failed to be imported. */ public String getFailedRecordReport() { return this.failedRecordReport; } /** *

* The link to download the information of resource data that failed to be imported. *

* * @param failedRecordReport * The link to download the information of resource data that failed to be imported. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportJobData withFailedRecordReport(String failedRecordReport) { setFailedRecordReport(failedRecordReport); return this; } /** *

* The identifier of the import job. *

* * @param importJobId * The identifier of the import job. */ public void setImportJobId(String importJobId) { this.importJobId = importJobId; } /** *

* The identifier of the import job. *

* * @return The identifier of the import job. */ public String getImportJobId() { return this.importJobId; } /** *

* The identifier of the import job. *

* * @param importJobId * The identifier of the import job. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportJobData withImportJobId(String importJobId) { setImportJobId(importJobId); return this; } /** *

* The type of the import job. *

* * @param importJobType * The type of the import job. * @see ImportJobType */ public void setImportJobType(String importJobType) { this.importJobType = importJobType; } /** *

* The type of the import job. *

* * @return The type of the import job. * @see ImportJobType */ public String getImportJobType() { return this.importJobType; } /** *

* The type of the import job. *

* * @param importJobType * The type of the import job. * @return Returns a reference to this object so that method calls can be chained together. * @see ImportJobType */ public ImportJobData withImportJobType(String importJobType) { setImportJobType(importJobType); return this; } /** *

* The type of the import job. *

* * @param importJobType * The type of the import job. * @return Returns a reference to this object so that method calls can be chained together. * @see ImportJobType */ public ImportJobData withImportJobType(ImportJobType importJobType) { this.importJobType = importJobType.toString(); return this; } /** *

* The Amazon Resource Name (ARN) of the knowledge base. *

* * @param knowledgeBaseArn * The Amazon Resource Name (ARN) of the knowledge base. */ public void setKnowledgeBaseArn(String knowledgeBaseArn) { this.knowledgeBaseArn = knowledgeBaseArn; } /** *

* The Amazon Resource Name (ARN) of the knowledge base. *

* * @return The Amazon Resource Name (ARN) of the knowledge base. */ public String getKnowledgeBaseArn() { return this.knowledgeBaseArn; } /** *

* The Amazon Resource Name (ARN) of the knowledge base. *

* * @param knowledgeBaseArn * The Amazon Resource Name (ARN) of the knowledge base. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportJobData withKnowledgeBaseArn(String knowledgeBaseArn) { setKnowledgeBaseArn(knowledgeBaseArn); return this; } /** *

* The identifier of the knowledge base. *

* * @param knowledgeBaseId * The identifier of the knowledge base. */ public void setKnowledgeBaseId(String knowledgeBaseId) { this.knowledgeBaseId = knowledgeBaseId; } /** *

* The identifier of the knowledge base. *

* * @return The identifier of the knowledge base. */ public String getKnowledgeBaseId() { return this.knowledgeBaseId; } /** *

* The identifier of the knowledge base. *

* * @param knowledgeBaseId * The identifier of the knowledge base. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportJobData withKnowledgeBaseId(String knowledgeBaseId) { setKnowledgeBaseId(knowledgeBaseId); return this; } /** *

* The timestamp when the import job data was last modified. *

* * @param lastModifiedTime * The timestamp when the import job data was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* The timestamp when the import job data was last modified. *

* * @return The timestamp when the import job data was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** *

* The timestamp when the import job data was last modified. *

* * @param lastModifiedTime * The timestamp when the import job data was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportJobData withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** *

* The metadata fields of the imported Amazon Q in Connect resources. *

* * @return The metadata fields of the imported Amazon Q in Connect resources. */ public java.util.Map getMetadata() { return metadata; } /** *

* The metadata fields of the imported Amazon Q in Connect resources. *

* * @param metadata * The metadata fields of the imported Amazon Q in Connect resources. */ public void setMetadata(java.util.Map metadata) { this.metadata = metadata; } /** *

* The metadata fields of the imported Amazon Q in Connect resources. *

* * @param metadata * The metadata fields of the imported Amazon Q in Connect resources. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportJobData withMetadata(java.util.Map metadata) { setMetadata(metadata); return this; } /** * Add a single Metadata entry * * @see ImportJobData#withMetadata * @returns a reference to this object so that method calls can be chained together. */ public ImportJobData addMetadataEntry(String key, String value) { if (null == this.metadata) { this.metadata = new java.util.HashMap(); } if (this.metadata.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.metadata.put(key, value); return this; } /** * Removes all the entries added into Metadata. * * @return Returns a reference to this object so that method calls can be chained together. */ public ImportJobData clearMetadataEntries() { this.metadata = null; return this; } /** *

* The status of the import job. *

* * @param status * The status of the import job. * @see ImportJobStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the import job. *

* * @return The status of the import job. * @see ImportJobStatus */ public String getStatus() { return this.status; } /** *

* The status of the import job. *

* * @param status * The status of the import job. * @return Returns a reference to this object so that method calls can be chained together. * @see ImportJobStatus */ public ImportJobData withStatus(String status) { setStatus(status); return this; } /** *

* The status of the import job. *

* * @param status * The status of the import job. * @return Returns a reference to this object so that method calls can be chained together. * @see ImportJobStatus */ public ImportJobData withStatus(ImportJobStatus status) { this.status = status.toString(); return this; } /** *

* A pointer to the uploaded asset. This value is returned by StartContentUpload. *

* * @param uploadId * A pointer to the uploaded asset. This value is returned by StartContentUpload. */ public void setUploadId(String uploadId) { this.uploadId = uploadId; } /** *

* A pointer to the uploaded asset. This value is returned by StartContentUpload. *

* * @return A pointer to the uploaded asset. This value is returned by StartContentUpload. */ public String getUploadId() { return this.uploadId; } /** *

* A pointer to the uploaded asset. This value is returned by StartContentUpload. *

* * @param uploadId * A pointer to the uploaded asset. This value is returned by StartContentUpload. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportJobData withUploadId(String uploadId) { setUploadId(uploadId); return this; } /** *

* The download link to the resource file that is uploaded to the import job. *

* * @param url * The download link to the resource file that is uploaded to the import job. */ public void setUrl(String url) { this.url = url; } /** *

* The download link to the resource file that is uploaded to the import job. *

* * @return The download link to the resource file that is uploaded to the import job. */ public String getUrl() { return this.url; } /** *

* The download link to the resource file that is uploaded to the import job. *

* * @param url * The download link to the resource file that is uploaded to the import job. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportJobData 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 ImportJobData 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 (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()).append(","); if (getExternalSourceConfiguration() != null) sb.append("ExternalSourceConfiguration: ").append(getExternalSourceConfiguration()).append(","); if (getFailedRecordReport() != null) sb.append("FailedRecordReport: ").append("***Sensitive Data Redacted***").append(","); if (getImportJobId() != null) sb.append("ImportJobId: ").append(getImportJobId()).append(","); if (getImportJobType() != null) sb.append("ImportJobType: ").append(getImportJobType()).append(","); if (getKnowledgeBaseArn() != null) sb.append("KnowledgeBaseArn: ").append(getKnowledgeBaseArn()).append(","); if (getKnowledgeBaseId() != null) sb.append("KnowledgeBaseId: ").append(getKnowledgeBaseId()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getMetadata() != null) sb.append("Metadata: ").append(getMetadata()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).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 ImportJobData == false) return false; ImportJobData other = (ImportJobData) obj; if (other.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false) return false; if (other.getExternalSourceConfiguration() == null ^ this.getExternalSourceConfiguration() == null) return false; if (other.getExternalSourceConfiguration() != null && other.getExternalSourceConfiguration().equals(this.getExternalSourceConfiguration()) == false) return false; if (other.getFailedRecordReport() == null ^ this.getFailedRecordReport() == null) return false; if (other.getFailedRecordReport() != null && other.getFailedRecordReport().equals(this.getFailedRecordReport()) == false) return false; if (other.getImportJobId() == null ^ this.getImportJobId() == null) return false; if (other.getImportJobId() != null && other.getImportJobId().equals(this.getImportJobId()) == false) return false; if (other.getImportJobType() == null ^ this.getImportJobType() == null) return false; if (other.getImportJobType() != null && other.getImportJobType().equals(this.getImportJobType()) == false) return false; if (other.getKnowledgeBaseArn() == null ^ this.getKnowledgeBaseArn() == null) return false; if (other.getKnowledgeBaseArn() != null && other.getKnowledgeBaseArn().equals(this.getKnowledgeBaseArn()) == false) return false; if (other.getKnowledgeBaseId() == null ^ this.getKnowledgeBaseId() == null) return false; if (other.getKnowledgeBaseId() != null && other.getKnowledgeBaseId().equals(this.getKnowledgeBaseId()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == 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 + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getExternalSourceConfiguration() == null) ? 0 : getExternalSourceConfiguration().hashCode()); hashCode = prime * hashCode + ((getFailedRecordReport() == null) ? 0 : getFailedRecordReport().hashCode()); hashCode = prime * hashCode + ((getImportJobId() == null) ? 0 : getImportJobId().hashCode()); hashCode = prime * hashCode + ((getImportJobType() == null) ? 0 : getImportJobType().hashCode()); hashCode = prime * hashCode + ((getKnowledgeBaseArn() == null) ? 0 : getKnowledgeBaseArn().hashCode()); hashCode = prime * hashCode + ((getKnowledgeBaseId() == null) ? 0 : getKnowledgeBaseId().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().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 ImportJobData clone() { try { return (ImportJobData) 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.qconnect.model.transform.ImportJobDataMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy