/* * 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.codeguruprofiler.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A potential improvement that was found from analyzing the profiling data. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Recommendation implements Serializable, Cloneable, StructuredPojo { /** ** How many different places in the profile graph triggered a match. *
*/ private Integer allMatchesCount; /** ** How much of the total sample count is potentially affected. *
*/ private Double allMatchesSum; /** ** End time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
*/ private java.util.Date endTime; /** ** The pattern that analysis recognized in the profile to make this recommendation. *
*/ private Pattern pattern; /** ** The start time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
*/ private java.util.Date startTime; /** ** List of the matches with most impact. *
*/ private java.util.List* How many different places in the profile graph triggered a match. *
* * @param allMatchesCount * How many different places in the profile graph triggered a match. */ public void setAllMatchesCount(Integer allMatchesCount) { this.allMatchesCount = allMatchesCount; } /** ** How many different places in the profile graph triggered a match. *
* * @return How many different places in the profile graph triggered a match. */ public Integer getAllMatchesCount() { return this.allMatchesCount; } /** ** How many different places in the profile graph triggered a match. *
* * @param allMatchesCount * How many different places in the profile graph triggered a match. * @return Returns a reference to this object so that method calls can be chained together. */ public Recommendation withAllMatchesCount(Integer allMatchesCount) { setAllMatchesCount(allMatchesCount); return this; } /** ** How much of the total sample count is potentially affected. *
* * @param allMatchesSum * How much of the total sample count is potentially affected. */ public void setAllMatchesSum(Double allMatchesSum) { this.allMatchesSum = allMatchesSum; } /** ** How much of the total sample count is potentially affected. *
* * @return How much of the total sample count is potentially affected. */ public Double getAllMatchesSum() { return this.allMatchesSum; } /** ** How much of the total sample count is potentially affected. *
* * @param allMatchesSum * How much of the total sample count is potentially affected. * @return Returns a reference to this object so that method calls can be chained together. */ public Recommendation withAllMatchesSum(Double allMatchesSum) { setAllMatchesSum(allMatchesSum); return this; } /** ** End time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
* * @param endTime * End time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** ** End time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
* * @return End time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. */ public java.util.Date getEndTime() { return this.endTime; } /** ** End time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
* * @param endTime * End time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. * @return Returns a reference to this object so that method calls can be chained together. */ public Recommendation withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** ** The pattern that analysis recognized in the profile to make this recommendation. *
* * @param pattern * The pattern that analysis recognized in the profile to make this recommendation. */ public void setPattern(Pattern pattern) { this.pattern = pattern; } /** ** The pattern that analysis recognized in the profile to make this recommendation. *
* * @return The pattern that analysis recognized in the profile to make this recommendation. */ public Pattern getPattern() { return this.pattern; } /** ** The pattern that analysis recognized in the profile to make this recommendation. *
* * @param pattern * The pattern that analysis recognized in the profile to make this recommendation. * @return Returns a reference to this object so that method calls can be chained together. */ public Recommendation withPattern(Pattern pattern) { setPattern(pattern); return this; } /** ** The start time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
* * @param startTime * The start time of the profile that was used by this analysis. This is specified using the ISO 8601 format. * For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** The start time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
* * @return The start time of the profile that was used by this analysis. This is specified using the ISO 8601 * format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. */ public java.util.Date getStartTime() { return this.startTime; } /** ** The start time of the profile that was used by this analysis. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. *
* * @param startTime * The start time of the profile that was used by this analysis. This is specified using the ISO 8601 format. * For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC. * @return Returns a reference to this object so that method calls can be chained together. */ public Recommendation withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** List of the matches with most impact. *
* * @return List of the matches with most impact. */ public java.util.List* List of the matches with most impact. *
* * @param topMatches * List of the matches with most impact. */ public void setTopMatches(java.util.Collection* List of the matches with most impact. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTopMatches(java.util.Collection)} or {@link #withTopMatches(java.util.Collection)} if you want to * override the existing values. *
* * @param topMatches * List of the matches with most impact. * @return Returns a reference to this object so that method calls can be chained together. */ public Recommendation withTopMatches(Match... topMatches) { if (this.topMatches == null) { setTopMatches(new java.util.ArrayList* List of the matches with most impact. *
* * @param topMatches * List of the matches with most impact. * @return Returns a reference to this object so that method calls can be chained together. */ public Recommendation withTopMatches(java.util.Collection