/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains the summary of the assessment results. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AssessmentSummary implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon S3 object containing the anti-pattern report. *
*/ private S3Object antipatternReportS3Object; /** ** The status of the anti-pattern report. *
*/ private String antipatternReportStatus; /** ** The status message of the anti-pattern report. *
*/ private String antipatternReportStatusMessage; /** ** The time the assessment was performed. *
*/ private java.util.Date lastAnalyzedTimestamp; /** ** List of AntipatternSeveritySummary. *
*/ private java.util.List* List of status summaries of the analyzed application components. *
*/ private java.util.List* List of ApplicationComponentStrategySummary. *
*/ private java.util.List* List of ApplicationComponentSummary. *
*/ private java.util.List* List of status summaries of the analyzed servers. *
*/ private java.util.List* List of ServerStrategySummary. *
*/ private java.util.List* List of ServerSummary. *
*/ private java.util.List* The Amazon S3 object containing the anti-pattern report. *
* * @param antipatternReportS3Object * The Amazon S3 object containing the anti-pattern report. */ public void setAntipatternReportS3Object(S3Object antipatternReportS3Object) { this.antipatternReportS3Object = antipatternReportS3Object; } /** ** The Amazon S3 object containing the anti-pattern report. *
* * @return The Amazon S3 object containing the anti-pattern report. */ public S3Object getAntipatternReportS3Object() { return this.antipatternReportS3Object; } /** ** The Amazon S3 object containing the anti-pattern report. *
* * @param antipatternReportS3Object * The Amazon S3 object containing the anti-pattern report. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withAntipatternReportS3Object(S3Object antipatternReportS3Object) { setAntipatternReportS3Object(antipatternReportS3Object); return this; } /** ** The status of the anti-pattern report. *
* * @param antipatternReportStatus * The status of the anti-pattern report. * @see AntipatternReportStatus */ public void setAntipatternReportStatus(String antipatternReportStatus) { this.antipatternReportStatus = antipatternReportStatus; } /** ** The status of the anti-pattern report. *
* * @return The status of the anti-pattern report. * @see AntipatternReportStatus */ public String getAntipatternReportStatus() { return this.antipatternReportStatus; } /** ** The status of the anti-pattern report. *
* * @param antipatternReportStatus * The status of the anti-pattern report. * @return Returns a reference to this object so that method calls can be chained together. * @see AntipatternReportStatus */ public AssessmentSummary withAntipatternReportStatus(String antipatternReportStatus) { setAntipatternReportStatus(antipatternReportStatus); return this; } /** ** The status of the anti-pattern report. *
* * @param antipatternReportStatus * The status of the anti-pattern report. * @return Returns a reference to this object so that method calls can be chained together. * @see AntipatternReportStatus */ public AssessmentSummary withAntipatternReportStatus(AntipatternReportStatus antipatternReportStatus) { this.antipatternReportStatus = antipatternReportStatus.toString(); return this; } /** ** The status message of the anti-pattern report. *
* * @param antipatternReportStatusMessage * The status message of the anti-pattern report. */ public void setAntipatternReportStatusMessage(String antipatternReportStatusMessage) { this.antipatternReportStatusMessage = antipatternReportStatusMessage; } /** ** The status message of the anti-pattern report. *
* * @return The status message of the anti-pattern report. */ public String getAntipatternReportStatusMessage() { return this.antipatternReportStatusMessage; } /** ** The status message of the anti-pattern report. *
* * @param antipatternReportStatusMessage * The status message of the anti-pattern report. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withAntipatternReportStatusMessage(String antipatternReportStatusMessage) { setAntipatternReportStatusMessage(antipatternReportStatusMessage); return this; } /** ** The time the assessment was performed. *
* * @param lastAnalyzedTimestamp * The time the assessment was performed. */ public void setLastAnalyzedTimestamp(java.util.Date lastAnalyzedTimestamp) { this.lastAnalyzedTimestamp = lastAnalyzedTimestamp; } /** ** The time the assessment was performed. *
* * @return The time the assessment was performed. */ public java.util.Date getLastAnalyzedTimestamp() { return this.lastAnalyzedTimestamp; } /** ** The time the assessment was performed. *
* * @param lastAnalyzedTimestamp * The time the assessment was performed. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withLastAnalyzedTimestamp(java.util.Date lastAnalyzedTimestamp) { setLastAnalyzedTimestamp(lastAnalyzedTimestamp); return this; } /** ** List of AntipatternSeveritySummary. *
* * @return List of AntipatternSeveritySummary. */ public java.util.List* List of AntipatternSeveritySummary. *
* * @param listAntipatternSeveritySummary * List of AntipatternSeveritySummary. */ public void setListAntipatternSeveritySummary(java.util.Collection* List of AntipatternSeveritySummary. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setListAntipatternSeveritySummary(java.util.Collection)} or * {@link #withListAntipatternSeveritySummary(java.util.Collection)} if you want to override the existing values. *
* * @param listAntipatternSeveritySummary * List of AntipatternSeveritySummary. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListAntipatternSeveritySummary(AntipatternSeveritySummary... listAntipatternSeveritySummary) { if (this.listAntipatternSeveritySummary == null) { setListAntipatternSeveritySummary(new java.util.ArrayList* List of AntipatternSeveritySummary. *
* * @param listAntipatternSeveritySummary * List of AntipatternSeveritySummary. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListAntipatternSeveritySummary(java.util.Collection* List of status summaries of the analyzed application components. *
* * @return List of status summaries of the analyzed application components. */ public java.util.List* List of status summaries of the analyzed application components. *
* * @param listApplicationComponentStatusSummary * List of status summaries of the analyzed application components. */ public void setListApplicationComponentStatusSummary(java.util.Collection* List of status summaries of the analyzed application components. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setListApplicationComponentStatusSummary(java.util.Collection)} or * {@link #withListApplicationComponentStatusSummary(java.util.Collection)} if you want to override the existing * values. *
* * @param listApplicationComponentStatusSummary * List of status summaries of the analyzed application components. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListApplicationComponentStatusSummary(ApplicationComponentStatusSummary... listApplicationComponentStatusSummary) { if (this.listApplicationComponentStatusSummary == null) { setListApplicationComponentStatusSummary(new java.util.ArrayList* List of status summaries of the analyzed application components. *
* * @param listApplicationComponentStatusSummary * List of status summaries of the analyzed application components. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListApplicationComponentStatusSummary( java.util.Collection* List of ApplicationComponentStrategySummary. *
* * @return List of ApplicationComponentStrategySummary. */ public java.util.List* List of ApplicationComponentStrategySummary. *
* * @param listApplicationComponentStrategySummary * List of ApplicationComponentStrategySummary. */ public void setListApplicationComponentStrategySummary(java.util.Collection* List of ApplicationComponentStrategySummary. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setListApplicationComponentStrategySummary(java.util.Collection)} or * {@link #withListApplicationComponentStrategySummary(java.util.Collection)} if you want to override the existing * values. *
* * @param listApplicationComponentStrategySummary * List of ApplicationComponentStrategySummary. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListApplicationComponentStrategySummary(StrategySummary... listApplicationComponentStrategySummary) { if (this.listApplicationComponentStrategySummary == null) { setListApplicationComponentStrategySummary(new java.util.ArrayList* List of ApplicationComponentStrategySummary. *
* * @param listApplicationComponentStrategySummary * List of ApplicationComponentStrategySummary. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListApplicationComponentStrategySummary(java.util.Collection* List of ApplicationComponentSummary. *
* * @return List of ApplicationComponentSummary. */ public java.util.List* List of ApplicationComponentSummary. *
* * @param listApplicationComponentSummary * List of ApplicationComponentSummary. */ public void setListApplicationComponentSummary(java.util.Collection* List of ApplicationComponentSummary. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setListApplicationComponentSummary(java.util.Collection)} or * {@link #withListApplicationComponentSummary(java.util.Collection)} if you want to override the existing values. *
* * @param listApplicationComponentSummary * List of ApplicationComponentSummary. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListApplicationComponentSummary(ApplicationComponentSummary... listApplicationComponentSummary) { if (this.listApplicationComponentSummary == null) { setListApplicationComponentSummary(new java.util.ArrayList* List of ApplicationComponentSummary. *
* * @param listApplicationComponentSummary * List of ApplicationComponentSummary. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListApplicationComponentSummary(java.util.Collection* List of status summaries of the analyzed servers. *
* * @return List of status summaries of the analyzed servers. */ public java.util.List* List of status summaries of the analyzed servers. *
* * @param listServerStatusSummary * List of status summaries of the analyzed servers. */ public void setListServerStatusSummary(java.util.Collection* List of status summaries of the analyzed servers. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setListServerStatusSummary(java.util.Collection)} or * {@link #withListServerStatusSummary(java.util.Collection)} if you want to override the existing values. *
* * @param listServerStatusSummary * List of status summaries of the analyzed servers. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListServerStatusSummary(ServerStatusSummary... listServerStatusSummary) { if (this.listServerStatusSummary == null) { setListServerStatusSummary(new java.util.ArrayList* List of status summaries of the analyzed servers. *
* * @param listServerStatusSummary * List of status summaries of the analyzed servers. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListServerStatusSummary(java.util.Collection* List of ServerStrategySummary. *
* * @return List of ServerStrategySummary. */ public java.util.List* List of ServerStrategySummary. *
* * @param listServerStrategySummary * List of ServerStrategySummary. */ public void setListServerStrategySummary(java.util.Collection* List of ServerStrategySummary. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setListServerStrategySummary(java.util.Collection)} or * {@link #withListServerStrategySummary(java.util.Collection)} if you want to override the existing values. *
* * @param listServerStrategySummary * List of ServerStrategySummary. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListServerStrategySummary(StrategySummary... listServerStrategySummary) { if (this.listServerStrategySummary == null) { setListServerStrategySummary(new java.util.ArrayList* List of ServerStrategySummary. *
* * @param listServerStrategySummary * List of ServerStrategySummary. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListServerStrategySummary(java.util.Collection* List of ServerSummary. *
* * @return List of ServerSummary. */ public java.util.List* List of ServerSummary. *
* * @param listServerSummary * List of ServerSummary. */ public void setListServerSummary(java.util.Collection* List of ServerSummary. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setListServerSummary(java.util.Collection)} or {@link #withListServerSummary(java.util.Collection)} if * you want to override the existing values. *
* * @param listServerSummary * List of ServerSummary. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListServerSummary(ServerSummary... listServerSummary) { if (this.listServerSummary == null) { setListServerSummary(new java.util.ArrayList* List of ServerSummary. *
* * @param listServerSummary * List of ServerSummary. * @return Returns a reference to this object so that method calls can be chained together. */ public AssessmentSummary withListServerSummary(java.util.Collection