/* * Copyright 2018-2023 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.migrationhubstrategyrecommendations.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 StartAssessmentRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* List of criteria for assessment. *
*/ private java.util.List
* The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with
* migrationhub-strategy-
.
*
* The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with
* migrationhub-strategy-
.
*
* List of criteria for assessment. *
* * @return List of criteria for assessment. */ public java.util.List* List of criteria for assessment. *
* * @param assessmentTargets * List of criteria for assessment. */ public void setAssessmentTargets(java.util.Collection* List of criteria for assessment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAssessmentTargets(java.util.Collection)} or {@link #withAssessmentTargets(java.util.Collection)} if * you want to override the existing values. *
* * @param assessmentTargets * List of criteria for assessment. * @return Returns a reference to this object so that method calls can be chained together. */ public StartAssessmentRequest withAssessmentTargets(AssessmentTarget... assessmentTargets) { if (this.assessmentTargets == null) { setAssessmentTargets(new java.util.ArrayList* List of criteria for assessment. *
* * @param assessmentTargets * List of criteria for assessment. * @return Returns a reference to this object so that method calls can be chained together. */ public StartAssessmentRequest withAssessmentTargets(java.util.Collection
* The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with
* migrationhub-strategy-
.
*
migrationhub-strategy-
.
*/
public void setS3bucketForAnalysisData(String s3bucketForAnalysisData) {
this.s3bucketForAnalysisData = s3bucketForAnalysisData;
}
/**
*
* The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with
* migrationhub-strategy-
.
*
migrationhub-strategy-
.
*/
public String getS3bucketForAnalysisData() {
return this.s3bucketForAnalysisData;
}
/**
*
* The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with
* migrationhub-strategy-
.
*
migrationhub-strategy-
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartAssessmentRequest withS3bucketForAnalysisData(String s3bucketForAnalysisData) {
setS3bucketForAnalysisData(s3bucketForAnalysisData);
return this;
}
/**
*
* The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with
* migrationhub-strategy-
.
*
migrationhub-strategy-
.
*/
public void setS3bucketForReportData(String s3bucketForReportData) {
this.s3bucketForReportData = s3bucketForReportData;
}
/**
*
* The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with
* migrationhub-strategy-
.
*
migrationhub-strategy-
.
*/
public String getS3bucketForReportData() {
return this.s3bucketForReportData;
}
/**
*
* The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with
* migrationhub-strategy-
.
*
migrationhub-strategy-
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartAssessmentRequest withS3bucketForReportData(String s3bucketForReportData) {
setS3bucketForReportData(s3bucketForReportData);
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 (getAssessmentTargets() != null)
sb.append("AssessmentTargets: ").append(getAssessmentTargets()).append(",");
if (getS3bucketForAnalysisData() != null)
sb.append("S3bucketForAnalysisData: ").append(getS3bucketForAnalysisData()).append(",");
if (getS3bucketForReportData() != null)
sb.append("S3bucketForReportData: ").append(getS3bucketForReportData());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StartAssessmentRequest == false)
return false;
StartAssessmentRequest other = (StartAssessmentRequest) obj;
if (other.getAssessmentTargets() == null ^ this.getAssessmentTargets() == null)
return false;
if (other.getAssessmentTargets() != null && other.getAssessmentTargets().equals(this.getAssessmentTargets()) == false)
return false;
if (other.getS3bucketForAnalysisData() == null ^ this.getS3bucketForAnalysisData() == null)
return false;
if (other.getS3bucketForAnalysisData() != null && other.getS3bucketForAnalysisData().equals(this.getS3bucketForAnalysisData()) == false)
return false;
if (other.getS3bucketForReportData() == null ^ this.getS3bucketForReportData() == null)
return false;
if (other.getS3bucketForReportData() != null && other.getS3bucketForReportData().equals(this.getS3bucketForReportData()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAssessmentTargets() == null) ? 0 : getAssessmentTargets().hashCode());
hashCode = prime * hashCode + ((getS3bucketForAnalysisData() == null) ? 0 : getS3bucketForAnalysisData().hashCode());
hashCode = prime * hashCode + ((getS3bucketForReportData() == null) ? 0 : getS3bucketForReportData().hashCode());
return hashCode;
}
@Override
public StartAssessmentRequest clone() {
return (StartAssessmentRequest) super.clone();
}
}