Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 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;
  

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 SerializableCloneable {

    
The ID that is assigned to the DataSource during creation.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

  
      private String dataSourceId;

    
The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a DataSource.

Constraints:
Length: 0 - 2048
Pattern: s3://([^/]+)(/.*)?

  
      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.

Constraints:
Pattern: arn:aws:iam::[0-9]+:((user/.+)|(root))

  
      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.

Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$

  
      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.

Constraints:
Allowed Values: PENDING, INPROGRESS, FAILED, COMPLETED, DELETED

 
     private String status;

    
A description of the most recent details about creating the DataSource.

Constraints:
Length: 0 - 10240

 
     private String message;

    
Describes the DataSource details specific to Amazon Redshift.
 
     private RedshiftMetadata redshiftMetadata;

    
The datasource details that are specific to Amazon RDS.
 
     private RDSMetadata rDSMetadata;

    
The Amazon Resource Name (ARN) of an AWS IAM Role such as the following: arn:aws:iam::account:role/rolename.

Constraints:
Length: 1 - 100

 
     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.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Returns:
The ID that is assigned to the DataSource during creation.
 
     public String getDataSourceId() {
         return ;
     }
    
    
The ID that is assigned to the DataSource during creation.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Parameters:
dataSourceId The ID that is assigned to the DataSource during creation.
 
     public void setDataSourceId(String dataSourceId) {
         this. = dataSourceId;
     }
    
    
The ID that is assigned to the DataSource during creation.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Parameters:
dataSourceId The ID that is assigned to the DataSource during creation.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withDataSourceId(String dataSourceId) {
         this. = dataSourceId;
         return this;
     }

    
The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a DataSource.

Constraints:
Length: 0 - 2048
Pattern: s3://([^/]+)(/.*)?

Returns:
The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a DataSource.
 
     public String getDataLocationS3() {
         return ;
     }
    
    
The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a DataSource.

Constraints:
Length: 0 - 2048
Pattern: s3://([^/]+)(/.*)?

Parameters:
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;
     }
    
    
The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a DataSource.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 2048
Pattern: s3://([^/]+)(/.*)?

Parameters:
dataLocationS3 The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a DataSource.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withDataLocationS3(String dataLocationS3) {
         this. = dataLocationS3;
         return this;
     }

    
A JSON string that represents the splitting requirement of a Datasource.

Returns:
A JSON string that represents the splitting requirement of a Datasource.
 
     public String getDataRearrangement() {
         return ;
     }
    
    
A JSON string that represents the splitting requirement of a Datasource.

Parameters:
dataRearrangement A JSON string that represents the splitting requirement of a Datasource.
 
     public void setDataRearrangement(String dataRearrangement) {
         this. = dataRearrangement;
     }
    
    
A JSON string that represents the splitting requirement of a Datasource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dataRearrangement A JSON string that represents the splitting requirement of a Datasource.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withDataRearrangement(String dataRearrangement) {
         this. = 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.

Constraints:
Pattern: arn:aws:iam::[0-9]+:((user/.+)|(root))

Returns:
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 ;
     }
    
    
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.

Constraints:
Pattern: arn:aws:iam::[0-9]+:((user/.+)|(root))

Parameters:
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;
     }
    
    
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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Pattern: arn:aws:iam::[0-9]+:((user/.+)|(root))

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withCreatedByIamUser(String createdByIamUser) {
         this. = createdByIamUser;
         return this;
     }

    
The time that the DataSource was created. The time is expressed in epoch time.

Returns:
The time that the DataSource was created. The time is expressed in epoch time.
 
     public java.util.Date getCreatedAt() {
         return ;
     }
    
    
The time that the DataSource was created. The time is expressed in epoch time.

Parameters:
createdAt The time that the DataSource was created. The time is expressed in epoch time.
 
     public void setCreatedAt(java.util.Date createdAt) {
         this. = createdAt;
     }
    
    
The time that the DataSource was created. The time is expressed in epoch time.

Returns a reference to this object so that method calls can be chained together.

Parameters:
createdAt The time that the DataSource was created. The time is expressed in epoch time.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withCreatedAt(java.util.Date createdAt) {
         this. = createdAt;
         return this;
     }

    
The time of the most recent edit to the BatchPrediction. The time is expressed in epoch time.

Returns:
The time of the most recent edit to the BatchPrediction. The time is expressed in epoch time.
 
     public java.util.Date getLastUpdatedAt() {
         return ;
     }
    
    
The time of the most recent edit to the BatchPrediction. The time is expressed in epoch time.

Parameters:
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;
     }
    
    
The time of the most recent edit to the BatchPrediction. The time is expressed in epoch time.

Returns a reference to this object so that method calls can be chained together.

Parameters:
lastUpdatedAt The time of the most recent edit to the BatchPrediction. The time is expressed in epoch time.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withLastUpdatedAt(java.util.Date lastUpdatedAt) {
         this. = lastUpdatedAt;
         return this;
     }

    
The total number of observations contained in the data files that the DataSource references.

Returns:
The total number of observations contained in the data files that the DataSource references.
 
     public Long getDataSizeInBytes() {
         return ;
     }
    
    
The total number of observations contained in the data files that the DataSource references.

Parameters:
dataSizeInBytes The total number of observations contained in the data files that the DataSource references.
 
     public void setDataSizeInBytes(Long dataSizeInBytes) {
         this. = dataSizeInBytes;
     }
    
    
The total number of observations contained in the data files that the DataSource references.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dataSizeInBytes The total number of observations contained in the data files that the DataSource references.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withDataSizeInBytes(Long dataSizeInBytes) {
         this. = dataSizeInBytes;
         return this;
     }

    
The number of data files referenced by the DataSource.

Returns:
The number of data files referenced by the DataSource.
 
     public Long getNumberOfFiles() {
         return ;
     }
    
    
The number of data files referenced by the DataSource.

Parameters:
numberOfFiles The number of data files referenced by the DataSource.
 
     public void setNumberOfFiles(Long numberOfFiles) {
         this. = numberOfFiles;
     }
    
    
The number of data files referenced by the DataSource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
numberOfFiles The number of data files referenced by the DataSource.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withNumberOfFiles(Long numberOfFiles) {
         this. = numberOfFiles;
         return this;
     }

    
A user-supplied name or description of the DataSource.

Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$

Returns:
A user-supplied name or description of the DataSource.
 
     public String getName() {
         return ;
     }
    
    
A user-supplied name or description of the DataSource.

Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$

Parameters:
name A user-supplied name or description of the DataSource.
 
     public void setName(String name) {
         this. = name;
     }
    
    
A user-supplied name or description of the DataSource.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$

Parameters:
name A user-supplied name or description of the DataSource.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withName(String name) {
         this. = 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.

Constraints:
Allowed Values: PENDING, INPROGRESS, FAILED, COMPLETED, DELETED

Returns:
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 also:
EntityStatus
 
     public String getStatus() {
         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.

Constraints:
Allowed Values: PENDING, INPROGRESS, FAILED, COMPLETED, DELETED

Parameters:
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 also:
EntityStatus
 
     public void setStatus(String status) {
         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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: PENDING, INPROGRESS, FAILED, COMPLETED, DELETED

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
EntityStatus
 
     public DataSource withStatus(String status) {
         this. = 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.

Constraints:
Allowed Values: PENDING, INPROGRESS, FAILED, COMPLETED, DELETED

Parameters:
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 also:
EntityStatus
 
     public void setStatus(EntityStatus status) {
         this. = 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: PENDING, INPROGRESS, FAILED, COMPLETED, DELETED

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
EntityStatus
 
     public DataSource withStatus(EntityStatus status) {
         this. = status.toString();
         return this;
     }

    
A description of the most recent details about creating the DataSource.

Constraints:
Length: 0 - 10240

Returns:
A description of the most recent details about creating the DataSource.
 
     public String getMessage() {
         return ;
     }
    
    
A description of the most recent details about creating the DataSource.

Constraints:
Length: 0 - 10240

Parameters:
message A description of the most recent details about creating the DataSource.
 
     public void setMessage(String message) {
         this. = message;
     }
    
    
A description of the most recent details about creating the DataSource.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 10240

Parameters:
message A description of the most recent details about creating the DataSource.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withMessage(String message) {
         this. = message;
         return this;
     }

    
Describes the DataSource details specific to Amazon Redshift.

Returns:
Describes the DataSource details specific to Amazon Redshift.
 
         return ;
     }
    
    
Describes the DataSource details specific to Amazon Redshift.

Parameters:
redshiftMetadata Describes the DataSource details specific to Amazon Redshift.
 
     public void setRedshiftMetadata(RedshiftMetadata redshiftMetadata) {
         this. = redshiftMetadata;
     }
    
    
Describes the DataSource details specific to Amazon Redshift.

Returns a reference to this object so that method calls can be chained together.

Parameters:
redshiftMetadata Describes the DataSource details specific to Amazon Redshift.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withRedshiftMetadata(RedshiftMetadata redshiftMetadata) {
         this. = redshiftMetadata;
         return this;
     }

    
The datasource details that are specific to Amazon RDS.

Returns:
The datasource details that are specific to Amazon RDS.
 
     public RDSMetadata getRDSMetadata() {
         return ;
     }
    
    
The datasource details that are specific to Amazon RDS.

Parameters:
rDSMetadata The datasource details that are specific to Amazon RDS.
 
     public void setRDSMetadata(RDSMetadata rDSMetadata) {
         this. = rDSMetadata;
     }
    
    
The datasource details that are specific to Amazon RDS.

Returns a reference to this object so that method calls can be chained together.

Parameters:
rDSMetadata The datasource details that are specific to Amazon RDS.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withRDSMetadata(RDSMetadata rDSMetadata) {
         this. = rDSMetadata;
         return this;
     }

    
The Amazon Resource Name (ARN) of an AWS IAM Role such as the following: arn:aws:iam::account:role/rolename.

Constraints:
Length: 1 - 100

Returns:
The Amazon Resource Name (ARN) of an AWS IAM Role such as the following: arn:aws:iam::account:role/rolename.
 
     public String getRoleARN() {
         return ;
     }
    
    
The Amazon Resource Name (ARN) of an AWS IAM Role such as the following: arn:aws:iam::account:role/rolename.

Constraints:
Length: 1 - 100

Parameters:
roleARN The Amazon Resource Name (ARN) of an AWS IAM Role such as the following: arn:aws:iam::account:role/rolename.
 
     public void setRoleARN(String roleARN) {
         this. = roleARN;
     }
    
    
The Amazon Resource Name (ARN) of an AWS IAM Role such as the following: arn:aws:iam::account:role/rolename.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 100

Parameters:
roleARN The Amazon Resource Name (ARN) of an AWS IAM Role such as the following: arn:aws:iam::account:role/rolename.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withRoleARN(String roleARN) {
         this. = roleARN;
         return this;
     }

    
The parameter is true if statistics need to be generated from the observation data.

Returns:
The parameter is true if statistics need to be generated from the observation data.
 
     public Boolean isComputeStatistics() {
         return ;
     }
    
    
The parameter is true if statistics need to be generated from the observation data.

Parameters:
computeStatistics The parameter is true if statistics need to be generated from the observation data.
 
     public void setComputeStatistics(Boolean computeStatistics) {
         this. = computeStatistics;
     }
    
    
The parameter is true if statistics need to be generated from the observation data.

Returns a reference to this object so that method calls can be chained together.

Parameters:
computeStatistics The parameter is true if statistics need to be generated from the observation data.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DataSource withComputeStatistics(Boolean computeStatistics) {
         this. = computeStatistics;
         return this;
     }

    
The parameter is true if statistics need to be generated from the observation data.

Returns:
The parameter is true if statistics need to be generated from the observation data.
 
     public Boolean getComputeStatistics() {
         return ;
     }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
 
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
         sb.append("{");
         if (getDataSourceId() != nullsb.append("DataSourceId: " + getDataSourceId() + ",");
         if (getDataLocationS3() != nullsb.append("DataLocationS3: " + getDataLocationS3() + ",");
         if (getDataRearrangement() != nullsb.append("DataRearrangement: " + getDataRearrangement() + ",");
         if (getCreatedByIamUser() != nullsb.append("CreatedByIamUser: " + getCreatedByIamUser() + ",");
         if (getCreatedAt() != nullsb.append("CreatedAt: " + getCreatedAt() + ",");
         if (getLastUpdatedAt() != nullsb.append("LastUpdatedAt: " + getLastUpdatedAt() + ",");
         if (getDataSizeInBytes() != nullsb.append("DataSizeInBytes: " + getDataSizeInBytes() + ",");
         if (getNumberOfFiles() != nullsb.append("NumberOfFiles: " + getNumberOfFiles() + ",");
         if (getName() != nullsb.append("Name: " + getName() + ",");
         if (getStatus() != nullsb.append("Status: " + getStatus() + ",");
         if (getMessage() != nullsb.append("Message: " + getMessage() + ",");
         if (getRedshiftMetadata() != nullsb.append("RedshiftMetadata: " + getRedshiftMetadata() + ",");
         if (getRDSMetadata() != nullsb.append("RDSMetadata: " + getRDSMetadata() + ",");
         if (getRoleARN() != nullsb.append("RoleARN: " + getRoleARN() + ",");
         if (isComputeStatistics() != nullsb.append("ComputeStatistics: " + isComputeStatistics() );
         sb.append("}");
         return sb.toString();
     }
     
     @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 + ((isComputeStatistics() == null) ? 0 : isComputeStatistics().hashCode()); 
         return hashCode;
     }
     
     @Override
     public boolean equals(Object obj) {
         if (this == objreturn true;
         if (obj == nullreturn false;
 
         if (obj instanceof DataSource == falsereturn false;
         DataSource other = (DataSource)obj;
         
         if (other.getDataSourceId() == null ^ this.getDataSourceId() == nullreturn false;
         if (other.getDataSourceId() != null && other.getDataSourceId().equals(this.getDataSourceId()) == falsereturn false
         if (other.getDataLocationS3() == null ^ this.getDataLocationS3() == nullreturn false;
         if (other.getDataLocationS3() != null && other.getDataLocationS3().equals(this.getDataLocationS3()) == falsereturn false
         if (other.getDataRearrangement() == null ^ this.getDataRearrangement() == nullreturn false;
        if (other.getDataRearrangement() != null && other.getDataRearrangement().equals(this.getDataRearrangement()) == falsereturn false
        if (other.getCreatedByIamUser() == null ^ this.getCreatedByIamUser() == nullreturn false;
        if (other.getCreatedByIamUser() != null && other.getCreatedByIamUser().equals(this.getCreatedByIamUser()) == falsereturn false
        if (other.getCreatedAt() == null ^ this.getCreatedAt() == nullreturn false;
        if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == falsereturn false
        if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == nullreturn false;
        if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == falsereturn false
        if (other.getDataSizeInBytes() == null ^ this.getDataSizeInBytes() == nullreturn false;
        if (other.getDataSizeInBytes() != null && other.getDataSizeInBytes().equals(this.getDataSizeInBytes()) == falsereturn false
        if (other.getNumberOfFiles() == null ^ this.getNumberOfFiles() == nullreturn false;
        if (other.getNumberOfFiles() != null && other.getNumberOfFiles().equals(this.getNumberOfFiles()) == falsereturn false
        if (other.getName() == null ^ this.getName() == nullreturn false;
        if (other.getName() != null && other.getName().equals(this.getName()) == falsereturn false
        if (other.getStatus() == null ^ this.getStatus() == nullreturn false;
        if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == falsereturn false
        if (other.getMessage() == null ^ this.getMessage() == nullreturn false;
        if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == falsereturn false
        if (other.getRedshiftMetadata() == null ^ this.getRedshiftMetadata() == nullreturn false;
        if (other.getRedshiftMetadata() != null && other.getRedshiftMetadata().equals(this.getRedshiftMetadata()) == falsereturn false
        if (other.getRDSMetadata() == null ^ this.getRDSMetadata() == nullreturn false;
        if (other.getRDSMetadata() != null && other.getRDSMetadata().equals(this.getRDSMetadata()) == falsereturn false
        if (other.getRoleARN() == null ^ this.getRoleARN() == nullreturn false;
        if (other.getRoleARN() != null && other.getRoleARN().equals(this.getRoleARN()) == falsereturn false
        if (other.isComputeStatistics() == null ^ this.isComputeStatistics() == nullreturn false;
        if (other.isComputeStatistics() != null && other.isComputeStatistics().equals(this.isComputeStatistics()) == falsereturn false
        return true;
    }
    
    @Override
    public DataSource clone() {
        try {
            return (DataSourcesuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X