com.amazonaws.services.healthlake.model.ImportJobProperties Maven / Gradle / Ivy
Show all versions of aws-java-sdk-healthlake Show documentation
/*
* 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.healthlake.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Displays the properties of the import job, including the ID, Arn, Name, the status of the job, and the progress
* report of the job.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ImportJobProperties implements Serializable, Cloneable, StructuredPojo {
/**
*
* The AWS-generated id number for the Import job.
*
*/
private String jobId;
/**
*
* The user-generated name for an Import job.
*
*/
private String jobName;
/**
*
* The job status for an Import job. Possible statuses are SUBMITTED, IN_PROGRESS, COMPLETED_WITH_ERRORS, COMPLETED,
* FAILED.
*
*/
private String jobStatus;
/**
*
* The time that the Import job was submitted for processing.
*
*/
private java.util.Date submitTime;
/**
*
* The time that the Import job was completed.
*
*/
private java.util.Date endTime;
/**
*
* The datastore id used when the Import job was created.
*
*/
private String datastoreId;
/**
*
* The input data configuration that was supplied when the Import job was created.
*
*/
private InputDataConfig inputDataConfig;
private OutputDataConfig jobOutputDataConfig;
/**
*
* Displays the progress of the import job, including total resources scanned, total resources ingested, and total
* size of data ingested.
*
*/
private JobProgressReport jobProgressReport;
/**
*
* The Amazon Resource Name (ARN) that gives AWS HealthLake access to your input data.
*
*/
private String dataAccessRoleArn;
/**
*
* An explanation of any errors that may have occurred during the FHIR import job.
*
*/
private String message;
/**
*
* The AWS-generated id number for the Import job.
*
*
* @param jobId
* The AWS-generated id number for the Import job.
*/
public void setJobId(String jobId) {
this.jobId = jobId;
}
/**
*
* The AWS-generated id number for the Import job.
*
*
* @return The AWS-generated id number for the Import job.
*/
public String getJobId() {
return this.jobId;
}
/**
*
* The AWS-generated id number for the Import job.
*
*
* @param jobId
* The AWS-generated id number for the Import job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportJobProperties withJobId(String jobId) {
setJobId(jobId);
return this;
}
/**
*
* The user-generated name for an Import job.
*
*
* @param jobName
* The user-generated name for an Import job.
*/
public void setJobName(String jobName) {
this.jobName = jobName;
}
/**
*
* The user-generated name for an Import job.
*
*
* @return The user-generated name for an Import job.
*/
public String getJobName() {
return this.jobName;
}
/**
*
* The user-generated name for an Import job.
*
*
* @param jobName
* The user-generated name for an Import job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportJobProperties withJobName(String jobName) {
setJobName(jobName);
return this;
}
/**
*
* The job status for an Import job. Possible statuses are SUBMITTED, IN_PROGRESS, COMPLETED_WITH_ERRORS, COMPLETED,
* FAILED.
*
*
* @param jobStatus
* The job status for an Import job. Possible statuses are SUBMITTED, IN_PROGRESS, COMPLETED_WITH_ERRORS,
* COMPLETED, FAILED.
* @see JobStatus
*/
public void setJobStatus(String jobStatus) {
this.jobStatus = jobStatus;
}
/**
*
* The job status for an Import job. Possible statuses are SUBMITTED, IN_PROGRESS, COMPLETED_WITH_ERRORS, COMPLETED,
* FAILED.
*
*
* @return The job status for an Import job. Possible statuses are SUBMITTED, IN_PROGRESS, COMPLETED_WITH_ERRORS,
* COMPLETED, FAILED.
* @see JobStatus
*/
public String getJobStatus() {
return this.jobStatus;
}
/**
*
* The job status for an Import job. Possible statuses are SUBMITTED, IN_PROGRESS, COMPLETED_WITH_ERRORS, COMPLETED,
* FAILED.
*
*
* @param jobStatus
* The job status for an Import job. Possible statuses are SUBMITTED, IN_PROGRESS, COMPLETED_WITH_ERRORS,
* COMPLETED, FAILED.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobStatus
*/
public ImportJobProperties withJobStatus(String jobStatus) {
setJobStatus(jobStatus);
return this;
}
/**
*
* The job status for an Import job. Possible statuses are SUBMITTED, IN_PROGRESS, COMPLETED_WITH_ERRORS, COMPLETED,
* FAILED.
*
*
* @param jobStatus
* The job status for an Import job. Possible statuses are SUBMITTED, IN_PROGRESS, COMPLETED_WITH_ERRORS,
* COMPLETED, FAILED.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobStatus
*/
public ImportJobProperties withJobStatus(JobStatus jobStatus) {
this.jobStatus = jobStatus.toString();
return this;
}
/**
*
* The time that the Import job was submitted for processing.
*
*
* @param submitTime
* The time that the Import job was submitted for processing.
*/
public void setSubmitTime(java.util.Date submitTime) {
this.submitTime = submitTime;
}
/**
*
* The time that the Import job was submitted for processing.
*
*
* @return The time that the Import job was submitted for processing.
*/
public java.util.Date getSubmitTime() {
return this.submitTime;
}
/**
*
* The time that the Import job was submitted for processing.
*
*
* @param submitTime
* The time that the Import job was submitted for processing.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportJobProperties withSubmitTime(java.util.Date submitTime) {
setSubmitTime(submitTime);
return this;
}
/**
*
* The time that the Import job was completed.
*
*
* @param endTime
* The time that the Import job was completed.
*/
public void setEndTime(java.util.Date endTime) {
this.endTime = endTime;
}
/**
*
* The time that the Import job was completed.
*
*
* @return The time that the Import job was completed.
*/
public java.util.Date getEndTime() {
return this.endTime;
}
/**
*
* The time that the Import job was completed.
*
*
* @param endTime
* The time that the Import job was completed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportJobProperties withEndTime(java.util.Date endTime) {
setEndTime(endTime);
return this;
}
/**
*
* The datastore id used when the Import job was created.
*
*
* @param datastoreId
* The datastore id used when the Import job was created.
*/
public void setDatastoreId(String datastoreId) {
this.datastoreId = datastoreId;
}
/**
*
* The datastore id used when the Import job was created.
*
*
* @return The datastore id used when the Import job was created.
*/
public String getDatastoreId() {
return this.datastoreId;
}
/**
*
* The datastore id used when the Import job was created.
*
*
* @param datastoreId
* The datastore id used when the Import job was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportJobProperties withDatastoreId(String datastoreId) {
setDatastoreId(datastoreId);
return this;
}
/**
*
* The input data configuration that was supplied when the Import job was created.
*
*
* @param inputDataConfig
* The input data configuration that was supplied when the Import job was created.
*/
public void setInputDataConfig(InputDataConfig inputDataConfig) {
this.inputDataConfig = inputDataConfig;
}
/**
*
* The input data configuration that was supplied when the Import job was created.
*
*
* @return The input data configuration that was supplied when the Import job was created.
*/
public InputDataConfig getInputDataConfig() {
return this.inputDataConfig;
}
/**
*
* The input data configuration that was supplied when the Import job was created.
*
*
* @param inputDataConfig
* The input data configuration that was supplied when the Import job was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportJobProperties withInputDataConfig(InputDataConfig inputDataConfig) {
setInputDataConfig(inputDataConfig);
return this;
}
/**
* @param jobOutputDataConfig
*/
public void setJobOutputDataConfig(OutputDataConfig jobOutputDataConfig) {
this.jobOutputDataConfig = jobOutputDataConfig;
}
/**
* @return
*/
public OutputDataConfig getJobOutputDataConfig() {
return this.jobOutputDataConfig;
}
/**
* @param jobOutputDataConfig
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportJobProperties withJobOutputDataConfig(OutputDataConfig jobOutputDataConfig) {
setJobOutputDataConfig(jobOutputDataConfig);
return this;
}
/**
*
* Displays the progress of the import job, including total resources scanned, total resources ingested, and total
* size of data ingested.
*
*
* @param jobProgressReport
* Displays the progress of the import job, including total resources scanned, total resources ingested, and
* total size of data ingested.
*/
public void setJobProgressReport(JobProgressReport jobProgressReport) {
this.jobProgressReport = jobProgressReport;
}
/**
*
* Displays the progress of the import job, including total resources scanned, total resources ingested, and total
* size of data ingested.
*
*
* @return Displays the progress of the import job, including total resources scanned, total resources ingested, and
* total size of data ingested.
*/
public JobProgressReport getJobProgressReport() {
return this.jobProgressReport;
}
/**
*
* Displays the progress of the import job, including total resources scanned, total resources ingested, and total
* size of data ingested.
*
*
* @param jobProgressReport
* Displays the progress of the import job, including total resources scanned, total resources ingested, and
* total size of data ingested.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportJobProperties withJobProgressReport(JobProgressReport jobProgressReport) {
setJobProgressReport(jobProgressReport);
return this;
}
/**
*
* The Amazon Resource Name (ARN) that gives AWS HealthLake access to your input data.
*
*
* @param dataAccessRoleArn
* The Amazon Resource Name (ARN) that gives AWS HealthLake access to your input data.
*/
public void setDataAccessRoleArn(String dataAccessRoleArn) {
this.dataAccessRoleArn = dataAccessRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) that gives AWS HealthLake access to your input data.
*
*
* @return The Amazon Resource Name (ARN) that gives AWS HealthLake access to your input data.
*/
public String getDataAccessRoleArn() {
return this.dataAccessRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) that gives AWS HealthLake access to your input data.
*
*
* @param dataAccessRoleArn
* The Amazon Resource Name (ARN) that gives AWS HealthLake access to your input data.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportJobProperties withDataAccessRoleArn(String dataAccessRoleArn) {
setDataAccessRoleArn(dataAccessRoleArn);
return this;
}
/**
*
* An explanation of any errors that may have occurred during the FHIR import job.
*
*
* @param message
* An explanation of any errors that may have occurred during the FHIR import job.
*/
public void setMessage(String message) {
this.message = message;
}
/**
*
* An explanation of any errors that may have occurred during the FHIR import job.
*
*
* @return An explanation of any errors that may have occurred during the FHIR import job.
*/
public String getMessage() {
return this.message;
}
/**
*
* An explanation of any errors that may have occurred during the FHIR import job.
*
*
* @param message
* An explanation of any errors that may have occurred during the FHIR import job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImportJobProperties withMessage(String message) {
setMessage(message);
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 (getJobId() != null)
sb.append("JobId: ").append(getJobId()).append(",");
if (getJobName() != null)
sb.append("JobName: ").append(getJobName()).append(",");
if (getJobStatus() != null)
sb.append("JobStatus: ").append(getJobStatus()).append(",");
if (getSubmitTime() != null)
sb.append("SubmitTime: ").append(getSubmitTime()).append(",");
if (getEndTime() != null)
sb.append("EndTime: ").append(getEndTime()).append(",");
if (getDatastoreId() != null)
sb.append("DatastoreId: ").append(getDatastoreId()).append(",");
if (getInputDataConfig() != null)
sb.append("InputDataConfig: ").append(getInputDataConfig()).append(",");
if (getJobOutputDataConfig() != null)
sb.append("JobOutputDataConfig: ").append(getJobOutputDataConfig()).append(",");
if (getJobProgressReport() != null)
sb.append("JobProgressReport: ").append(getJobProgressReport()).append(",");
if (getDataAccessRoleArn() != null)
sb.append("DataAccessRoleArn: ").append(getDataAccessRoleArn()).append(",");
if (getMessage() != null)
sb.append("Message: ").append(getMessage());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ImportJobProperties == false)
return false;
ImportJobProperties other = (ImportJobProperties) obj;
if (other.getJobId() == null ^ this.getJobId() == null)
return false;
if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false)
return false;
if (other.getJobName() == null ^ this.getJobName() == null)
return false;
if (other.getJobName() != null && other.getJobName().equals(this.getJobName()) == false)
return false;
if (other.getJobStatus() == null ^ this.getJobStatus() == null)
return false;
if (other.getJobStatus() != null && other.getJobStatus().equals(this.getJobStatus()) == false)
return false;
if (other.getSubmitTime() == null ^ this.getSubmitTime() == null)
return false;
if (other.getSubmitTime() != null && other.getSubmitTime().equals(this.getSubmitTime()) == false)
return false;
if (other.getEndTime() == null ^ this.getEndTime() == null)
return false;
if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false)
return false;
if (other.getDatastoreId() == null ^ this.getDatastoreId() == null)
return false;
if (other.getDatastoreId() != null && other.getDatastoreId().equals(this.getDatastoreId()) == false)
return false;
if (other.getInputDataConfig() == null ^ this.getInputDataConfig() == null)
return false;
if (other.getInputDataConfig() != null && other.getInputDataConfig().equals(this.getInputDataConfig()) == false)
return false;
if (other.getJobOutputDataConfig() == null ^ this.getJobOutputDataConfig() == null)
return false;
if (other.getJobOutputDataConfig() != null && other.getJobOutputDataConfig().equals(this.getJobOutputDataConfig()) == false)
return false;
if (other.getJobProgressReport() == null ^ this.getJobProgressReport() == null)
return false;
if (other.getJobProgressReport() != null && other.getJobProgressReport().equals(this.getJobProgressReport()) == false)
return false;
if (other.getDataAccessRoleArn() == null ^ this.getDataAccessRoleArn() == null)
return false;
if (other.getDataAccessRoleArn() != null && other.getDataAccessRoleArn().equals(this.getDataAccessRoleArn()) == false)
return false;
if (other.getMessage() == null ^ this.getMessage() == null)
return false;
if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode());
hashCode = prime * hashCode + ((getJobName() == null) ? 0 : getJobName().hashCode());
hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode());
hashCode = prime * hashCode + ((getSubmitTime() == null) ? 0 : getSubmitTime().hashCode());
hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
hashCode = prime * hashCode + ((getDatastoreId() == null) ? 0 : getDatastoreId().hashCode());
hashCode = prime * hashCode + ((getInputDataConfig() == null) ? 0 : getInputDataConfig().hashCode());
hashCode = prime * hashCode + ((getJobOutputDataConfig() == null) ? 0 : getJobOutputDataConfig().hashCode());
hashCode = prime * hashCode + ((getJobProgressReport() == null) ? 0 : getJobProgressReport().hashCode());
hashCode = prime * hashCode + ((getDataAccessRoleArn() == null) ? 0 : getDataAccessRoleArn().hashCode());
hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode());
return hashCode;
}
@Override
public ImportJobProperties clone() {
try {
return (ImportJobProperties) 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.healthlake.model.transform.ImportJobPropertiesMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}