
com.amazonaws.services.machinelearning.model.DataSource Maven / Gradle / Ivy
Show all versions of aws-java-sdk-machinelearning Show documentation
/*
* Copyright 2010-2016 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.machinelearning.model;
import java.io.Serializable;
/**
*
* Represents the output of the GetDataSource operation.
*
*
* The content consists of the detailed metadata and data file information and
* the current status of the DataSource
.
*
*/
public class DataSource implements Serializable, Cloneable {
/**
*
* The ID that is assigned to the DataSource
during creation.
*
*/
private String dataSourceId;
/**
*
* The location and name of the data in Amazon Simple Storage Service
* (Amazon S3) that is used by a DataSource
.
*
*/
private String dataLocationS3;
/**
*
* A JSON string that represents the splitting requirement of a
* Datasource
.
*
*/
private String dataRearrangement;
/**
*
* The AWS user account from which the DataSource
was created.
* The account type can be either an AWS root account or an AWS Identity and
* Access Management (IAM) user account.
*
*/
private String createdByIamUser;
/**
*
* The time that the DataSource
was created. The time is
* expressed in epoch time.
*
*/
private java.util.Date createdAt;
/**
*
* The time of the most recent edit to the BatchPrediction
. The
* time is expressed in epoch time.
*
*/
private java.util.Date lastUpdatedAt;
/**
*
* The total number of observations contained in the data files that the
* DataSource
references.
*
*/
private Long dataSizeInBytes;
/**
*
* The number of data files referenced by the DataSource
.
*
*/
private Long numberOfFiles;
/**
*
* A user-supplied name or description of the DataSource
.
*
*/
private String name;
/**
*
* The current status of the DataSource
. This element can have
* one of the following values:
*
*
* - PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
* create a
DataSource
.
* - INPROGRESS - The creation process is underway.
* - FAILED - The request to create a
DataSource
did not run
* to completion. It is not usable.
* - COMPLETED - The creation process completed successfully.
* - DELETED - The
DataSource
is marked as deleted. It is not
* usable.
*
*/
private String status;
/**
*
* A description of the most recent details about creating the
* DataSource
.
*
*/
private String message;
private RedshiftMetadata redshiftMetadata;
private RDSMetadata rDSMetadata;
private String roleARN;
/**
*
* The parameter is true
if statistics need to be generated
* from the observation data.
*
*/
private Boolean computeStatistics;
/**
*
* The ID that is assigned to the DataSource
during creation.
*
*
* @param dataSourceId
* The ID that is assigned to the DataSource
during
* creation.
*/
public void setDataSourceId(String dataSourceId) {
this.dataSourceId = dataSourceId;
}
/**
*
* The ID that is assigned to the DataSource
during creation.
*
*
* @return The ID that is assigned to the DataSource
during
* creation.
*/
public String getDataSourceId() {
return this.dataSourceId;
}
/**
*
* The ID that is assigned to the DataSource
during creation.
*
*
* @param dataSourceId
* The ID that is assigned to the DataSource
during
* creation.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withDataSourceId(String dataSourceId) {
setDataSourceId(dataSourceId);
return this;
}
/**
*
* The location and name of the data in Amazon Simple Storage Service
* (Amazon S3) that is used by a DataSource
.
*
*
* @param dataLocationS3
* The location and name of the data in Amazon Simple Storage Service
* (Amazon S3) that is used by a DataSource
.
*/
public void setDataLocationS3(String dataLocationS3) {
this.dataLocationS3 = dataLocationS3;
}
/**
*
* The location and name of the data in Amazon Simple Storage Service
* (Amazon S3) that is used by a DataSource
.
*
*
* @return The location and name of the data in Amazon Simple Storage
* Service (Amazon S3) that is used by a DataSource
.
*/
public String getDataLocationS3() {
return this.dataLocationS3;
}
/**
*
* The location and name of the data in Amazon Simple Storage Service
* (Amazon S3) that is used by a DataSource
.
*
*
* @param dataLocationS3
* The location and name of the data in Amazon Simple Storage Service
* (Amazon S3) that is used by a DataSource
.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withDataLocationS3(String dataLocationS3) {
setDataLocationS3(dataLocationS3);
return this;
}
/**
*
* A JSON string that represents the splitting requirement of a
* Datasource
.
*
*
* @param dataRearrangement
* A JSON string that represents the splitting requirement of a
* Datasource
.
*/
public void setDataRearrangement(String dataRearrangement) {
this.dataRearrangement = dataRearrangement;
}
/**
*
* A JSON string that represents the splitting requirement of a
* Datasource
.
*
*
* @return A JSON string that represents the splitting requirement of a
* Datasource
.
*/
public String getDataRearrangement() {
return this.dataRearrangement;
}
/**
*
* A JSON string that represents the splitting requirement of a
* Datasource
.
*
*
* @param dataRearrangement
* A JSON string that represents the splitting requirement of a
* Datasource
.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withDataRearrangement(String dataRearrangement) {
setDataRearrangement(dataRearrangement);
return this;
}
/**
*
* The AWS user account from which the DataSource
was created.
* The account type can be either an AWS root account or an AWS Identity and
* Access Management (IAM) user account.
*
*
* @param createdByIamUser
* The AWS user account from which the DataSource
was
* created. The account type can be either an AWS root account or an
* AWS Identity and Access Management (IAM) user account.
*/
public void setCreatedByIamUser(String createdByIamUser) {
this.createdByIamUser = createdByIamUser;
}
/**
*
* The AWS user account from which the DataSource
was created.
* The account type can be either an AWS root account or an AWS Identity and
* Access Management (IAM) user account.
*
*
* @return The AWS user account from which the DataSource
was
* created. The account type can be either an AWS root account or an
* AWS Identity and Access Management (IAM) user account.
*/
public String getCreatedByIamUser() {
return this.createdByIamUser;
}
/**
*
* The AWS user account from which the DataSource
was created.
* The account type can be either an AWS root account or an AWS Identity and
* Access Management (IAM) user account.
*
*
* @param createdByIamUser
* The AWS user account from which the DataSource
was
* created. The account type can be either an AWS root account or an
* AWS Identity and Access Management (IAM) user account.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withCreatedByIamUser(String createdByIamUser) {
setCreatedByIamUser(createdByIamUser);
return this;
}
/**
*
* The time that the DataSource
was created. The time is
* expressed in epoch time.
*
*
* @param createdAt
* The time that the DataSource
was created. The time is
* expressed in epoch time.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* The time that the DataSource
was created. The time is
* expressed in epoch time.
*
*
* @return The time that the DataSource
was created. The time
* is expressed in epoch time.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* The time that the DataSource
was created. The time is
* expressed in epoch time.
*
*
* @param createdAt
* The time that the DataSource
was created. The time is
* expressed in epoch time.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* The time of the most recent edit to the BatchPrediction
. The
* time is expressed in epoch time.
*
*
* @param lastUpdatedAt
* The time of the most recent edit to the
* BatchPrediction
. The time is expressed in epoch time.
*/
public void setLastUpdatedAt(java.util.Date lastUpdatedAt) {
this.lastUpdatedAt = lastUpdatedAt;
}
/**
*
* The time of the most recent edit to the BatchPrediction
. The
* time is expressed in epoch time.
*
*
* @return The time of the most recent edit to the
* BatchPrediction
. The time is expressed in epoch
* time.
*/
public java.util.Date getLastUpdatedAt() {
return this.lastUpdatedAt;
}
/**
*
* The time of the most recent edit to the BatchPrediction
. The
* time is expressed in epoch time.
*
*
* @param lastUpdatedAt
* The time of the most recent edit to the
* BatchPrediction
. The time is expressed in epoch time.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withLastUpdatedAt(java.util.Date lastUpdatedAt) {
setLastUpdatedAt(lastUpdatedAt);
return this;
}
/**
*
* The total number of observations contained in the data files that the
* DataSource
references.
*
*
* @param dataSizeInBytes
* The total number of observations contained in the data files that
* the DataSource
references.
*/
public void setDataSizeInBytes(Long dataSizeInBytes) {
this.dataSizeInBytes = dataSizeInBytes;
}
/**
*
* The total number of observations contained in the data files that the
* DataSource
references.
*
*
* @return The total number of observations contained in the data files that
* the DataSource
references.
*/
public Long getDataSizeInBytes() {
return this.dataSizeInBytes;
}
/**
*
* The total number of observations contained in the data files that the
* DataSource
references.
*
*
* @param dataSizeInBytes
* The total number of observations contained in the data files that
* the DataSource
references.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withDataSizeInBytes(Long dataSizeInBytes) {
setDataSizeInBytes(dataSizeInBytes);
return this;
}
/**
*
* The number of data files referenced by the DataSource
.
*
*
* @param numberOfFiles
* The number of data files referenced by the DataSource
* .
*/
public void setNumberOfFiles(Long numberOfFiles) {
this.numberOfFiles = numberOfFiles;
}
/**
*
* The number of data files referenced by the DataSource
.
*
*
* @return The number of data files referenced by the
* DataSource
.
*/
public Long getNumberOfFiles() {
return this.numberOfFiles;
}
/**
*
* The number of data files referenced by the DataSource
.
*
*
* @param numberOfFiles
* The number of data files referenced by the DataSource
* .
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withNumberOfFiles(Long numberOfFiles) {
setNumberOfFiles(numberOfFiles);
return this;
}
/**
*
* A user-supplied name or description of the DataSource
.
*
*
* @param name
* A user-supplied name or description of the DataSource
* .
*/
public void setName(String name) {
this.name = name;
}
/**
*
* A user-supplied name or description of the DataSource
.
*
*
* @return A user-supplied name or description of the
* DataSource
.
*/
public String getName() {
return this.name;
}
/**
*
* A user-supplied name or description of the DataSource
.
*
*
* @param name
* A user-supplied name or description of the DataSource
* .
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withName(String name) {
setName(name);
return this;
}
/**
*
* The current status of the DataSource
. This element can have
* one of the following values:
*
*
* - PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
* create a
DataSource
.
* - INPROGRESS - The creation process is underway.
* - FAILED - The request to create a
DataSource
did not run
* to completion. It is not usable.
* - COMPLETED - The creation process completed successfully.
* - DELETED - The
DataSource
is marked as deleted. It is not
* usable.
*
*
* @param status
* The current status of the DataSource
. This element
* can have one of the following values:
*
* - PENDING - Amazon Machine Learning (Amazon ML) submitted a
* request to create a
DataSource
.
* - INPROGRESS - The creation process is underway.
* - FAILED - The request to create a
DataSource
did
* not run to completion. It is not usable.
* - COMPLETED - The creation process completed successfully.
* - DELETED - The
DataSource
is marked as deleted. It
* is not usable.
* @see EntityStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The current status of the DataSource
. This element can have
* one of the following values:
*
*
* - PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
* create a
DataSource
.
* - INPROGRESS - The creation process is underway.
* - FAILED - The request to create a
DataSource
did not run
* to completion. It is not usable.
* - COMPLETED - The creation process completed successfully.
* - DELETED - The
DataSource
is marked as deleted. It is not
* usable.
*
*
* @return The current status of the DataSource
. This element
* can have one of the following values:
*
* - PENDING - Amazon Machine Learning (Amazon ML) submitted a
* request to create a
DataSource
.
* - INPROGRESS - The creation process is underway.
* - FAILED - The request to create a
DataSource
did
* not run to completion. It is not usable.
* - COMPLETED - The creation process completed successfully.
* - DELETED - The
DataSource
is marked as deleted.
* It is not usable.
* @see EntityStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The current status of the DataSource
. This element can have
* one of the following values:
*
*
* - PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
* create a
DataSource
.
* - INPROGRESS - The creation process is underway.
* - FAILED - The request to create a
DataSource
did not run
* to completion. It is not usable.
* - COMPLETED - The creation process completed successfully.
* - DELETED - The
DataSource
is marked as deleted. It is not
* usable.
*
*
* @param status
* The current status of the DataSource
. This element
* can have one of the following values:
*
* - PENDING - Amazon Machine Learning (Amazon ML) submitted a
* request to create a
DataSource
.
* - INPROGRESS - The creation process is underway.
* - FAILED - The request to create a
DataSource
did
* not run to completion. It is not usable.
* - COMPLETED - The creation process completed successfully.
* - DELETED - The
DataSource
is marked as deleted. It
* is not usable.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see EntityStatus
*/
public DataSource withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The current status of the DataSource
. This element can have
* one of the following values:
*
*
* - PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
* create a
DataSource
.
* - INPROGRESS - The creation process is underway.
* - FAILED - The request to create a
DataSource
did not run
* to completion. It is not usable.
* - COMPLETED - The creation process completed successfully.
* - DELETED - The
DataSource
is marked as deleted. It is not
* usable.
*
*
* @param status
* The current status of the DataSource
. This element
* can have one of the following values:
*
* - PENDING - Amazon Machine Learning (Amazon ML) submitted a
* request to create a
DataSource
.
* - INPROGRESS - The creation process is underway.
* - FAILED - The request to create a
DataSource
did
* not run to completion. It is not usable.
* - COMPLETED - The creation process completed successfully.
* - DELETED - The
DataSource
is marked as deleted. It
* is not usable.
* @see EntityStatus
*/
public void setStatus(EntityStatus status) {
this.status = status.toString();
}
/**
*
* The current status of the DataSource
. This element can have
* one of the following values:
*
*
* - PENDING - Amazon Machine Learning (Amazon ML) submitted a request to
* create a
DataSource
.
* - INPROGRESS - The creation process is underway.
* - FAILED - The request to create a
DataSource
did not run
* to completion. It is not usable.
* - COMPLETED - The creation process completed successfully.
* - DELETED - The
DataSource
is marked as deleted. It is not
* usable.
*
*
* @param status
* The current status of the DataSource
. This element
* can have one of the following values:
*
* - PENDING - Amazon Machine Learning (Amazon ML) submitted a
* request to create a
DataSource
.
* - INPROGRESS - The creation process is underway.
* - FAILED - The request to create a
DataSource
did
* not run to completion. It is not usable.
* - COMPLETED - The creation process completed successfully.
* - DELETED - The
DataSource
is marked as deleted. It
* is not usable.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see EntityStatus
*/
public DataSource withStatus(EntityStatus status) {
setStatus(status);
return this;
}
/**
*
* A description of the most recent details about creating the
* DataSource
.
*
*
* @param message
* A description of the most recent details about creating the
* DataSource
.
*/
public void setMessage(String message) {
this.message = message;
}
/**
*
* A description of the most recent details about creating the
* DataSource
.
*
*
* @return A description of the most recent details about creating the
* DataSource
.
*/
public String getMessage() {
return this.message;
}
/**
*
* A description of the most recent details about creating the
* DataSource
.
*
*
* @param message
* A description of the most recent details about creating the
* DataSource
.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withMessage(String message) {
setMessage(message);
return this;
}
/**
* @param redshiftMetadata
*/
public void setRedshiftMetadata(RedshiftMetadata redshiftMetadata) {
this.redshiftMetadata = redshiftMetadata;
}
/**
* @return
*/
public RedshiftMetadata getRedshiftMetadata() {
return this.redshiftMetadata;
}
/**
* @param redshiftMetadata
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withRedshiftMetadata(RedshiftMetadata redshiftMetadata) {
setRedshiftMetadata(redshiftMetadata);
return this;
}
/**
* @param rDSMetadata
*/
public void setRDSMetadata(RDSMetadata rDSMetadata) {
this.rDSMetadata = rDSMetadata;
}
/**
* @return
*/
public RDSMetadata getRDSMetadata() {
return this.rDSMetadata;
}
/**
* @param rDSMetadata
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withRDSMetadata(RDSMetadata rDSMetadata) {
setRDSMetadata(rDSMetadata);
return this;
}
/**
* @param roleARN
*/
public void setRoleARN(String roleARN) {
this.roleARN = roleARN;
}
/**
* @return
*/
public String getRoleARN() {
return this.roleARN;
}
/**
* @param roleARN
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withRoleARN(String roleARN) {
setRoleARN(roleARN);
return this;
}
/**
*
* The parameter is true
if statistics need to be generated
* from the observation data.
*
*
* @param computeStatistics
* The parameter is true
if statistics need to be
* generated from the observation data.
*/
public void setComputeStatistics(Boolean computeStatistics) {
this.computeStatistics = computeStatistics;
}
/**
*
* The parameter is true
if statistics need to be generated
* from the observation data.
*
*
* @return The parameter is true
if statistics need to be
* generated from the observation data.
*/
public Boolean getComputeStatistics() {
return this.computeStatistics;
}
/**
*
* The parameter is true
if statistics need to be generated
* from the observation data.
*
*
* @param computeStatistics
* The parameter is true
if statistics need to be
* generated from the observation data.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public DataSource withComputeStatistics(Boolean computeStatistics) {
setComputeStatistics(computeStatistics);
return this;
}
/**
*
* The parameter is true
if statistics need to be generated
* from the observation data.
*
*
* @return The parameter is true
if statistics need to be
* generated from the observation data.
*/
public Boolean isComputeStatistics() {
return this.computeStatistics;
}
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getDataSourceId() != null)
sb.append("DataSourceId: " + getDataSourceId() + ",");
if (getDataLocationS3() != null)
sb.append("DataLocationS3: " + getDataLocationS3() + ",");
if (getDataRearrangement() != null)
sb.append("DataRearrangement: " + getDataRearrangement() + ",");
if (getCreatedByIamUser() != null)
sb.append("CreatedByIamUser: " + getCreatedByIamUser() + ",");
if (getCreatedAt() != null)
sb.append("CreatedAt: " + getCreatedAt() + ",");
if (getLastUpdatedAt() != null)
sb.append("LastUpdatedAt: " + getLastUpdatedAt() + ",");
if (getDataSizeInBytes() != null)
sb.append("DataSizeInBytes: " + getDataSizeInBytes() + ",");
if (getNumberOfFiles() != null)
sb.append("NumberOfFiles: " + getNumberOfFiles() + ",");
if (getName() != null)
sb.append("Name: " + getName() + ",");
if (getStatus() != null)
sb.append("Status: " + getStatus() + ",");
if (getMessage() != null)
sb.append("Message: " + getMessage() + ",");
if (getRedshiftMetadata() != null)
sb.append("RedshiftMetadata: " + getRedshiftMetadata() + ",");
if (getRDSMetadata() != null)
sb.append("RDSMetadata: " + getRDSMetadata() + ",");
if (getRoleARN() != null)
sb.append("RoleARN: " + getRoleARN() + ",");
if (getComputeStatistics() != null)
sb.append("ComputeStatistics: " + getComputeStatistics());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DataSource == false)
return false;
DataSource other = (DataSource) obj;
if (other.getDataSourceId() == null ^ this.getDataSourceId() == null)
return false;
if (other.getDataSourceId() != null
&& other.getDataSourceId().equals(this.getDataSourceId()) == false)
return false;
if (other.getDataLocationS3() == null
^ this.getDataLocationS3() == null)
return false;
if (other.getDataLocationS3() != null
&& other.getDataLocationS3().equals(this.getDataLocationS3()) == false)
return false;
if (other.getDataRearrangement() == null
^ this.getDataRearrangement() == null)
return false;
if (other.getDataRearrangement() != null
&& other.getDataRearrangement().equals(
this.getDataRearrangement()) == false)
return false;
if (other.getCreatedByIamUser() == null
^ this.getCreatedByIamUser() == null)
return false;
if (other.getCreatedByIamUser() != null
&& other.getCreatedByIamUser().equals(
this.getCreatedByIamUser()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null
&& other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null)
return false;
if (other.getLastUpdatedAt() != null
&& other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false)
return false;
if (other.getDataSizeInBytes() == null
^ this.getDataSizeInBytes() == null)
return false;
if (other.getDataSizeInBytes() != null
&& other.getDataSizeInBytes().equals(this.getDataSizeInBytes()) == false)
return false;
if (other.getNumberOfFiles() == null ^ this.getNumberOfFiles() == null)
return false;
if (other.getNumberOfFiles() != null
&& other.getNumberOfFiles().equals(this.getNumberOfFiles()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null
&& other.getName().equals(this.getName()) == 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.getMessage() == null ^ this.getMessage() == null)
return false;
if (other.getMessage() != null
&& other.getMessage().equals(this.getMessage()) == false)
return false;
if (other.getRedshiftMetadata() == null
^ this.getRedshiftMetadata() == null)
return false;
if (other.getRedshiftMetadata() != null
&& other.getRedshiftMetadata().equals(
this.getRedshiftMetadata()) == false)
return false;
if (other.getRDSMetadata() == null ^ this.getRDSMetadata() == null)
return false;
if (other.getRDSMetadata() != null
&& other.getRDSMetadata().equals(this.getRDSMetadata()) == false)
return false;
if (other.getRoleARN() == null ^ this.getRoleARN() == null)
return false;
if (other.getRoleARN() != null
&& other.getRoleARN().equals(this.getRoleARN()) == false)
return false;
if (other.getComputeStatistics() == null
^ this.getComputeStatistics() == null)
return false;
if (other.getComputeStatistics() != null
&& other.getComputeStatistics().equals(
this.getComputeStatistics()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime
* hashCode
+ ((getDataSourceId() == null) ? 0 : getDataSourceId()
.hashCode());
hashCode = prime
* hashCode
+ ((getDataLocationS3() == null) ? 0 : getDataLocationS3()
.hashCode());
hashCode = prime
* hashCode
+ ((getDataRearrangement() == null) ? 0
: getDataRearrangement().hashCode());
hashCode = prime
* hashCode
+ ((getCreatedByIamUser() == null) ? 0 : getCreatedByIamUser()
.hashCode());
hashCode = prime * hashCode
+ ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime
* hashCode
+ ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt()
.hashCode());
hashCode = prime
* hashCode
+ ((getDataSizeInBytes() == null) ? 0 : getDataSizeInBytes()
.hashCode());
hashCode = prime
* hashCode
+ ((getNumberOfFiles() == null) ? 0 : getNumberOfFiles()
.hashCode());
hashCode = prime * hashCode
+ ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode
+ ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode
+ ((getMessage() == null) ? 0 : getMessage().hashCode());
hashCode = prime
* hashCode
+ ((getRedshiftMetadata() == null) ? 0 : getRedshiftMetadata()
.hashCode());
hashCode = prime
* hashCode
+ ((getRDSMetadata() == null) ? 0 : getRDSMetadata().hashCode());
hashCode = prime * hashCode
+ ((getRoleARN() == null) ? 0 : getRoleARN().hashCode());
hashCode = prime
* hashCode
+ ((getComputeStatistics() == null) ? 0
: getComputeStatistics().hashCode());
return hashCode;
}
@Override
public DataSource clone() {
try {
return (DataSource) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException(
"Got a CloneNotSupportedException from Object.clone() "
+ "even though we're Cloneable!", e);
}
}
}