com.amazonaws.services.databasemigrationservice.model.DescribeApplicableIndividualAssessmentsResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-dms Show documentation
/*
* Copyright 2019-2024 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;
/**
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeApplicableIndividualAssessmentsResult extends com.amazonaws.AmazonWebServiceResult implements
Serializable, Cloneable {
/**
*
* List of names for the individual assessments supported by the premigration assessment run that you start based on
* the specified request parameters. For more information on the available individual assessments, including
* compatibility with different migration task configurations, see Working with
* premigration assessment runs in the Database Migration Service User Guide.
*
*/
private java.util.List individualAssessmentNames;
/**
*
* Pagination token returned for you to pass to a subsequent request. If you pass this token as the
* Marker
value in a subsequent request, the response includes only records beyond the marker, up to
* the value specified in the request by MaxRecords
.
*
*/
private String marker;
/**
*
* List of names for the individual assessments supported by the premigration assessment run that you start based on
* the specified request parameters. For more information on the available individual assessments, including
* compatibility with different migration task configurations, see Working with
* premigration assessment runs in the Database Migration Service User Guide.
*
*
* @return List of names for the individual assessments supported by the premigration assessment run that you start
* based on the specified request parameters. For more information on the available individual assessments,
* including compatibility with different migration task configurations, see Working with
* premigration assessment runs in the Database Migration Service User Guide.
*/
public java.util.List getIndividualAssessmentNames() {
return individualAssessmentNames;
}
/**
*
* List of names for the individual assessments supported by the premigration assessment run that you start based on
* the specified request parameters. For more information on the available individual assessments, including
* compatibility with different migration task configurations, see Working with
* premigration assessment runs in the Database Migration Service User Guide.
*
*
* @param individualAssessmentNames
* List of names for the individual assessments supported by the premigration assessment run that you start
* based on the specified request parameters. For more information on the available individual assessments,
* including compatibility with different migration task configurations, see Working with
* premigration assessment runs in the Database Migration Service User Guide.
*/
public void setIndividualAssessmentNames(java.util.Collection individualAssessmentNames) {
if (individualAssessmentNames == null) {
this.individualAssessmentNames = null;
return;
}
this.individualAssessmentNames = new java.util.ArrayList(individualAssessmentNames);
}
/**
*
* List of names for the individual assessments supported by the premigration assessment run that you start based on
* the specified request parameters. For more information on the available individual assessments, including
* compatibility with different migration task configurations, see Working with
* premigration assessment runs in the Database Migration Service User Guide.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setIndividualAssessmentNames(java.util.Collection)} or
* {@link #withIndividualAssessmentNames(java.util.Collection)} if you want to override the existing values.
*
*
* @param individualAssessmentNames
* List of names for the individual assessments supported by the premigration assessment run that you start
* based on the specified request parameters. For more information on the available individual assessments,
* including compatibility with different migration task configurations, see Working with
* premigration assessment runs in the Database Migration Service User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicableIndividualAssessmentsResult withIndividualAssessmentNames(String... individualAssessmentNames) {
if (this.individualAssessmentNames == null) {
setIndividualAssessmentNames(new java.util.ArrayList(individualAssessmentNames.length));
}
for (String ele : individualAssessmentNames) {
this.individualAssessmentNames.add(ele);
}
return this;
}
/**
*
* List of names for the individual assessments supported by the premigration assessment run that you start based on
* the specified request parameters. For more information on the available individual assessments, including
* compatibility with different migration task configurations, see Working with
* premigration assessment runs in the Database Migration Service User Guide.
*
*
* @param individualAssessmentNames
* List of names for the individual assessments supported by the premigration assessment run that you start
* based on the specified request parameters. For more information on the available individual assessments,
* including compatibility with different migration task configurations, see Working with
* premigration assessment runs in the Database Migration Service User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicableIndividualAssessmentsResult withIndividualAssessmentNames(java.util.Collection individualAssessmentNames) {
setIndividualAssessmentNames(individualAssessmentNames);
return this;
}
/**
*
* Pagination token returned for you to pass to a subsequent request. If you pass this token as the
* Marker
value in a subsequent request, the response includes only records beyond the marker, up to
* the value specified in the request by MaxRecords
.
*
*
* @param marker
* Pagination token returned for you to pass to a subsequent request. If you pass this token as the
* Marker
value in a subsequent request, the response includes only records beyond the marker,
* up to the value specified in the request by MaxRecords
.
*/
public void setMarker(String marker) {
this.marker = marker;
}
/**
*
* Pagination token returned for you to pass to a subsequent request. If you pass this token as the
* Marker
value in a subsequent request, the response includes only records beyond the marker, up to
* the value specified in the request by MaxRecords
.
*
*
* @return Pagination token returned for you to pass to a subsequent request. If you pass this token as the
* Marker
value in a subsequent request, the response includes only records beyond the marker,
* up to the value specified in the request by MaxRecords
.
*/
public String getMarker() {
return this.marker;
}
/**
*
* Pagination token returned for you to pass to a subsequent request. If you pass this token as the
* Marker
value in a subsequent request, the response includes only records beyond the marker, up to
* the value specified in the request by MaxRecords
.
*
*
* @param marker
* Pagination token returned for you to pass to a subsequent request. If you pass this token as the
* Marker
value in a subsequent request, the response includes only records beyond the marker,
* up to the value specified in the request by MaxRecords
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicableIndividualAssessmentsResult 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 (getIndividualAssessmentNames() != null)
sb.append("IndividualAssessmentNames: ").append(getIndividualAssessmentNames()).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 DescribeApplicableIndividualAssessmentsResult == false)
return false;
DescribeApplicableIndividualAssessmentsResult other = (DescribeApplicableIndividualAssessmentsResult) obj;
if (other.getIndividualAssessmentNames() == null ^ this.getIndividualAssessmentNames() == null)
return false;
if (other.getIndividualAssessmentNames() != null && other.getIndividualAssessmentNames().equals(this.getIndividualAssessmentNames()) == 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 + ((getIndividualAssessmentNames() == null) ? 0 : getIndividualAssessmentNames().hashCode());
hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode());
return hashCode;
}
@Override
public DescribeApplicableIndividualAssessmentsResult clone() {
try {
return (DescribeApplicableIndividualAssessmentsResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}