All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.migrationhubstrategyrecommendations.model.StartAssessmentRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Migration Hub Strategy Recommendations module holds the client classes that are used for communicating with Migration Hub Strategy Recommendations Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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.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 {

    /**
     * 

* The data source type of an assessment to be started. *

*/ private String assessmentDataSourceType; /** *

* List of criteria for assessment. *

*/ private java.util.List assessmentTargets; /** *

* The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with * migrationhub-strategy-. *

*/ private String s3bucketForAnalysisData; /** *

* The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with * migrationhub-strategy-. *

*/ private String s3bucketForReportData; /** *

* The data source type of an assessment to be started. *

* * @param assessmentDataSourceType * The data source type of an assessment to be started. * @see AssessmentDataSourceType */ public void setAssessmentDataSourceType(String assessmentDataSourceType) { this.assessmentDataSourceType = assessmentDataSourceType; } /** *

* The data source type of an assessment to be started. *

* * @return The data source type of an assessment to be started. * @see AssessmentDataSourceType */ public String getAssessmentDataSourceType() { return this.assessmentDataSourceType; } /** *

* The data source type of an assessment to be started. *

* * @param assessmentDataSourceType * The data source type of an assessment to be started. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentDataSourceType */ public StartAssessmentRequest withAssessmentDataSourceType(String assessmentDataSourceType) { setAssessmentDataSourceType(assessmentDataSourceType); return this; } /** *

* The data source type of an assessment to be started. *

* * @param assessmentDataSourceType * The data source type of an assessment to be started. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentDataSourceType */ public StartAssessmentRequest withAssessmentDataSourceType(AssessmentDataSourceType assessmentDataSourceType) { this.assessmentDataSourceType = assessmentDataSourceType.toString(); return this; } /** *

* List of criteria for assessment. *

* * @return List of criteria for assessment. */ public java.util.List getAssessmentTargets() { return assessmentTargets; } /** *

* List of criteria for assessment. *

* * @param assessmentTargets * List of criteria for assessment. */ public void setAssessmentTargets(java.util.Collection assessmentTargets) { if (assessmentTargets == null) { this.assessmentTargets = null; return; } this.assessmentTargets = new java.util.ArrayList(assessmentTargets); } /** *

* 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(assessmentTargets.length)); } for (AssessmentTarget ele : assessmentTargets) { this.assessmentTargets.add(ele); } return this; } /** *

* 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 assessmentTargets) { setAssessmentTargets(assessmentTargets); return this; } /** *

* The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with * migrationhub-strategy-. *

* * @param s3bucketForAnalysisData * The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with * 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-. *

* * @return The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin * with 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-. *

* * @param s3bucketForAnalysisData * The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with * 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-. *

* * @param s3bucketForReportData * The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with * 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-. *

* * @return The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with * 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-. *

* * @param s3bucketForReportData * The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with * 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 (getAssessmentDataSourceType() != null) sb.append("AssessmentDataSourceType: ").append(getAssessmentDataSourceType()).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.getAssessmentDataSourceType() == null ^ this.getAssessmentDataSourceType() == null) return false; if (other.getAssessmentDataSourceType() != null && other.getAssessmentDataSourceType().equals(this.getAssessmentDataSourceType()) == false) return false; 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 + ((getAssessmentDataSourceType() == null) ? 0 : getAssessmentDataSourceType().hashCode()); 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(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy