/* * 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.devopsguru.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about a reactive insight. This object is returned by DescribeInsight.
*
* The ID of a reactive summary. *
*/ private String id; /** ** The name of a reactive insight. *
*/ private String name; /** ** The severity of the insight. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *
*/ private String severity; /** ** The status of a reactive insight. *
*/ private String status; private InsightTimeRange insightTimeRange; private ResourceCollection resourceCollection; /** ** A collection of the names of Amazon Web Services services. *
*/ private ServiceCollection serviceCollection; /** ** The Amazon Resource Names (ARNs) of the Amazon Web Services resources that generated this insight. *
*/ private java.util.List* The ID of a reactive summary. *
* * @param id * The ID of a reactive summary. */ public void setId(String id) { this.id = id; } /** ** The ID of a reactive summary. *
* * @return The ID of a reactive summary. */ public String getId() { return this.id; } /** ** The ID of a reactive summary. *
* * @param id * The ID of a reactive summary. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveInsightSummary withId(String id) { setId(id); return this; } /** ** The name of a reactive insight. *
* * @param name * The name of a reactive insight. */ public void setName(String name) { this.name = name; } /** ** The name of a reactive insight. *
* * @return The name of a reactive insight. */ public String getName() { return this.name; } /** ** The name of a reactive insight. *
* * @param name * The name of a reactive insight. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveInsightSummary withName(String name) { setName(name); return this; } /** ** The severity of the insight. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *
* * @param severity * The severity of the insight. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. * @see InsightSeverity */ public void setSeverity(String severity) { this.severity = severity; } /** ** The severity of the insight. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *
* * @return The severity of the insight. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. * @see InsightSeverity */ public String getSeverity() { return this.severity; } /** ** The severity of the insight. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *
* * @param severity * The severity of the insight. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see InsightSeverity */ public ReactiveInsightSummary withSeverity(String severity) { setSeverity(severity); return this; } /** ** The severity of the insight. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *
* * @param severity * The severity of the insight. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see InsightSeverity */ public ReactiveInsightSummary withSeverity(InsightSeverity severity) { this.severity = severity.toString(); return this; } /** ** The status of a reactive insight. *
* * @param status * The status of a reactive insight. * @see InsightStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of a reactive insight. *
* * @return The status of a reactive insight. * @see InsightStatus */ public String getStatus() { return this.status; } /** ** The status of a reactive insight. *
* * @param status * The status of a reactive insight. * @return Returns a reference to this object so that method calls can be chained together. * @see InsightStatus */ public ReactiveInsightSummary withStatus(String status) { setStatus(status); return this; } /** ** The status of a reactive insight. *
* * @param status * The status of a reactive insight. * @return Returns a reference to this object so that method calls can be chained together. * @see InsightStatus */ public ReactiveInsightSummary withStatus(InsightStatus status) { this.status = status.toString(); return this; } /** * @param insightTimeRange */ public void setInsightTimeRange(InsightTimeRange insightTimeRange) { this.insightTimeRange = insightTimeRange; } /** * @return */ public InsightTimeRange getInsightTimeRange() { return this.insightTimeRange; } /** * @param insightTimeRange * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveInsightSummary withInsightTimeRange(InsightTimeRange insightTimeRange) { setInsightTimeRange(insightTimeRange); return this; } /** * @param resourceCollection */ public void setResourceCollection(ResourceCollection resourceCollection) { this.resourceCollection = resourceCollection; } /** * @return */ public ResourceCollection getResourceCollection() { return this.resourceCollection; } /** * @param resourceCollection * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveInsightSummary withResourceCollection(ResourceCollection resourceCollection) { setResourceCollection(resourceCollection); return this; } /** ** A collection of the names of Amazon Web Services services. *
* * @param serviceCollection * A collection of the names of Amazon Web Services services. */ public void setServiceCollection(ServiceCollection serviceCollection) { this.serviceCollection = serviceCollection; } /** ** A collection of the names of Amazon Web Services services. *
* * @return A collection of the names of Amazon Web Services services. */ public ServiceCollection getServiceCollection() { return this.serviceCollection; } /** ** A collection of the names of Amazon Web Services services. *
* * @param serviceCollection * A collection of the names of Amazon Web Services services. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveInsightSummary withServiceCollection(ServiceCollection serviceCollection) { setServiceCollection(serviceCollection); return this; } /** ** The Amazon Resource Names (ARNs) of the Amazon Web Services resources that generated this insight. *
* * @return The Amazon Resource Names (ARNs) of the Amazon Web Services resources that generated this insight. */ public java.util.List* The Amazon Resource Names (ARNs) of the Amazon Web Services resources that generated this insight. *
* * @param associatedResourceArns * The Amazon Resource Names (ARNs) of the Amazon Web Services resources that generated this insight. */ public void setAssociatedResourceArns(java.util.Collection* The Amazon Resource Names (ARNs) of the Amazon Web Services resources that generated this insight. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAssociatedResourceArns(java.util.Collection)} or * {@link #withAssociatedResourceArns(java.util.Collection)} if you want to override the existing values. *
* * @param associatedResourceArns * The Amazon Resource Names (ARNs) of the Amazon Web Services resources that generated this insight. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveInsightSummary withAssociatedResourceArns(String... associatedResourceArns) { if (this.associatedResourceArns == null) { setAssociatedResourceArns(new java.util.ArrayList* The Amazon Resource Names (ARNs) of the Amazon Web Services resources that generated this insight. *
* * @param associatedResourceArns * The Amazon Resource Names (ARNs) of the Amazon Web Services resources that generated this insight. * @return Returns a reference to this object so that method calls can be chained together. */ public ReactiveInsightSummary withAssociatedResourceArns(java.util.Collection