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

com.amazonaws.services.timestreamwrite.model.BatchLoadTaskDescription Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Timestream Write module holds the client classes that are used for communicating with Amazon Timestream Write Service

There is a newer version: 1.12.778
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.timestreamwrite.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Details about a batch load task. *

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

* The ID of the batch load task. *

*/ private String taskId; /**

*/ private String errorMessage; /** *

* Configuration details about the data source for a batch load task. *

*/ private DataSourceConfiguration dataSourceConfiguration; /**

*/ private BatchLoadProgressReport progressReport; /** *

* Report configuration for a batch load task. This contains details about where error reports are stored. *

*/ private ReportConfiguration reportConfiguration; /** *

* Data model configuration for a batch load task. This contains details about where a data model for a batch load * task is stored. *

*/ private DataModelConfiguration dataModelConfiguration; /**

*/ private String targetDatabaseName; /**

*/ private String targetTableName; /** *

* Status of the batch load task. *

*/ private String taskStatus; /**

*/ private Long recordVersion; /** *

* The time when the Timestream batch load task was created. *

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

* The time when the Timestream batch load task was last updated. *

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

*

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

* The ID of the batch load task. *

* * @param taskId * The ID of the batch load task. */ public void setTaskId(String taskId) { this.taskId = taskId; } /** *

* The ID of the batch load task. *

* * @return The ID of the batch load task. */ public String getTaskId() { return this.taskId; } /** *

* The ID of the batch load task. *

* * @param taskId * The ID of the batch load task. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchLoadTaskDescription withTaskId(String taskId) { setTaskId(taskId); return this; } /** *

* * @param errorMessage */ public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } /** *

* * @return */ public String getErrorMessage() { return this.errorMessage; } /** *

* * @param errorMessage * @return Returns a reference to this object so that method calls can be chained together. */ public BatchLoadTaskDescription withErrorMessage(String errorMessage) { setErrorMessage(errorMessage); return this; } /** *

* Configuration details about the data source for a batch load task. *

* * @param dataSourceConfiguration * Configuration details about the data source for a batch load task. */ public void setDataSourceConfiguration(DataSourceConfiguration dataSourceConfiguration) { this.dataSourceConfiguration = dataSourceConfiguration; } /** *

* Configuration details about the data source for a batch load task. *

* * @return Configuration details about the data source for a batch load task. */ public DataSourceConfiguration getDataSourceConfiguration() { return this.dataSourceConfiguration; } /** *

* Configuration details about the data source for a batch load task. *

* * @param dataSourceConfiguration * Configuration details about the data source for a batch load task. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchLoadTaskDescription withDataSourceConfiguration(DataSourceConfiguration dataSourceConfiguration) { setDataSourceConfiguration(dataSourceConfiguration); return this; } /** *

* * @param progressReport */ public void setProgressReport(BatchLoadProgressReport progressReport) { this.progressReport = progressReport; } /** *

* * @return */ public BatchLoadProgressReport getProgressReport() { return this.progressReport; } /** *

* * @param progressReport * @return Returns a reference to this object so that method calls can be chained together. */ public BatchLoadTaskDescription withProgressReport(BatchLoadProgressReport progressReport) { setProgressReport(progressReport); return this; } /** *

* Report configuration for a batch load task. This contains details about where error reports are stored. *

* * @param reportConfiguration * Report configuration for a batch load task. This contains details about where error reports are stored. */ public void setReportConfiguration(ReportConfiguration reportConfiguration) { this.reportConfiguration = reportConfiguration; } /** *

* Report configuration for a batch load task. This contains details about where error reports are stored. *

* * @return Report configuration for a batch load task. This contains details about where error reports are stored. */ public ReportConfiguration getReportConfiguration() { return this.reportConfiguration; } /** *

* Report configuration for a batch load task. This contains details about where error reports are stored. *

* * @param reportConfiguration * Report configuration for a batch load task. This contains details about where error reports are stored. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchLoadTaskDescription withReportConfiguration(ReportConfiguration reportConfiguration) { setReportConfiguration(reportConfiguration); return this; } /** *

* Data model configuration for a batch load task. This contains details about where a data model for a batch load * task is stored. *

* * @param dataModelConfiguration * Data model configuration for a batch load task. This contains details about where a data model for a batch * load task is stored. */ public void setDataModelConfiguration(DataModelConfiguration dataModelConfiguration) { this.dataModelConfiguration = dataModelConfiguration; } /** *

* Data model configuration for a batch load task. This contains details about where a data model for a batch load * task is stored. *

* * @return Data model configuration for a batch load task. This contains details about where a data model for a * batch load task is stored. */ public DataModelConfiguration getDataModelConfiguration() { return this.dataModelConfiguration; } /** *

* Data model configuration for a batch load task. This contains details about where a data model for a batch load * task is stored. *

* * @param dataModelConfiguration * Data model configuration for a batch load task. This contains details about where a data model for a batch * load task is stored. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchLoadTaskDescription withDataModelConfiguration(DataModelConfiguration dataModelConfiguration) { setDataModelConfiguration(dataModelConfiguration); return this; } /** *

* * @param targetDatabaseName */ public void setTargetDatabaseName(String targetDatabaseName) { this.targetDatabaseName = targetDatabaseName; } /** *

* * @return */ public String getTargetDatabaseName() { return this.targetDatabaseName; } /** *

* * @param targetDatabaseName * @return Returns a reference to this object so that method calls can be chained together. */ public BatchLoadTaskDescription withTargetDatabaseName(String targetDatabaseName) { setTargetDatabaseName(targetDatabaseName); return this; } /** *

* * @param targetTableName */ public void setTargetTableName(String targetTableName) { this.targetTableName = targetTableName; } /** *

* * @return */ public String getTargetTableName() { return this.targetTableName; } /** *

* * @param targetTableName * @return Returns a reference to this object so that method calls can be chained together. */ public BatchLoadTaskDescription withTargetTableName(String targetTableName) { setTargetTableName(targetTableName); return this; } /** *

* Status of the batch load task. *

* * @param taskStatus * Status of the batch load task. * @see BatchLoadStatus */ public void setTaskStatus(String taskStatus) { this.taskStatus = taskStatus; } /** *

* Status of the batch load task. *

* * @return Status of the batch load task. * @see BatchLoadStatus */ public String getTaskStatus() { return this.taskStatus; } /** *

* Status of the batch load task. *

* * @param taskStatus * Status of the batch load task. * @return Returns a reference to this object so that method calls can be chained together. * @see BatchLoadStatus */ public BatchLoadTaskDescription withTaskStatus(String taskStatus) { setTaskStatus(taskStatus); return this; } /** *

* Status of the batch load task. *

* * @param taskStatus * Status of the batch load task. * @return Returns a reference to this object so that method calls can be chained together. * @see BatchLoadStatus */ public BatchLoadTaskDescription withTaskStatus(BatchLoadStatus taskStatus) { this.taskStatus = taskStatus.toString(); return this; } /** *

* * @param recordVersion */ public void setRecordVersion(Long recordVersion) { this.recordVersion = recordVersion; } /** *

* * @return */ public Long getRecordVersion() { return this.recordVersion; } /** *

* * @param recordVersion * @return Returns a reference to this object so that method calls can be chained together. */ public BatchLoadTaskDescription withRecordVersion(Long recordVersion) { setRecordVersion(recordVersion); return this; } /** *

* The time when the Timestream batch load task was created. *

* * @param creationTime * The time when the Timestream batch load task was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The time when the Timestream batch load task was created. *

* * @return The time when the Timestream batch load task was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The time when the Timestream batch load task was created. *

* * @param creationTime * The time when the Timestream batch load task was created. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchLoadTaskDescription withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* The time when the Timestream batch load task was last updated. *

* * @param lastUpdatedTime * The time when the Timestream batch load task was last updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** *

* The time when the Timestream batch load task was last updated. *

* * @return The time when the Timestream batch load task was last updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** *

* The time when the Timestream batch load task was last updated. *

* * @param lastUpdatedTime * The time when the Timestream batch load task was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchLoadTaskDescription withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** *

*

* * @param resumableUntil */ public void setResumableUntil(java.util.Date resumableUntil) { this.resumableUntil = resumableUntil; } /** *

*

* * @return */ public java.util.Date getResumableUntil() { return this.resumableUntil; } /** *

*

* * @param resumableUntil * @return Returns a reference to this object so that method calls can be chained together. */ public BatchLoadTaskDescription withResumableUntil(java.util.Date resumableUntil) { setResumableUntil(resumableUntil); 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 (getTaskId() != null) sb.append("TaskId: ").append(getTaskId()).append(","); if (getErrorMessage() != null) sb.append("ErrorMessage: ").append(getErrorMessage()).append(","); if (getDataSourceConfiguration() != null) sb.append("DataSourceConfiguration: ").append(getDataSourceConfiguration()).append(","); if (getProgressReport() != null) sb.append("ProgressReport: ").append(getProgressReport()).append(","); if (getReportConfiguration() != null) sb.append("ReportConfiguration: ").append(getReportConfiguration()).append(","); if (getDataModelConfiguration() != null) sb.append("DataModelConfiguration: ").append(getDataModelConfiguration()).append(","); if (getTargetDatabaseName() != null) sb.append("TargetDatabaseName: ").append(getTargetDatabaseName()).append(","); if (getTargetTableName() != null) sb.append("TargetTableName: ").append(getTargetTableName()).append(","); if (getTaskStatus() != null) sb.append("TaskStatus: ").append(getTaskStatus()).append(","); if (getRecordVersion() != null) sb.append("RecordVersion: ").append(getRecordVersion()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(","); if (getResumableUntil() != null) sb.append("ResumableUntil: ").append(getResumableUntil()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BatchLoadTaskDescription == false) return false; BatchLoadTaskDescription other = (BatchLoadTaskDescription) obj; if (other.getTaskId() == null ^ this.getTaskId() == null) return false; if (other.getTaskId() != null && other.getTaskId().equals(this.getTaskId()) == false) return false; if (other.getErrorMessage() == null ^ this.getErrorMessage() == null) return false; if (other.getErrorMessage() != null && other.getErrorMessage().equals(this.getErrorMessage()) == false) return false; if (other.getDataSourceConfiguration() == null ^ this.getDataSourceConfiguration() == null) return false; if (other.getDataSourceConfiguration() != null && other.getDataSourceConfiguration().equals(this.getDataSourceConfiguration()) == false) return false; if (other.getProgressReport() == null ^ this.getProgressReport() == null) return false; if (other.getProgressReport() != null && other.getProgressReport().equals(this.getProgressReport()) == false) return false; if (other.getReportConfiguration() == null ^ this.getReportConfiguration() == null) return false; if (other.getReportConfiguration() != null && other.getReportConfiguration().equals(this.getReportConfiguration()) == false) return false; if (other.getDataModelConfiguration() == null ^ this.getDataModelConfiguration() == null) return false; if (other.getDataModelConfiguration() != null && other.getDataModelConfiguration().equals(this.getDataModelConfiguration()) == false) return false; if (other.getTargetDatabaseName() == null ^ this.getTargetDatabaseName() == null) return false; if (other.getTargetDatabaseName() != null && other.getTargetDatabaseName().equals(this.getTargetDatabaseName()) == false) return false; if (other.getTargetTableName() == null ^ this.getTargetTableName() == null) return false; if (other.getTargetTableName() != null && other.getTargetTableName().equals(this.getTargetTableName()) == false) return false; if (other.getTaskStatus() == null ^ this.getTaskStatus() == null) return false; if (other.getTaskStatus() != null && other.getTaskStatus().equals(this.getTaskStatus()) == false) return false; if (other.getRecordVersion() == null ^ this.getRecordVersion() == null) return false; if (other.getRecordVersion() != null && other.getRecordVersion().equals(this.getRecordVersion()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; if (other.getResumableUntil() == null ^ this.getResumableUntil() == null) return false; if (other.getResumableUntil() != null && other.getResumableUntil().equals(this.getResumableUntil()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTaskId() == null) ? 0 : getTaskId().hashCode()); hashCode = prime * hashCode + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode()); hashCode = prime * hashCode + ((getDataSourceConfiguration() == null) ? 0 : getDataSourceConfiguration().hashCode()); hashCode = prime * hashCode + ((getProgressReport() == null) ? 0 : getProgressReport().hashCode()); hashCode = prime * hashCode + ((getReportConfiguration() == null) ? 0 : getReportConfiguration().hashCode()); hashCode = prime * hashCode + ((getDataModelConfiguration() == null) ? 0 : getDataModelConfiguration().hashCode()); hashCode = prime * hashCode + ((getTargetDatabaseName() == null) ? 0 : getTargetDatabaseName().hashCode()); hashCode = prime * hashCode + ((getTargetTableName() == null) ? 0 : getTargetTableName().hashCode()); hashCode = prime * hashCode + ((getTaskStatus() == null) ? 0 : getTaskStatus().hashCode()); hashCode = prime * hashCode + ((getRecordVersion() == null) ? 0 : getRecordVersion().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); hashCode = prime * hashCode + ((getResumableUntil() == null) ? 0 : getResumableUntil().hashCode()); return hashCode; } @Override public BatchLoadTaskDescription clone() { try { return (BatchLoadTaskDescription) 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.timestreamwrite.model.transform.BatchLoadTaskDescriptionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy