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 a GetDataSource operation and describes a DataSource .

  
  public class GetDataSourceResult implements SerializableCloneable {

    
The ID assigned to the DataSource at creation. This value should be identical to the value of the DataSourceId in the request.

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

  
      private String dataSourceId;

    
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).

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

  
      private String dataLocationS3;

    
A JSON string that captures the splitting rearrangement requirement of the 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 DataSource. The time is expressed in epoch time.
  
      private java.util.Date lastUpdatedAt;

    
The total size of observations in the data files.
  
      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 Language (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 link to the file containining logs of either create DataSource operation.
 
     private String logUri;

    
The 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 schema used by all of the data files of this DataSource. <note><title>Note</title>

This parameter is provided as part of the verbose format.</note>

Constraints:
Length: 0 - 131071

 
     private String dataSourceSchema;

    
The ID assigned to the DataSource at creation. This value should be identical to the value of the DataSourceId in the request.

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

Returns:
The ID assigned to the DataSource at creation. This value should be identical to the value of the DataSourceId in the request.
 
     public String getDataSourceId() {
         return ;
     }
    
    
The ID assigned to the DataSource at creation. This value should be identical to the value of the DataSourceId in the request.

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

Parameters:
dataSourceId The ID assigned to the DataSource at creation. This value should be identical to the value of the DataSourceId in the request.
 
     public void setDataSourceId(String dataSourceId) {
         this. = dataSourceId;
     }
    
    
The ID assigned to the DataSource at creation. This value should be identical to the value of the DataSourceId in the request.

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 assigned to the DataSource at creation. This value should be identical to the value of the DataSourceId in the request.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GetDataSourceResult withDataSourceId(String dataSourceId) {
         this. = dataSourceId;
         return this;
     }

    
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).

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

Returns:
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
 
     public String getDataLocationS3() {
         return ;
     }
    
    
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).

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

Parameters:
dataLocationS3 The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
 
     public void setDataLocationS3(String dataLocationS3) {
         this. = dataLocationS3;
     }
    
    
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).

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

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

Parameters:
dataLocationS3 The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GetDataSourceResult withDataLocationS3(String dataLocationS3) {
         this. = dataLocationS3;
         return this;
     }

    
A JSON string that captures the splitting rearrangement requirement of the DataSource.

Returns:
A JSON string that captures the splitting rearrangement requirement of the DataSource.
 
     public String getDataRearrangement() {
         return ;
     }
    
    
A JSON string that captures the splitting rearrangement requirement of the DataSource.

Parameters:
dataRearrangement A JSON string that captures the splitting rearrangement requirement of the DataSource.
 
     public void setDataRearrangement(String dataRearrangement) {
         this. = dataRearrangement;
     }
    
    
A JSON string that captures the splitting rearrangement requirement of the DataSource.

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

Parameters:
dataRearrangement A JSON string that captures the splitting rearrangement requirement of the DataSource.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GetDataSourceResult 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 GetDataSourceResult 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 GetDataSourceResult withCreatedAt(java.util.Date createdAt) {
         this. = createdAt;
         return this;
     }

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

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

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

    
The total size of observations in the data files.

Returns:
The total size of observations in the data files.
 
     public Long getDataSizeInBytes() {
         return ;
     }
    
    
The total size of observations in the data files.

Parameters:
dataSizeInBytes The total size of observations in the data files.
 
     public void setDataSizeInBytes(Long dataSizeInBytes) {
         this. = dataSizeInBytes;
     }
    
    
The total size of observations in the data files.

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

Parameters:
dataSizeInBytes The total size of observations in the data files.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GetDataSourceResult 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 GetDataSourceResult 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 GetDataSourceResult 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 Language (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 Language (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 Language (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 Language (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 Language (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 Language (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 GetDataSourceResult 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 Language (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 Language (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 Language (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 Language (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 GetDataSourceResult withStatus(EntityStatus status) {
         this. = status.toString();
         return this;
     }

    
A link to the file containining logs of either create DataSource operation.

Returns:
A link to the file containining logs of either create DataSource operation.
 
     public String getLogUri() {
         return ;
     }
    
    
A link to the file containining logs of either create DataSource operation.

Parameters:
logUri A link to the file containining logs of either create DataSource operation.
 
     public void setLogUri(String logUri) {
         this. = logUri;
     }
    
    
A link to the file containining logs of either create DataSource operation.

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

Parameters:
logUri A link to the file containining logs of either create DataSource operation.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public GetDataSourceResult withLogUri(String logUri) {
         this. = logUri;
         return this;
     }

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

Constraints:
Length: 0 - 10240

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

Constraints:
Length: 0 - 10240

Parameters:
message The description of the most recent details about creating the DataSource.
 
     public void setMessage(String message) {
         this. = message;
     }
    
    
The 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 The 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 GetDataSourceResult 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 GetDataSourceResult 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 GetDataSourceResult 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 GetDataSourceResult 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 GetDataSourceResult 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 ;
     }

    
The schema used by all of the data files of this DataSource. <note><title>Note</title>

This parameter is provided as part of the verbose format.</note>

Constraints:
Length: 0 - 131071

Returns:
The schema used by all of the data files of this DataSource. <note><title>Note</title>

This parameter is provided as part of the verbose format.</note>

    public String getDataSourceSchema() {
        return ;
    }
    
    
The schema used by all of the data files of this DataSource. <note><title>Note</title>

This parameter is provided as part of the verbose format.</note>

Constraints:
Length: 0 - 131071

Parameters:
dataSourceSchema The schema used by all of the data files of this DataSource. <note><title>Note</title>

This parameter is provided as part of the verbose format.</note>

    public void setDataSourceSchema(String dataSourceSchema) {
        this. = dataSourceSchema;
    }
    
    
The schema used by all of the data files of this DataSource. <note><title>Note</title>

This parameter is provided as part of the verbose format.</note>

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

Constraints:
Length: 0 - 131071

Parameters:
dataSourceSchema The schema used by all of the data files of this DataSource. <note><title>Note</title>

This parameter is provided as part of the verbose format.</note>

Returns:
A reference to this updated object so that method calls can be chained together.
    public GetDataSourceResult withDataSourceSchema(String dataSourceSchema) {
        this. = dataSourceSchema;
        return this;
    }

    
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 (getLogUri() != nullsb.append("LogUri: " + getLogUri() + ",");
        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() + ",");
        if (getDataSourceSchema() != nullsb.append("DataSourceSchema: " + getDataSourceSchema() );
        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 + ((getLogUri() == null) ? 0 : getLogUri().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()); 
        hashCode = prime * hashCode + ((getDataSourceSchema() == null) ? 0 : getDataSourceSchema().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof GetDataSourceResult == falsereturn false;
        GetDataSourceResult other = (GetDataSourceResult)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.getLogUri() == null ^ this.getLogUri() == nullreturn false;
        if (other.getLogUri() != null && other.getLogUri().equals(this.getLogUri()) == 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
        if (other.getDataSourceSchema() == null ^ this.getDataSourceSchema() == nullreturn false;
        if (other.getDataSourceSchema() != null && other.getDataSourceSchema().equals(this.getDataSourceSchema()) == falsereturn false
        return true;
    }
    
    @Override
    public GetDataSourceResult clone() {
        try {
            return (GetDataSourceResultsuper.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