/* * 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; /** *
* The structure representing the GetRecommendationsResponse. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetRecommendationsResult extends com.amazonaws.AmazonWebServiceResult* The list of anomalies that the analysis has found for this profile. *
*/ private java.util.List* The end time of the profile the analysis data is about. 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 profileEndTime; /** ** The start time of the profile the analysis data is about. 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 profileStartTime; /** ** The name of the profiling group the analysis data is about. *
*/ private String profilingGroupName; /** ** The list of recommendations that the analysis found for this profile. *
*/ private java.util.List* The list of anomalies that the analysis has found for this profile. *
* * @return The list of anomalies that the analysis has found for this profile. */ public java.util.List* The list of anomalies that the analysis has found for this profile. *
* * @param anomalies * The list of anomalies that the analysis has found for this profile. */ public void setAnomalies(java.util.Collection* The list of anomalies that the analysis has found for this profile. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAnomalies(java.util.Collection)} or {@link #withAnomalies(java.util.Collection)} if you want to * override the existing values. *
* * @param anomalies * The list of anomalies that the analysis has found for this profile. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRecommendationsResult withAnomalies(Anomaly... anomalies) { if (this.anomalies == null) { setAnomalies(new java.util.ArrayList* The list of anomalies that the analysis has found for this profile. *
* * @param anomalies * The list of anomalies that the analysis has found for this profile. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRecommendationsResult withAnomalies(java.util.Collection* The end time of the profile the analysis data is about. 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 profileEndTime * The end time of the profile the analysis data is about. 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 setProfileEndTime(java.util.Date profileEndTime) { this.profileEndTime = profileEndTime; } /** ** The end time of the profile the analysis data is about. 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 end time of the profile the analysis data is about. 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 getProfileEndTime() { return this.profileEndTime; } /** ** The end time of the profile the analysis data is about. 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 profileEndTime * The end time of the profile the analysis data is about. 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 GetRecommendationsResult withProfileEndTime(java.util.Date profileEndTime) { setProfileEndTime(profileEndTime); return this; } /** ** The start time of the profile the analysis data is about. 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 profileStartTime * The start time of the profile the analysis data is about. 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 setProfileStartTime(java.util.Date profileStartTime) { this.profileStartTime = profileStartTime; } /** ** The start time of the profile the analysis data is about. 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 the analysis data is about. 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 getProfileStartTime() { return this.profileStartTime; } /** ** The start time of the profile the analysis data is about. 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 profileStartTime * The start time of the profile the analysis data is about. 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 GetRecommendationsResult withProfileStartTime(java.util.Date profileStartTime) { setProfileStartTime(profileStartTime); return this; } /** ** The name of the profiling group the analysis data is about. *
* * @param profilingGroupName * The name of the profiling group the analysis data is about. */ public void setProfilingGroupName(String profilingGroupName) { this.profilingGroupName = profilingGroupName; } /** ** The name of the profiling group the analysis data is about. *
* * @return The name of the profiling group the analysis data is about. */ public String getProfilingGroupName() { return this.profilingGroupName; } /** ** The name of the profiling group the analysis data is about. *
* * @param profilingGroupName * The name of the profiling group the analysis data is about. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRecommendationsResult withProfilingGroupName(String profilingGroupName) { setProfilingGroupName(profilingGroupName); return this; } /** ** The list of recommendations that the analysis found for this profile. *
* * @return The list of recommendations that the analysis found for this profile. */ public java.util.List* The list of recommendations that the analysis found for this profile. *
* * @param recommendations * The list of recommendations that the analysis found for this profile. */ public void setRecommendations(java.util.Collection* The list of recommendations that the analysis found for this profile. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRecommendations(java.util.Collection)} or {@link #withRecommendations(java.util.Collection)} if you * want to override the existing values. *
* * @param recommendations * The list of recommendations that the analysis found for this profile. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRecommendationsResult withRecommendations(Recommendation... recommendations) { if (this.recommendations == null) { setRecommendations(new java.util.ArrayList* The list of recommendations that the analysis found for this profile. *
* * @param recommendations * The list of recommendations that the analysis found for this profile. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRecommendationsResult withRecommendations(java.util.Collection