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;
 

The data specification of an Amazon Relational Database Service (Amazon RDS) DataSource .

 
 public class RDSDataSpec implements SerializableCloneable {

    
Describes the DatabaseName and InstanceIdentifier of an an Amazon RDS database.
 
     private RDSDatabase databaseInformation;

    
The query that is used to retrieve the observation data for the DataSource.

Constraints:
Length: 1 - 16777216

 
     private String selectSqlQuery;

    
The AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon RDS database.
 
     private RDSDatabaseCredentials databaseCredentials;

    
The Amazon S3 location for staging Amazon RDS data. The data retrieved from Amazon RDS using SelectSqlQuery is stored in this location.

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

 
     private String s3StagingLocation;

    
DataRearrangement - A JSON string that represents the splitting requirement of a DataSource.

Sample - "{\"randomSeed\":\"some-random-seed\", \"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

 
     private String dataRearrangement;

    
A JSON string that represents the schema. This is not required if DataSchemaUri is specified.

Constraints:
Length: 0 - 131071

 
     private String dataSchema;

    
The Amazon S3 location of the DataSchema.

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

 
     private String dataSchemaUri;

    
The role (DataPipelineDefaultResourceRole) assumed by an Amazon Elastic Compute Cloud (Amazon EC2) instance to carry out the copy operation from Amazon RDS to an Amazon S3 task. For more information, see Role templates for data pipelines.

Constraints:
Length: 1 - 64

 
     private String resourceRole;

    
The role (DataPipelineDefaultRole) assumed by AWS Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.

Constraints:
Length: 1 - 64

    private String serviceRole;

    
The subnet ID to be used to access a VPC-based RDS DB instance. This attribute is used by Data Pipeline to carry out the copy task from Amazon RDS to Amazon S3.

Constraints:
Length: 1 - 255

    private String subnetId;

    
The security group IDs to be used to access a VPC-based RDS DB instance. Ensure that there are appropriate ingress rules set up to allow access to the RDS DB instance. This attribute is used by Data Pipeline to carry out the copy operation from Amazon RDS to an Amazon S3 task.
Describes the DatabaseName and InstanceIdentifier of an an Amazon RDS database.

Returns:
Describes the DatabaseName and InstanceIdentifier of an an Amazon RDS database.
        return ;
    }
    
    
Describes the DatabaseName and InstanceIdentifier of an an Amazon RDS database.

Parameters:
databaseInformation Describes the DatabaseName and InstanceIdentifier of an an Amazon RDS database.
    public void setDatabaseInformation(RDSDatabase databaseInformation) {
        this. = databaseInformation;
    }
    
    
Describes the DatabaseName and InstanceIdentifier of an an Amazon RDS database.

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

Parameters:
databaseInformation Describes the DatabaseName and InstanceIdentifier of an an Amazon RDS database.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RDSDataSpec withDatabaseInformation(RDSDatabase databaseInformation) {
        this. = databaseInformation;
        return this;
    }

    
The query that is used to retrieve the observation data for the DataSource.

Constraints:
Length: 1 - 16777216

Returns:
The query that is used to retrieve the observation data for the DataSource.
    public String getSelectSqlQuery() {
        return ;
    }
    
    
The query that is used to retrieve the observation data for the DataSource.

Constraints:
Length: 1 - 16777216

Parameters:
selectSqlQuery The query that is used to retrieve the observation data for the DataSource.
    public void setSelectSqlQuery(String selectSqlQuery) {
        this. = selectSqlQuery;
    }
    
    
The query that is used to retrieve the observation data for the DataSource.

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

Constraints:
Length: 1 - 16777216

Parameters:
selectSqlQuery The query that is used to retrieve the observation data for the DataSource.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RDSDataSpec withSelectSqlQuery(String selectSqlQuery) {
        this. = selectSqlQuery;
        return this;
    }

    
The AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon RDS database.

Returns:
The AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon RDS database.
        return ;
    }
    
    
The AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon RDS database.

Parameters:
databaseCredentials The AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon RDS database.
    public void setDatabaseCredentials(RDSDatabaseCredentials databaseCredentials) {
        this. = databaseCredentials;
    }
    
    
The AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon RDS database.

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

