com.amazonaws.services.databasemigrationservice.model.DescribeApplicableIndividualAssessmentsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-dms Show documentation
/*
* Copyright 2017-2022 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.databasemigrationservice.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeApplicableIndividualAssessmentsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Amazon Resource Name (ARN) of a migration task on which you want to base the default list of individual
* assessments.
*
*/
private String replicationTaskArn;
/**
*
* ARN of a replication instance on which you want to base the default list of individual assessments.
*
*/
private String replicationInstanceArn;
/**
*
* Name of a database engine that the specified replication instance supports as a source.
*
*/
private String sourceEngineName;
/**
*
* Name of a database engine that the specified replication instance supports as a target.
*
*/
private String targetEngineName;
/**
*
* Name of the migration type that each provided individual assessment must support.
*
*/
private String migrationType;
/**
*
* Maximum number of records to include in the response. If more records exist than the specified
* MaxRecords
value, a pagination token called a marker is included in the response so that the
* remaining results can be retrieved.
*
*/
private Integer maxRecords;
/**
*
* Optional pagination token provided by a previous request. If this parameter is specified, the response includes
* only records beyond the marker, up to the value specified by MaxRecords
.
*
*/
private String marker;
/**
*
* Amazon Resource Name (ARN) of a migration task on which you want to base the default list of individual
* assessments.
*
*
* @param replicationTaskArn
* Amazon Resource Name (ARN) of a migration task on which you want to base the default list of individual
* assessments.
*/
public void setReplicationTaskArn(String replicationTaskArn) {
this.replicationTaskArn = replicationTaskArn;
}
/**
*
* Amazon Resource Name (ARN) of a migration task on which you want to base the default list of individual
* assessments.
*
*
* @return Amazon Resource Name (ARN) of a migration task on which you want to base the default list of individual
* assessments.
*/
public String getReplicationTaskArn() {
return this.replicationTaskArn;
}
/**
*
* Amazon Resource Name (ARN) of a migration task on which you want to base the default list of individual
* assessments.
*
*
* @param replicationTaskArn
* Amazon Resource Name (ARN) of a migration task on which you want to base the default list of individual
* assessments.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicableIndividualAssessmentsRequest withReplicationTaskArn(String replicationTaskArn) {
setReplicationTaskArn(replicationTaskArn);
return this;
}
/**
*
* ARN of a replication instance on which you want to base the default list of individual assessments.
*
*
* @param replicationInstanceArn
* ARN of a replication instance on which you want to base the default list of individual assessments.
*/
public void setReplicationInstanceArn(String replicationInstanceArn) {
this.replicationInstanceArn = replicationInstanceArn;
}
/**
*
* ARN of a replication instance on which you want to base the default list of individual assessments.
*
*
* @return ARN of a replication instance on which you want to base the default list of individual assessments.
*/
public String getReplicationInstanceArn() {
return this.replicationInstanceArn;
}
/**
*
* ARN of a replication instance on which you want to base the default list of individual assessments.
*
*
* @param replicationInstanceArn
* ARN of a replication instance on which you want to base the default list of individual assessments.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicableIndividualAssessmentsRequest withReplicationInstanceArn(String replicationInstanceArn) {
setReplicationInstanceArn(replicationInstanceArn);
return this;
}
/**
*
* Name of a database engine that the specified replication instance supports as a source.
*
*
* @param sourceEngineName
* Name of a database engine that the specified replication instance supports as a source.
*/
public void setSourceEngineName(String sourceEngineName) {
this.sourceEngineName = sourceEngineName;
}
/**
*
* Name of a database engine that the specified replication instance supports as a source.
*
*
* @return Name of a database engine that the specified replication instance supports as a source.
*/
public String getSourceEngineName() {
return this.sourceEngineName;
}
/**
*
* Name of a database engine that the specified replication instance supports as a source.
*
*
* @param sourceEngineName
* Name of a database engine that the specified replication instance supports as a source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicableIndividualAssessmentsRequest withSourceEngineName(String sourceEngineName) {
setSourceEngineName(sourceEngineName);
return this;
}
/**
*
* Name of a database engine that the specified replication instance supports as a target.
*
*
* @param targetEngineName
* Name of a database engine that the specified replication instance supports as a target.
*/
public void setTargetEngineName(String targetEngineName) {
this.targetEngineName = targetEngineName;
}
/**
*
* Name of a database engine that the specified replication instance supports as a target.
*
*
* @return Name of a database engine that the specified replication instance supports as a target.
*/
public String getTargetEngineName() {
return this.targetEngineName;
}
/**
*
* Name of a database engine that the specified replication instance supports as a target.
*
*
* @param targetEngineName
* Name of a database engine that the specified replication instance supports as a target.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicableIndividualAssessmentsRequest withTargetEngineName(String targetEngineName) {
setTargetEngineName(targetEngineName);
return this;
}
/**
*
* Name of the migration type that each provided individual assessment must support.
*
*
* @param migrationType
* Name of the migration type that each provided individual assessment must support.
* @see MigrationTypeValue
*/
public void setMigrationType(String migrationType) {
this.migrationType = migrationType;
}
/**
*
* Name of the migration type that each provided individual assessment must support.
*
*
* @return Name of the migration type that each provided individual assessment must support.
* @see MigrationTypeValue
*/
public String getMigrationType() {
return this.migrationType;
}
/**
*
* Name of the migration type that each provided individual assessment must support.
*
*
* @param migrationType
* Name of the migration type that each provided individual assessment must support.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MigrationTypeValue
*/
public DescribeApplicableIndividualAssessmentsRequest withMigrationType(String migrationType) {
setMigrationType(migrationType);
return this;
}
/**
*
* Name of the migration type that each provided individual assessment must support.
*
*
* @param migrationType
* Name of the migration type that each provided individual assessment must support.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MigrationTypeValue
*/
public DescribeApplicableIndividualAssessmentsRequest withMigrationType(MigrationTypeValue migrationType) {
this.migrationType = migrationType.toString();
return this;
}
/**
*
* Maximum number of records to include in the response. If more records exist than the specified
* MaxRecords
value, a pagination token called a marker is included in the response so that the
* remaining results can be retrieved.
*
*
* @param maxRecords
* Maximum number of records to include in the response. If more records exist than the specified
* MaxRecords
value, a pagination token called a marker is included in the response so that the
* remaining results can be retrieved.
*/
public void setMaxRecords(Integer maxRecords) {
this.maxRecords = maxRecords;
}
/**
*
* Maximum number of records to include in the response. If more records exist than the specified
* MaxRecords
value, a pagination token called a marker is included in the response so that the
* remaining results can be retrieved.
*
*
* @return Maximum number of records to include in the response. If more records exist than the specified
* MaxRecords
value, a pagination token called a marker is included in the response so that the
* remaining results can be retrieved.
*/
public Integer getMaxRecords() {
return this.maxRecords;
}
/**
*
* Maximum number of records to include in the response. If more records exist than the specified
* MaxRecords
value, a pagination token called a marker is included in the response so that the
* remaining results can be retrieved.
*
*
* @param maxRecords
* Maximum number of records to include in the response. If more records exist than the specified
* MaxRecords
value, a pagination token called a marker is included in the response so that the
* remaining results can be retrieved.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicableIndividualAssessmentsRequest withMaxRecords(Integer maxRecords) {
setMaxRecords(maxRecords);
return this;
}
/**
*
* Optional pagination token provided by a previous request. If this parameter is specified, the response includes
* only records beyond the marker, up to the value specified by MaxRecords
.
*
*
* @param marker
* Optional pagination token provided by a previous request. If this parameter is specified, the response
* includes only records beyond the marker, up to the value specified by MaxRecords
.
*/
public void setMarker(String marker) {
this.marker = marker;
}
/**
*
* Optional pagination token provided by a previous request. If this parameter is specified, the response includes
* only records beyond the marker, up to the value specified by MaxRecords
.
*
*
* @return Optional pagination token provided by a previous request. If this parameter is specified, the response
* includes only records beyond the marker, up to the value specified by MaxRecords
.
*/
public String getMarker() {
return this.marker;
}
/**
*
* Optional pagination token provided by a previous request. If this parameter is specified, the response includes
* only records beyond the marker, up to the value specified by MaxRecords
.
*
*
* @param marker
* Optional pagination token provided by a previous request. If this parameter is specified, the response
* includes only records beyond the marker, up to the value specified by MaxRecords
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicableIndividualAssessmentsRequest withMarker(String marker) {
setMarker(marker);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getReplicationTaskArn() != null)
sb.append("ReplicationTaskArn: ").append(getReplicationTaskArn()).append(",");
if (getReplicationInstanceArn() != null)
sb.append("ReplicationInstanceArn: ").append(getReplicationInstanceArn()).append(",");
if (getSourceEngineName() != null)
sb.append("SourceEngineName: ").append(getSourceEngineName()).append(",");
if (getTargetEngineName() != null)
sb.append("TargetEngineName: ").append(getTargetEngineName()).append(",");
if (getMigrationType() != null)
sb.append("MigrationType: ").append(getMigrationType()).append(",");
if (getMaxRecords() != null)
sb.append("MaxRecords: ").append(getMaxRecords()).append(",");
if (getMarker() != null)
sb.append("Marker: ").append(getMarker());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeApplicableIndividualAssessmentsRequest == false)
return false;
DescribeApplicableIndividualAssessmentsRequest other = (DescribeApplicableIndividualAssessmentsRequest) obj;
if (other.getReplicationTaskArn() == null ^ this.getReplicationTaskArn() == null)
return false;
if (other.getReplicationTaskArn() != null && other.getReplicationTaskArn().equals(this.getReplicationTaskArn()) == false)
return false;
if (other.getReplicationInstanceArn() == null ^ this.getReplicationInstanceArn() == null)
return false;
if (other.getReplicationInstanceArn() != null && other.getReplicationInstanceArn().equals(this.getReplicationInstanceArn()) == false)
return false;
if (other.getSourceEngineName() == null ^ this.getSourceEngineName() == null)
return false;
if (other.getSourceEngineName() != null && other.getSourceEngineName().equals(this.getSourceEngineName()) == false)
return false;
if (other.getTargetEngineName() == null ^ this.getTargetEngineName() == null)
return false;
if (other.getTargetEngineName() != null && other.getTargetEngineName().equals(this.getTargetEngineName()) == false)
return false;
if (other.getMigrationType() == null ^ this.getMigrationType() == null)
return false;
if (other.getMigrationType() != null && other.getMigrationType().equals(this.getMigrationType()) == false)
return false;
if (other.getMaxRecords() == null ^ this.getMaxRecords() == null)
return false;
if (other.getMaxRecords() != null && other.getMaxRecords().equals(this.getMaxRecords()) == false)
return false;
if (other.getMarker() == null ^ this.getMarker() == null)
return false;
if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getReplicationTaskArn() == null) ? 0 : getReplicationTaskArn().hashCode());
hashCode = prime * hashCode + ((getReplicationInstanceArn() == null) ? 0 : getReplicationInstanceArn().hashCode());
hashCode = prime * hashCode + ((getSourceEngineName() == null) ? 0 : getSourceEngineName().hashCode());
hashCode = prime * hashCode + ((getTargetEngineName() == null) ? 0 : getTargetEngineName().hashCode());
hashCode = prime * hashCode + ((getMigrationType() == null) ? 0 : getMigrationType().hashCode());
hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode());
hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode());
return hashCode;
}
@Override
public DescribeApplicableIndividualAssessmentsRequest clone() {
return (DescribeApplicableIndividualAssessmentsRequest) super.clone();
}
}