/* * 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.computeoptimizer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The summary of a recommendation. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Summary implements Serializable, Cloneable, StructuredPojo { /** ** The finding classification of the recommendation. *
*/ private String name; /** ** The value of the recommendation summary. *
*/ private Double value; /** ** An array of objects that summarize a finding reason code. *
*/ private java.util.List* The finding classification of the recommendation. *
* * @param name * The finding classification of the recommendation. * @see Finding */ public void setName(String name) { this.name = name; } /** ** The finding classification of the recommendation. *
* * @return The finding classification of the recommendation. * @see Finding */ public String getName() { return this.name; } /** ** The finding classification of the recommendation. *
* * @param name * The finding classification of the recommendation. * @return Returns a reference to this object so that method calls can be chained together. * @see Finding */ public Summary withName(String name) { setName(name); return this; } /** ** The finding classification of the recommendation. *
* * @param name * The finding classification of the recommendation. * @return Returns a reference to this object so that method calls can be chained together. * @see Finding */ public Summary withName(Finding name) { this.name = name.toString(); return this; } /** ** The value of the recommendation summary. *
* * @param value * The value of the recommendation summary. */ public void setValue(Double value) { this.value = value; } /** ** The value of the recommendation summary. *
* * @return The value of the recommendation summary. */ public Double getValue() { return this.value; } /** ** The value of the recommendation summary. *
* * @param value * The value of the recommendation summary. * @return Returns a reference to this object so that method calls can be chained together. */ public Summary withValue(Double value) { setValue(value); return this; } /** ** An array of objects that summarize a finding reason code. *
* * @return An array of objects that summarize a finding reason code. */ public java.util.List* An array of objects that summarize a finding reason code. *
* * @param reasonCodeSummaries * An array of objects that summarize a finding reason code. */ public void setReasonCodeSummaries(java.util.Collection* An array of objects that summarize a finding reason code. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReasonCodeSummaries(java.util.Collection)} or {@link #withReasonCodeSummaries(java.util.Collection)} * if you want to override the existing values. *
* * @param reasonCodeSummaries * An array of objects that summarize a finding reason code. * @return Returns a reference to this object so that method calls can be chained together. */ public Summary withReasonCodeSummaries(ReasonCodeSummary... reasonCodeSummaries) { if (this.reasonCodeSummaries == null) { setReasonCodeSummaries(new java.util.ArrayList* An array of objects that summarize a finding reason code. *
* * @param reasonCodeSummaries * An array of objects that summarize a finding reason code. * @return Returns a reference to this object so that method calls can be chained together. */ public Summary withReasonCodeSummaries(java.util.Collection