Parameters:
databaseCredentials The AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon RDS database.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RDSDataSpec withDatabaseCredentials(RDSDatabaseCredentials databaseCredentials) {
        this. = databaseCredentials;
        return this;
    }

    
The Amazon S3 location for staging Amazon RDS data. The data retrieved from Amazon RDS using SelectSqlQuery is stored in this location.

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

Returns:
The Amazon S3 location for staging Amazon RDS data. The data retrieved from Amazon RDS using SelectSqlQuery is stored in this location.
    public String getS3StagingLocation() {
        return ;
    }
    
    
The Amazon S3 location for staging Amazon RDS data. The data retrieved from Amazon RDS using SelectSqlQuery is stored in this location.

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

Parameters:
s3StagingLocation The Amazon S3 location for staging Amazon RDS data. The data retrieved from Amazon RDS using SelectSqlQuery is stored in this location.
    public void setS3StagingLocation(String s3StagingLocation) {
        this. = s3StagingLocation;
    }
    
    
The Amazon S3 location for staging Amazon RDS data. The data retrieved from Amazon RDS using SelectSqlQuery is stored in this location.

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

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

Parameters:
s3StagingLocation The Amazon S3 location for staging Amazon RDS data. The data retrieved from Amazon RDS using SelectSqlQuery is stored in this location.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RDSDataSpec withS3StagingLocation(String s3StagingLocation) {
        this. = s3StagingLocation;
        return this;
    }

    
DataRearrangement - A JSON string that represents the splitting requirement of a DataSource.

Sample - "{\"randomSeed\":\"some-random-seed\", \"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

Returns:
DataRearrangement - A JSON string that represents the splitting requirement of a DataSource.

Sample - "{\"randomSeed\":\"some-random-seed\", \"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

    public String getDataRearrangement() {
        return ;
    }
    
    
DataRearrangement - A JSON string that represents the splitting requirement of a DataSource.

Sample - "{\"randomSeed\":\"some-random-seed\", \"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

Parameters:
dataRearrangement DataRearrangement - A JSON string that represents the splitting requirement of a DataSource.

Sample - "{\"randomSeed\":\"some-random-seed\", \"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

    public void setDataRearrangement(String dataRearrangement) {
        this. = dataRearrangement;
    }
    
    
DataRearrangement - A JSON string that represents the splitting requirement of a DataSource.

Sample - "{\"randomSeed\":\"some-random-seed\", \"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

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

Parameters:
dataRearrangement DataRearrangement - A JSON string that represents the splitting requirement of a DataSource.

Sample - "{\"randomSeed\":\"some-random-seed\", \"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"

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

    
A JSON string that represents the schema. This is not required if DataSchemaUri is specified.

Constraints:
Length: 0 - 131071

Returns:
A JSON string that represents the schema. This is not required if DataSchemaUri is specified.
    public String getDataSchema() {
        return ;
    }
    
    
A JSON string that represents the schema. This is not required if DataSchemaUri is specified.

Constraints:
Length: 0 - 131071

Parameters:
dataSchema A JSON string that represents the schema. This is not required if DataSchemaUri is specified.
    public void setDataSchema(String dataSchema) {
        this. = dataSchema;
    }
    
    
A JSON string that represents the schema. This is not required if DataSchemaUri is specified.

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

Constraints:
Length: 0 - 131071

Parameters:
dataSchema A JSON string that represents the schema. This is not required if DataSchemaUri is specified.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RDSDataSpec withDataSchema(String dataSchema) {
        this. = dataSchema;
        return this;
    }

    
The Amazon S3 location of the DataSchema.

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

Returns:
The Amazon S3 location of the DataSchema.
    public String getDataSchemaUri() {
        return ;
    }
    
    
The Amazon S3 location of the DataSchema.

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

Parameters:
dataSchemaUri The Amazon S3 location of the DataSchema.
    public void setDataSchemaUri(String dataSchemaUri) {
        this. = dataSchemaUri;
    }
    
    
The Amazon S3 location of the DataSchema.

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

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

Parameters:
dataSchemaUri The Amazon S3 location of the DataSchema.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RDSDataSpec withDataSchemaUri(String dataSchemaUri) {
        this. = dataSchemaUri;
        return this;
    }

    
The role (DataPipelineDefaultResourceRole) assumed by an Amazon Elastic Compute Cloud (Amazon EC2) instance to carry out the copy operation from Amazon RDS to an Amazon S3 task. For more information, see Role templates for data pipelines.

Constraints:
Length: 1 - 64

Returns:
The role (DataPipelineDefaultResourceRole) assumed by an Amazon Elastic Compute Cloud (Amazon EC2) instance to carry out the copy operation from Amazon RDS to an Amazon S3 task. For more information, see Role templates for data pipelines.
    public String getResourceRole() {
        return ;
    }
    
    
The role (DataPipelineDefaultResourceRole) assumed by an Amazon Elastic Compute Cloud (Amazon EC2) instance to carry out the copy operation from Amazon RDS to an Amazon S3 task. For more information, see Role templates for data pipelines.

Constraints:
Length: 1 - 64

Parameters:
resourceRole The role (DataPipelineDefaultResourceRole) assumed by an Amazon Elastic Compute Cloud (Amazon EC2) instance to carry out the copy operation from Amazon RDS to an Amazon S3 task. For more information, see Role templates for data pipelines.
    public void setResourceRole(String resourceRole) {
        this. = resourceRole;
    }
    
    
The role (DataPipelineDefaultResourceRole) assumed by an Amazon Elastic Compute Cloud (Amazon EC2) instance to carry out the copy operation from Amazon RDS to an Amazon S3 task. For more information, see Role templates for data pipelines.

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

Constraints:
Length: 1 - 64

Parameters:
resourceRole The role (DataPipelineDefaultResourceRole) assumed by an Amazon Elastic Compute Cloud (Amazon EC2) instance to carry out the copy operation from Amazon RDS to an Amazon S3 task. For more information, see Role templates for data pipelines.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RDSDataSpec withResourceRole(String resourceRole) {
        this. = resourceRole;
        return this;
    }

    
The role (DataPipelineDefaultRole) assumed by AWS Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.

Constraints:
Length: 1 - 64

Returns:
The role (DataPipelineDefaultRole) assumed by AWS Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.
    public String getServiceRole() {
        return ;
    }
    
    
The role (DataPipelineDefaultRole) assumed by AWS Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.

Constraints:
Length: 1 - 64

Parameters:
serviceRole The role (DataPipelineDefaultRole) assumed by AWS Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.
    public void setServiceRole(String serviceRole) {
        this. = serviceRole;
    }
    
    
The role (DataPipelineDefaultRole) assumed by AWS Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.

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

Constraints:
Length: 1 - 64

Parameters:
serviceRole The role (DataPipelineDefaultRole) assumed by AWS Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RDSDataSpec withServiceRole(String serviceRole) {
        this. = serviceRole;
        return this;
    }

    
The subnet ID to be used to access a VPC-based RDS DB instance. This attribute is used by Data Pipeline to carry out the copy task from Amazon RDS to Amazon S3.

Constraints:
Length: 1 - 255

Returns:
The subnet ID to be used to access a VPC-based RDS DB instance. This attribute is used by Data Pipeline to carry out the copy task from Amazon RDS to Amazon S3.
    public String getSubnetId() {
        return ;
    }
    
    
The subnet ID to be used to access a VPC-based RDS DB instance. This attribute is used by Data Pipeline to carry out the copy task from Amazon RDS to Amazon S3.

Constraints:
Length: 1 - 255

Parameters:
subnetId The subnet ID to be used to access a VPC-based RDS DB instance. This attribute is used by Data Pipeline to carry out the copy task from Amazon RDS to Amazon S3.
    public void setSubnetId(String subnetId) {
        this. = subnetId;
    }
    
    
The subnet ID to be used to access a VPC-based RDS DB instance. This attribute is used by Data Pipeline to carry out the copy task from Amazon RDS to Amazon S3.

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

Constraints:
Length: 1 - 255

Parameters:
subnetId The subnet ID to be used to access a VPC-based RDS DB instance. This attribute is used by Data Pipeline to carry out the copy task from Amazon RDS to Amazon S3.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RDSDataSpec withSubnetId(String subnetId) {
        this. = subnetId;
        return this;
    }

    
The security group IDs to be used to access a VPC-based RDS DB instance. Ensure that there are appropriate ingress rules set up to allow access to the RDS DB instance. This attribute is used by Data Pipeline to carry out the copy operation from Amazon RDS to an Amazon S3 task.

Returns:
The security group IDs to be used to access a VPC-based RDS DB instance. Ensure that there are appropriate ingress rules set up to allow access to the RDS DB instance. This attribute is used by Data Pipeline to carry out the copy operation from Amazon RDS to an Amazon S3 task.
    public java.util.List<StringgetSecurityGroupIds() {
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
The security group IDs to be used to access a VPC-based RDS DB instance. Ensure that there are appropriate ingress rules set up to allow access to the RDS DB instance. This attribute is used by Data Pipeline to carry out the copy operation from Amazon RDS to an Amazon S3 task.

Parameters:
securityGroupIds The security group IDs to be used to access a VPC-based RDS DB instance. Ensure that there are appropriate ingress rules set up to allow access to the RDS DB instance. This attribute is used by Data Pipeline to carry out the copy operation from Amazon RDS to an Amazon S3 task.
    public void setSecurityGroupIds(java.util.Collection<StringsecurityGroupIds) {
        if (securityGroupIds == null) {
            this. = null;
            return;
        }
        com.amazonaws.internal.ListWithAutoConstructFlag<StringsecurityGroupIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(securityGroupIds.size());
        securityGroupIdsCopy.addAll(securityGroupIds);
        this. = securityGroupIdsCopy;
    }
    
    
The security group IDs to be used to access a VPC-based RDS DB instance. Ensure that there are appropriate ingress rules set up to allow access to the RDS DB instance. This attribute is used by Data Pipeline to carry out the copy operation from Amazon RDS to an Amazon S3 task.

NOTE: This method appends the values to the existing list (if any). Use setSecurityGroupIds(java.util.Collection) or withSecurityGroupIds(java.util.Collection) if you want to override the existing values.

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

Parameters:
securityGroupIds The security group IDs to be used to access a VPC-based RDS DB instance. Ensure that there are appropriate ingress rules set up to allow access to the RDS DB instance. This attribute is used by Data Pipeline to carry out the copy operation from Amazon RDS to an Amazon S3 task.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RDSDataSpec withSecurityGroupIds(String... securityGroupIds) {
        if (getSecurityGroupIds() == nullsetSecurityGroupIds(new java.util.ArrayList<String>(securityGroupIds.length));
        for (String value : securityGroupIds) {
            getSecurityGroupIds().add(value);
        }
        return this;
    }
    
    
The security group IDs to be used to access a VPC-based RDS DB instance. Ensure that there are appropriate ingress rules set up to allow access to the RDS DB instance. This attribute is used by Data Pipeline to carry out the copy operation from Amazon RDS to an Amazon S3 task.

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

Parameters:
securityGroupIds The security group IDs to be used to access a VPC-based RDS DB instance. Ensure that there are appropriate ingress rules set up to allow access to the RDS DB instance. This attribute is used by Data Pipeline to carry out the copy operation from Amazon RDS to an Amazon S3 task.
Returns:
A reference to this updated object so that method calls can be chained together.
    public RDSDataSpec withSecurityGroupIds(java.util.Collection<StringsecurityGroupIds) {
        if (securityGroupIds == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringsecurityGroupIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(securityGroupIds.size());
            securityGroupIdsCopy.addAll(securityGroupIds);
            this. = securityGroupIdsCopy;
        }
        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 (getDatabaseInformation() != nullsb.append("DatabaseInformation: " + getDatabaseInformation() + ",");
        if (getSelectSqlQuery() != nullsb.append("SelectSqlQuery: " + getSelectSqlQuery() + ",");
        if (getDatabaseCredentials() != nullsb.append("DatabaseCredentials: " + getDatabaseCredentials() + ",");
        if (getS3StagingLocation() != nullsb.append("S3StagingLocation: " + getS3StagingLocation() + ",");
        if (getDataRearrangement() != nullsb.append("DataRearrangement: " + getDataRearrangement() + ",");
        if (getDataSchema() != nullsb.append("DataSchema: " + getDataSchema() + ",");
        if (getDataSchemaUri() != nullsb.append("DataSchemaUri: " + getDataSchemaUri() + ",");
        if (getResourceRole() != nullsb.append("ResourceRole: " + getResourceRole() + ",");
        if (getServiceRole() != nullsb.append("ServiceRole: " + getServiceRole() + ",");
        if (getSubnetId() != nullsb.append("SubnetId: " + getSubnetId() + ",");
        if (getSecurityGroupIds() != nullsb.append("SecurityGroupIds: " + getSecurityGroupIds() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getDatabaseInformation() == null) ? 0 : getDatabaseInformation().hashCode()); 
        hashCode = prime * hashCode + ((getSelectSqlQuery() == null) ? 0 : getSelectSqlQuery().hashCode()); 
        hashCode = prime * hashCode + ((getDatabaseCredentials() == null) ? 0 : getDatabaseCredentials().hashCode()); 
        hashCode = prime * hashCode + ((getS3StagingLocation() == null) ? 0 : getS3StagingLocation().hashCode()); 
        hashCode = prime * hashCode + ((getDataRearrangement() == null) ? 0 : getDataRearrangement().hashCode()); 
        hashCode = prime * hashCode + ((getDataSchema() == null) ? 0 : getDataSchema().hashCode()); 
        hashCode = prime * hashCode + ((getDataSchemaUri() == null) ? 0 : getDataSchemaUri().hashCode()); 
        hashCode = prime * hashCode + ((getResourceRole() == null) ? 0 : getResourceRole().hashCode()); 
        hashCode = prime * hashCode + ((getServiceRole() == null) ? 0 : getServiceRole().hashCode()); 
        hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode()); 
        hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof RDSDataSpec == falsereturn false;
        RDSDataSpec other = (RDSDataSpec)obj;
        
        if (other.getDatabaseInformation() == null ^ this.getDatabaseInformation() == nullreturn false;
        if (other.getDatabaseInformation() != null && other.getDatabaseInformation().equals(this.getDatabaseInformation()) == falsereturn false
        if (other.getSelectSqlQuery() == null ^ this.getSelectSqlQuery() == nullreturn false;
        if (other.getSelectSqlQuery() != null && other.getSelectSqlQuery().equals(this.getSelectSqlQuery()) == falsereturn false
        if (other.getDatabaseCredentials() == null ^ this.getDatabaseCredentials() == nullreturn false;
        if (other.getDatabaseCredentials() != null && other.getDatabaseCredentials().equals(this.getDatabaseCredentials()) == falsereturn false
        if (other.getS3StagingLocation() == null ^ this.getS3StagingLocation() == nullreturn false;
        if (other.getS3StagingLocation() != null && other.getS3StagingLocation().equals(this.getS3StagingLocation()) == falsereturn false
        if (other.getDataRearrangement() == null ^ this.getDataRearrangement() == nullreturn false;
        if (other.getDataRearrangement() != null && other.getDataRearrangement().equals(this.getDataRearrangement()) == falsereturn false
        if (other.getDataSchema() == null ^ this.getDataSchema() == nullreturn false;
        if (other.getDataSchema() != null && other.getDataSchema().equals(this.getDataSchema()) == falsereturn false
        if (other.getDataSchemaUri() == null ^ this.getDataSchemaUri() == nullreturn false;
        if (other.getDataSchemaUri() != null && other.getDataSchemaUri().equals(this.getDataSchemaUri()) == falsereturn false
        if (other.getResourceRole() == null ^ this.getResourceRole() == nullreturn false;
        if (other.getResourceRole() != null && other.getResourceRole().equals(this.getResourceRole()) == falsereturn false
        if (other.getServiceRole() == null ^ this.getServiceRole() == nullreturn false;
        if (other.getServiceRole() != null && other.getServiceRole().equals(this.getServiceRole()) == falsereturn false
        if (other.getSubnetId() == null ^ this.getSubnetId() == nullreturn false;
        if (other.getSubnetId() != null && other.getSubnetId().equals(this.getSubnetId()) == falsereturn false
        if (other.getSecurityGroupIds() == null ^ this.getSecurityGroupIds() == nullreturn false;
        if (other.getSecurityGroupIds() != null && other.getSecurityGroupIds().equals(this.getSecurityGroupIds()) == falsereturn false
        return true;
    }
    
    @Override
    public RDSDataSpec clone() {
        try {
            return (RDSDataSpecsuper.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