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

com.amazonaws.services.devopsguru.model.DescribeAccountHealthResult 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;

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

    /**
     * 

* An integer that specifies the number of open reactive insights in your Amazon Web Services account. *

*/ private Integer openReactiveInsights; /** *

* An integer that specifies the number of open proactive insights in your Amazon Web Services account. *

*/ private Integer openProactiveInsights; /** *

* An integer that specifies the number of metrics that have been analyzed in your Amazon Web Services account. *

*/ private Integer metricsAnalyzed; /** *

* The number of Amazon DevOps Guru resource analysis hours billed to the current Amazon Web Services account in the * last hour. *

*/ private Long resourceHours; /** *

* Number of resources that DevOps Guru is monitoring in your Amazon Web Services account. *

*/ private Long analyzedResourceCount; /** *

* An integer that specifies the number of open reactive insights in your Amazon Web Services account. *

* * @param openReactiveInsights * An integer that specifies the number of open reactive insights in your Amazon Web Services account. */ public void setOpenReactiveInsights(Integer openReactiveInsights) { this.openReactiveInsights = openReactiveInsights; } /** *

* An integer that specifies the number of open reactive insights in your Amazon Web Services account. *

* * @return An integer that specifies the number of open reactive insights in your Amazon Web Services account. */ public Integer getOpenReactiveInsights() { return this.openReactiveInsights; } /** *

* An integer that specifies the number of open reactive insights in your Amazon Web Services account. *

* * @param openReactiveInsights * An integer that specifies the number of open reactive insights in your Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAccountHealthResult withOpenReactiveInsights(Integer openReactiveInsights) { setOpenReactiveInsights(openReactiveInsights); return this; } /** *

* An integer that specifies the number of open proactive insights in your Amazon Web Services account. *

* * @param openProactiveInsights * An integer that specifies the number of open proactive insights in your Amazon Web Services account. */ public void setOpenProactiveInsights(Integer openProactiveInsights) { this.openProactiveInsights = openProactiveInsights; } /** *

* An integer that specifies the number of open proactive insights in your Amazon Web Services account. *

* * @return An integer that specifies the number of open proactive insights in your Amazon Web Services account. */ public Integer getOpenProactiveInsights() { return this.openProactiveInsights; } /** *

* An integer that specifies the number of open proactive insights in your Amazon Web Services account. *

* * @param openProactiveInsights * An integer that specifies the number of open proactive insights in your Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAccountHealthResult withOpenProactiveInsights(Integer openProactiveInsights) { setOpenProactiveInsights(openProactiveInsights); return this; } /** *

* An integer that specifies the number of metrics that have been analyzed in your Amazon Web Services account. *

* * @param metricsAnalyzed * An integer that specifies the number of metrics that have been analyzed in your Amazon Web Services * account. */ public void setMetricsAnalyzed(Integer metricsAnalyzed) { this.metricsAnalyzed = metricsAnalyzed; } /** *

* An integer that specifies the number of metrics that have been analyzed in your Amazon Web Services account. *

* * @return An integer that specifies the number of metrics that have been analyzed in your Amazon Web Services * account. */ public Integer getMetricsAnalyzed() { return this.metricsAnalyzed; } /** *

* An integer that specifies the number of metrics that have been analyzed in your Amazon Web Services account. *

* * @param metricsAnalyzed * An integer that specifies the number of metrics that have been analyzed in your Amazon Web Services * account. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAccountHealthResult withMetricsAnalyzed(Integer metricsAnalyzed) { setMetricsAnalyzed(metricsAnalyzed); return this; } /** *

* The number of Amazon DevOps Guru resource analysis hours billed to the current Amazon Web Services account in the * last hour. *

* * @param resourceHours * The number of Amazon DevOps Guru resource analysis hours billed to the current Amazon Web Services account * in the last hour. */ public void setResourceHours(Long resourceHours) { this.resourceHours = resourceHours; } /** *

* The number of Amazon DevOps Guru resource analysis hours billed to the current Amazon Web Services account in the * last hour. *

* * @return The number of Amazon DevOps Guru resource analysis hours billed to the current Amazon Web Services * account in the last hour. */ public Long getResourceHours() { return this.resourceHours; } /** *

* The number of Amazon DevOps Guru resource analysis hours billed to the current Amazon Web Services account in the * last hour. *

* * @param resourceHours * The number of Amazon DevOps Guru resource analysis hours billed to the current Amazon Web Services account * in the last hour. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAccountHealthResult withResourceHours(Long resourceHours) { setResourceHours(resourceHours); return this; } /** *

* Number of resources that DevOps Guru is monitoring in your Amazon Web Services account. *

* * @param analyzedResourceCount * Number of resources that DevOps Guru is monitoring in your Amazon Web Services account. */ public void setAnalyzedResourceCount(Long analyzedResourceCount) { this.analyzedResourceCount = analyzedResourceCount; } /** *

* Number of resources that DevOps Guru is monitoring in your Amazon Web Services account. *

* * @return Number of resources that DevOps Guru is monitoring in your Amazon Web Services account. */ public Long getAnalyzedResourceCount() { return this.analyzedResourceCount; } /** *

* Number of resources that DevOps Guru is monitoring in your Amazon Web Services account. *

* * @param analyzedResourceCount * Number of resources that DevOps Guru is monitoring in your Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeAccountHealthResult withAnalyzedResourceCount(Long analyzedResourceCount) { setAnalyzedResourceCount(analyzedResourceCount); 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 (getOpenReactiveInsights() != null) sb.append("OpenReactiveInsights: ").append(getOpenReactiveInsights()).append(","); if (getOpenProactiveInsights() != null) sb.append("OpenProactiveInsights: ").append(getOpenProactiveInsights()).append(","); if (getMetricsAnalyzed() != null) sb.append("MetricsAnalyzed: ").append(getMetricsAnalyzed()).append(","); if (getResourceHours() != null) sb.append("ResourceHours: ").append(getResourceHours()).append(","); if (getAnalyzedResourceCount() != null) sb.append("AnalyzedResourceCount: ").append(getAnalyzedResourceCount()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeAccountHealthResult == false) return false; DescribeAccountHealthResult other = (DescribeAccountHealthResult) obj; if (other.getOpenReactiveInsights() == null ^ this.getOpenReactiveInsights() == null) return false; if (other.getOpenReactiveInsights() != null && other.getOpenReactiveInsights().equals(this.getOpenReactiveInsights()) == false) return false; if (other.getOpenProactiveInsights() == null ^ this.getOpenProactiveInsights() == null) return false; if (other.getOpenProactiveInsights() != null && other.getOpenProactiveInsights().equals(this.getOpenProactiveInsights()) == false) return false; if (other.getMetricsAnalyzed() == null ^ this.getMetricsAnalyzed() == null) return false; if (other.getMetricsAnalyzed() != null && other.getMetricsAnalyzed().equals(this.getMetricsAnalyzed()) == false) return false; if (other.getResourceHours() == null ^ this.getResourceHours() == null) return false; if (other.getResourceHours() != null && other.getResourceHours().equals(this.getResourceHours()) == false) return false; if (other.getAnalyzedResourceCount() == null ^ this.getAnalyzedResourceCount() == null) return false; if (other.getAnalyzedResourceCount() != null && other.getAnalyzedResourceCount().equals(this.getAnalyzedResourceCount()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOpenReactiveInsights() == null) ? 0 : getOpenReactiveInsights().hashCode()); hashCode = prime * hashCode + ((getOpenProactiveInsights() == null) ? 0 : getOpenProactiveInsights().hashCode()); hashCode = prime * hashCode + ((getMetricsAnalyzed() == null) ? 0 : getMetricsAnalyzed().hashCode()); hashCode = prime * hashCode + ((getResourceHours() == null) ? 0 : getResourceHours().hashCode()); hashCode = prime * hashCode + ((getAnalyzedResourceCount() == null) ? 0 : getAnalyzedResourceCount().hashCode()); return hashCode; } @Override public DescribeAccountHealthResult clone() { try { return (DescribeAccountHealthResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy