All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.devopsguru.model.ProactiveOrganizationInsightSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon DevOps Guru module holds the client classes that are used for communicating with Amazon DevOps Guru Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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;

/**
 * 

* Details about a proactive insight. This object is returned by DescribeInsight. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ProactiveOrganizationInsightSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The ID of the insight summary. *

*/ private String id; /** *

* The ID of the Amazon Web Services account. *

*/ private String accountId; /** *

* The ID of the organizational unit. *

*/ private String organizationalUnitId; /** *

* The name of the insight summary. *

*/ private String name; /** *

* An array of severity values used to search for insights. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *

*/ private String severity; /** *

* An array of status values used to search for insights. *

*/ private String status; private InsightTimeRange insightTimeRange; private PredictionTimeRange predictionTimeRange; private ResourceCollection resourceCollection; private ServiceCollection serviceCollection; /** *

* The ID of the insight summary. *

* * @param id * The ID of the insight summary. */ public void setId(String id) { this.id = id; } /** *

* The ID of the insight summary. *

* * @return The ID of the insight summary. */ public String getId() { return this.id; } /** *

* The ID of the insight summary. *

* * @param id * The ID of the insight summary. * @return Returns a reference to this object so that method calls can be chained together. */ public ProactiveOrganizationInsightSummary withId(String id) { setId(id); return this; } /** *

* The ID of the Amazon Web Services account. *

* * @param accountId * The ID of the Amazon Web Services account. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** *

* The ID of the Amazon Web Services account. *

* * @return The ID of the Amazon Web Services account. */ public String getAccountId() { return this.accountId; } /** *

* The ID of the Amazon Web Services account. *

* * @param accountId * The ID of the Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public ProactiveOrganizationInsightSummary withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

* The ID of the organizational unit. *

* * @param organizationalUnitId * The ID of the organizational unit. */ public void setOrganizationalUnitId(String organizationalUnitId) { this.organizationalUnitId = organizationalUnitId; } /** *

* The ID of the organizational unit. *

* * @return The ID of the organizational unit. */ public String getOrganizationalUnitId() { return this.organizationalUnitId; } /** *

* The ID of the organizational unit. *

* * @param organizationalUnitId * The ID of the organizational unit. * @return Returns a reference to this object so that method calls can be chained together. */ public ProactiveOrganizationInsightSummary withOrganizationalUnitId(String organizationalUnitId) { setOrganizationalUnitId(organizationalUnitId); return this; } /** *

* The name of the insight summary. *

* * @param name * The name of the insight summary. */ public void setName(String name) { this.name = name; } /** *

* The name of the insight summary. *

* * @return The name of the insight summary. */ public String getName() { return this.name; } /** *

* The name of the insight summary. *

* * @param name * The name of the insight summary. * @return Returns a reference to this object so that method calls can be chained together. */ public ProactiveOrganizationInsightSummary withName(String name) { setName(name); return this; } /** *

* An array of severity values used to search for insights. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *

* * @param severity * An array of severity values used to search for insights. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. * @see InsightSeverity */ public void setSeverity(String severity) { this.severity = severity; } /** *

* An array of severity values used to search for insights. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *

* * @return An array of severity values used to search for insights. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. * @see InsightSeverity */ public String getSeverity() { return this.severity; } /** *

* An array of severity values used to search for insights. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *

* * @param severity * An array of severity values used to search for insights. 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 ProactiveOrganizationInsightSummary withSeverity(String severity) { setSeverity(severity); return this; } /** *

* An array of severity values used to search for insights. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide. *

* * @param severity * An array of severity values used to search for insights. 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 ProactiveOrganizationInsightSummary withSeverity(InsightSeverity severity) { this.severity = severity.toString(); return this; } /** *

* An array of status values used to search for insights. *

* * @param status * An array of status values used to search for insights. * @see InsightStatus */ public void setStatus(String status) { this.status = status; } /** *

* An array of status values used to search for insights. *

* * @return An array of status values used to search for insights. * @see InsightStatus */ public String getStatus() { return this.status; } /** *

* An array of status values used to search for insights. *

* * @param status * An array of status values used to search for insights. * @return Returns a reference to this object so that method calls can be chained together. * @see InsightStatus */ public ProactiveOrganizationInsightSummary withStatus(String status) { setStatus(status); return this; } /** *

* An array of status values used to search for insights. *

* * @param status * An array of status values used to search for insights. * @return Returns a reference to this object so that method calls can be chained together. * @see InsightStatus */ public ProactiveOrganizationInsightSummary 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 ProactiveOrganizationInsightSummary withInsightTimeRange(InsightTimeRange insightTimeRange) { setInsightTimeRange(insightTimeRange); return this; } /** * @param predictionTimeRange */ public void setPredictionTimeRange(PredictionTimeRange predictionTimeRange) { this.predictionTimeRange = predictionTimeRange; } /** * @return */ public PredictionTimeRange getPredictionTimeRange() { return this.predictionTimeRange; } /** * @param predictionTimeRange * @return Returns a reference to this object so that method calls can be chained together. */ public ProactiveOrganizationInsightSummary withPredictionTimeRange(PredictionTimeRange predictionTimeRange) { setPredictionTimeRange(predictionTimeRange); 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 ProactiveOrganizationInsightSummary withResourceCollection(ResourceCollection resourceCollection) { setResourceCollection(resourceCollection); return this; } /** * @param serviceCollection */ public void setServiceCollection(ServiceCollection serviceCollection) { this.serviceCollection = serviceCollection; } /** * @return */ public ServiceCollection getServiceCollection() { return this.serviceCollection; } /** * @param serviceCollection * @return Returns a reference to this object so that method calls can be chained together. */ public ProactiveOrganizationInsightSummary withServiceCollection(ServiceCollection serviceCollection) { setServiceCollection(serviceCollection); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getAccountId() != null) sb.append("AccountId: ").append(getAccountId()).append(","); if (getOrganizationalUnitId() != null) sb.append("OrganizationalUnitId: ").append(getOrganizationalUnitId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getSeverity() != null) sb.append("Severity: ").append(getSeverity()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getInsightTimeRange() != null) sb.append("InsightTimeRange: ").append(getInsightTimeRange()).append(","); if (getPredictionTimeRange() != null) sb.append("PredictionTimeRange: ").append(getPredictionTimeRange()).append(","); if (getResourceCollection() != null) sb.append("ResourceCollection: ").append(getResourceCollection()).append(","); if (getServiceCollection() != null) sb.append("ServiceCollection: ").append(getServiceCollection()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ProactiveOrganizationInsightSummary == false) return false; ProactiveOrganizationInsightSummary other = (ProactiveOrganizationInsightSummary) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getOrganizationalUnitId() == null ^ this.getOrganizationalUnitId() == null) return false; if (other.getOrganizationalUnitId() != null && other.getOrganizationalUnitId().equals(this.getOrganizationalUnitId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getSeverity() == null ^ this.getSeverity() == null) return false; if (other.getSeverity() != null && other.getSeverity().equals(this.getSeverity()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getInsightTimeRange() == null ^ this.getInsightTimeRange() == null) return false; if (other.getInsightTimeRange() != null && other.getInsightTimeRange().equals(this.getInsightTimeRange()) == false) return false; if (other.getPredictionTimeRange() == null ^ this.getPredictionTimeRange() == null) return false; if (other.getPredictionTimeRange() != null && other.getPredictionTimeRange().equals(this.getPredictionTimeRange()) == false) return false; if (other.getResourceCollection() == null ^ this.getResourceCollection() == null) return false; if (other.getResourceCollection() != null && other.getResourceCollection().equals(this.getResourceCollection()) == false) return false; if (other.getServiceCollection() == null ^ this.getServiceCollection() == null) return false; if (other.getServiceCollection() != null && other.getServiceCollection().equals(this.getServiceCollection()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getOrganizationalUnitId() == null) ? 0 : getOrganizationalUnitId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getSeverity() == null) ? 0 : getSeverity().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getInsightTimeRange() == null) ? 0 : getInsightTimeRange().hashCode()); hashCode = prime * hashCode + ((getPredictionTimeRange() == null) ? 0 : getPredictionTimeRange().hashCode()); hashCode = prime * hashCode + ((getResourceCollection() == null) ? 0 : getResourceCollection().hashCode()); hashCode = prime * hashCode + ((getServiceCollection() == null) ? 0 : getServiceCollection().hashCode()); return hashCode; } @Override public ProactiveOrganizationInsightSummary clone() { try { return (ProactiveOrganizationInsightSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.devopsguru.model.transform.ProactiveOrganizationInsightSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy