/*
* Copyright 2018-2023 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.iotsitewise.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeBulkImportJobResult extends com.amazonaws.AmazonWebServiceResult
* The ID of the job.
*
* The unique name that helps identify the job request.
*
* The status of the bulk import job can be one of following values.
*
*
*
*
*
*
*
* The ARN of the IAM role
* that allows IoT SiteWise to read Amazon S3 data.
*
* The files in the specified Amazon S3 bucket that contain your data.
*
* The Amazon S3 destination where errors associated with the job creation request are saved.
*
* Contains the configuration information of a job, such as the file format used to save data in Amazon S3.
*
* The date the job was created, in Unix epoch TIME.
*
* The date the job was last updated, in Unix epoch time.
*
* The ID of the job.
*
* The ID of the job.
*
* The ID of the job.
*
* The unique name that helps identify the job request.
*
* The unique name that helps identify the job request.
*
* The unique name that helps identify the job request.
*
* The status of the bulk import job can be one of following values.
*
*
*
*
*
*
*
*
*/
private String jobStatus;
/**
* PENDING
– IoT SiteWise is waiting for the current bulk import job to finish.
* CANCELLED
– The bulk import job has been canceled.
* RUNNING
– IoT SiteWise is processing your request to import your data from Amazon S3.
* COMPLETED
– IoT SiteWise successfully completed your request to import data from Amazon S3.
* FAILED
– IoT SiteWise couldn't process your request to import data from Amazon S3. You can use logs
* saved in the specified error report location in Amazon S3 to troubleshoot issues.
* COMPLETED_WITH_FAILURES
– IoT SiteWise completed your request to import data from Amazon S3 with
* errors. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
*
*
*
* @param jobStatus
* The status of the bulk import job can be one of following values.PENDING
– IoT SiteWise is waiting for the current bulk import job to finish.
* CANCELLED
– The bulk import job has been canceled.
* RUNNING
– IoT SiteWise is processing your request to import your data from Amazon S3.
* COMPLETED
– IoT SiteWise successfully completed your request to import data from Amazon S3.
* FAILED
– IoT SiteWise couldn't process your request to import data from Amazon S3. You can use logs
* saved in the specified error report location in Amazon S3 to troubleshoot issues.
* COMPLETED_WITH_FAILURES
– IoT SiteWise completed your request to import data from Amazon S3 with
* errors. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
*
* PENDING
– IoT SiteWise is waiting for the current bulk import job to finish.
*
* CANCELLED
– The bulk import job has been canceled.
*
* RUNNING
– IoT SiteWise is processing your request to import your data from Amazon S3.
*
* COMPLETED
– IoT SiteWise successfully completed your request to import data from Amazon S3.
*
* FAILED
– IoT SiteWise couldn't process your request to import data from Amazon S3. You can
* use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
*
* COMPLETED_WITH_FAILURES
– IoT SiteWise completed your request to import data from Amazon S3
* with errors. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot
* issues.
*
* The status of the bulk import job can be one of following values. *
*
* PENDING
– IoT SiteWise is waiting for the current bulk import job to finish.
*
* CANCELLED
– The bulk import job has been canceled.
*
* RUNNING
– IoT SiteWise is processing your request to import your data from Amazon S3.
*
* COMPLETED
– IoT SiteWise successfully completed your request to import data from Amazon S3.
*
* FAILED
– IoT SiteWise couldn't process your request to import data from Amazon S3. You can use logs
* saved in the specified error report location in Amazon S3 to troubleshoot issues.
*
* COMPLETED_WITH_FAILURES
– IoT SiteWise completed your request to import data from Amazon S3 with
* errors. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
*
* PENDING
– IoT SiteWise is waiting for the current bulk import job to finish.
*
* CANCELLED
– The bulk import job has been canceled.
*
* RUNNING
– IoT SiteWise is processing your request to import your data from Amazon S3.
*
* COMPLETED
– IoT SiteWise successfully completed your request to import data from Amazon S3.
*
* FAILED
– IoT SiteWise couldn't process your request to import data from Amazon S3. You can
* use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
*
* COMPLETED_WITH_FAILURES
– IoT SiteWise completed your request to import data from Amazon S3
* with errors. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot
* issues.
*
* The status of the bulk import job can be one of following values. *
*
* PENDING
– IoT SiteWise is waiting for the current bulk import job to finish.
*
* CANCELLED
– The bulk import job has been canceled.
*
* RUNNING
– IoT SiteWise is processing your request to import your data from Amazon S3.
*
* COMPLETED
– IoT SiteWise successfully completed your request to import data from Amazon S3.
*
* FAILED
– IoT SiteWise couldn't process your request to import data from Amazon S3. You can use logs
* saved in the specified error report location in Amazon S3 to troubleshoot issues.
*
* COMPLETED_WITH_FAILURES
– IoT SiteWise completed your request to import data from Amazon S3 with
* errors. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
*
* PENDING
– IoT SiteWise is waiting for the current bulk import job to finish.
*
* CANCELLED
– The bulk import job has been canceled.
*
* RUNNING
– IoT SiteWise is processing your request to import your data from Amazon S3.
*
* COMPLETED
– IoT SiteWise successfully completed your request to import data from Amazon S3.
*
* FAILED
– IoT SiteWise couldn't process your request to import data from Amazon S3. You can
* use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
*
* COMPLETED_WITH_FAILURES
– IoT SiteWise completed your request to import data from Amazon S3
* with errors. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot
* issues.
*
* The status of the bulk import job can be one of following values. *
*
* PENDING
– IoT SiteWise is waiting for the current bulk import job to finish.
*
* CANCELLED
– The bulk import job has been canceled.
*
* RUNNING
– IoT SiteWise is processing your request to import your data from Amazon S3.
*
* COMPLETED
– IoT SiteWise successfully completed your request to import data from Amazon S3.
*
* FAILED
– IoT SiteWise couldn't process your request to import data from Amazon S3. You can use logs
* saved in the specified error report location in Amazon S3 to troubleshoot issues.
*
* COMPLETED_WITH_FAILURES
– IoT SiteWise completed your request to import data from Amazon S3 with
* errors. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
*
* PENDING
– IoT SiteWise is waiting for the current bulk import job to finish.
*
* CANCELLED
– The bulk import job has been canceled.
*
* RUNNING
– IoT SiteWise is processing your request to import your data from Amazon S3.
*
* COMPLETED
– IoT SiteWise successfully completed your request to import data from Amazon S3.
*
* FAILED
– IoT SiteWise couldn't process your request to import data from Amazon S3. You can
* use logs saved in the specified error report location in Amazon S3 to troubleshoot issues.
*
* COMPLETED_WITH_FAILURES
– IoT SiteWise completed your request to import data from Amazon S3
* with errors. You can use logs saved in the specified error report location in Amazon S3 to troubleshoot
* issues.
*
* The ARN of the IAM role * that allows IoT SiteWise to read Amazon S3 data. *
* * @param jobRoleArn * The ARN of the * IAM role that allows IoT SiteWise to read Amazon S3 data. */ public void setJobRoleArn(String jobRoleArn) { this.jobRoleArn = jobRoleArn; } /** ** The ARN of the IAM role * that allows IoT SiteWise to read Amazon S3 data. *
* * @return The ARN of the * IAM role that allows IoT SiteWise to read Amazon S3 data. */ public String getJobRoleArn() { return this.jobRoleArn; } /** ** The ARN of the IAM role * that allows IoT SiteWise to read Amazon S3 data. *
* * @param jobRoleArn * The ARN of the * IAM role that allows IoT SiteWise to read Amazon S3 data. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBulkImportJobResult withJobRoleArn(String jobRoleArn) { setJobRoleArn(jobRoleArn); return this; } /** ** The files in the specified Amazon S3 bucket that contain your data. *
* * @return The files in the specified Amazon S3 bucket that contain your data. */ public java.util.List* The files in the specified Amazon S3 bucket that contain your data. *
* * @param files * The files in the specified Amazon S3 bucket that contain your data. */ public void setFiles(java.util.Collection* The files in the specified Amazon S3 bucket that contain your data. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFiles(java.util.Collection)} or {@link #withFiles(java.util.Collection)} if you want to override the * existing values. *
* * @param files * The files in the specified Amazon S3 bucket that contain your data. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBulkImportJobResult withFiles(File... files) { if (this.files == null) { setFiles(new java.util.ArrayList* The files in the specified Amazon S3 bucket that contain your data. *
* * @param files * The files in the specified Amazon S3 bucket that contain your data. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBulkImportJobResult withFiles(java.util.Collection* The Amazon S3 destination where errors associated with the job creation request are saved. *
* * @param errorReportLocation * The Amazon S3 destination where errors associated with the job creation request are saved. */ public void setErrorReportLocation(ErrorReportLocation errorReportLocation) { this.errorReportLocation = errorReportLocation; } /** ** The Amazon S3 destination where errors associated with the job creation request are saved. *
* * @return The Amazon S3 destination where errors associated with the job creation request are saved. */ public ErrorReportLocation getErrorReportLocation() { return this.errorReportLocation; } /** ** The Amazon S3 destination where errors associated with the job creation request are saved. *
* * @param errorReportLocation * The Amazon S3 destination where errors associated with the job creation request are saved. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBulkImportJobResult withErrorReportLocation(ErrorReportLocation errorReportLocation) { setErrorReportLocation(errorReportLocation); return this; } /** ** Contains the configuration information of a job, such as the file format used to save data in Amazon S3. *
* * @param jobConfiguration * Contains the configuration information of a job, such as the file format used to save data in Amazon S3. */ public void setJobConfiguration(JobConfiguration jobConfiguration) { this.jobConfiguration = jobConfiguration; } /** ** Contains the configuration information of a job, such as the file format used to save data in Amazon S3. *
* * @return Contains the configuration information of a job, such as the file format used to save data in Amazon S3. */ public JobConfiguration getJobConfiguration() { return this.jobConfiguration; } /** ** Contains the configuration information of a job, such as the file format used to save data in Amazon S3. *
* * @param jobConfiguration * Contains the configuration information of a job, such as the file format used to save data in Amazon S3. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBulkImportJobResult withJobConfiguration(JobConfiguration jobConfiguration) { setJobConfiguration(jobConfiguration); return this; } /** ** The date the job was created, in Unix epoch TIME. *
* * @param jobCreationDate * The date the job was created, in Unix epoch TIME. */ public void setJobCreationDate(java.util.Date jobCreationDate) { this.jobCreationDate = jobCreationDate; } /** ** The date the job was created, in Unix epoch TIME. *
* * @return The date the job was created, in Unix epoch TIME. */ public java.util.Date getJobCreationDate() { return this.jobCreationDate; } /** ** The date the job was created, in Unix epoch TIME. *
* * @param jobCreationDate * The date the job was created, in Unix epoch TIME. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBulkImportJobResult withJobCreationDate(java.util.Date jobCreationDate) { setJobCreationDate(jobCreationDate); return this; } /** ** The date the job was last updated, in Unix epoch time. *
* * @param jobLastUpdateDate * The date the job was last updated, in Unix epoch time. */ public void setJobLastUpdateDate(java.util.Date jobLastUpdateDate) { this.jobLastUpdateDate = jobLastUpdateDate; } /** ** The date the job was last updated, in Unix epoch time. *
* * @return The date the job was last updated, in Unix epoch time. */ public java.util.Date getJobLastUpdateDate() { return this.jobLastUpdateDate; } /** ** The date the job was last updated, in Unix epoch time. *
* * @param jobLastUpdateDate * The date the job was last updated, in Unix epoch time. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBulkImportJobResult withJobLastUpdateDate(java.util.Date jobLastUpdateDate) { setJobLastUpdateDate(jobLastUpdateDate); 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 (getJobRoleArn() != null) sb.append("JobRoleArn: ").append(getJobRoleArn()).append(","); if (getFiles() != null) sb.append("Files: ").append(getFiles()).append(","); if (getErrorReportLocation() != null) sb.append("ErrorReportLocation: ").append(getErrorReportLocation()).append(","); if (getJobConfiguration() != null) sb.append("JobConfiguration: ").append(getJobConfiguration()).append(","); if (getJobCreationDate() != null) sb.append("JobCreationDate: ").append(getJobCreationDate()).append(","); if (getJobLastUpdateDate() != null) sb.append("JobLastUpdateDate: ").append(getJobLastUpdateDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeBulkImportJobResult == false) return false; DescribeBulkImportJobResult other = (DescribeBulkImportJobResult) 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.getJobRoleArn() == null ^ this.getJobRoleArn() == null) return false; if (other.getJobRoleArn() != null && other.getJobRoleArn().equals(this.getJobRoleArn()) == false) return false; if (other.getFiles() == null ^ this.getFiles() == null) return false; if (other.getFiles() != null && other.getFiles().equals(this.getFiles()) == false) return false; if (other.getErrorReportLocation() == null ^ this.getErrorReportLocation() == null) return false; if (other.getErrorReportLocation() != null && other.getErrorReportLocation().equals(this.getErrorReportLocation()) == false) return false; if (other.getJobConfiguration() == null ^ this.getJobConfiguration() == null) return false; if (other.getJobConfiguration() != null && other.getJobConfiguration().equals(this.getJobConfiguration()) == false) return false; if (other.getJobCreationDate() == null ^ this.getJobCreationDate() == null) return false; if (other.getJobCreationDate() != null && other.getJobCreationDate().equals(this.getJobCreationDate()) == false) return false; if (other.getJobLastUpdateDate() == null ^ this.getJobLastUpdateDate() == null) return false; if (other.getJobLastUpdateDate() != null && other.getJobLastUpdateDate().equals(this.getJobLastUpdateDate()) == 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 + ((getJobRoleArn() == null) ? 0 : getJobRoleArn().hashCode()); hashCode = prime * hashCode + ((getFiles() == null) ? 0 : getFiles().hashCode()); hashCode = prime * hashCode + ((getErrorReportLocation() == null) ? 0 : getErrorReportLocation().hashCode()); hashCode = prime * hashCode + ((getJobConfiguration() == null) ? 0 : getJobConfiguration().hashCode()); hashCode = prime * hashCode + ((getJobCreationDate() == null) ? 0 : getJobCreationDate().hashCode()); hashCode = prime * hashCode + ((getJobLastUpdateDate() == null) ? 0 : getJobLastUpdateDate().hashCode()); return hashCode; } @Override public DescribeBulkImportJobResult clone() { try { return (DescribeBulkImportJobResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }