/* * 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 the number of open reactive and proactive insights that can be used to gauge the health of your * system. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AccountInsightHealth implements Serializable, Cloneable, StructuredPojo { /** ** 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 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. *
* * @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 AccountInsightHealth withOpenProactiveInsights(Integer openProactiveInsights) { setOpenProactiveInsights(openProactiveInsights); return this; } /** ** 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 AccountInsightHealth withOpenReactiveInsights(Integer openReactiveInsights) { setOpenReactiveInsights(openReactiveInsights); 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 (getOpenProactiveInsights() != null) sb.append("OpenProactiveInsights: ").append(getOpenProactiveInsights()).append(","); if (getOpenReactiveInsights() != null) sb.append("OpenReactiveInsights: ").append(getOpenReactiveInsights()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AccountInsightHealth == false) return false; AccountInsightHealth other = (AccountInsightHealth) obj; if (other.getOpenProactiveInsights() == null ^ this.getOpenProactiveInsights() == null) return false; if (other.getOpenProactiveInsights() != null && other.getOpenProactiveInsights().equals(this.getOpenProactiveInsights()) == false) return false; if (other.getOpenReactiveInsights() == null ^ this.getOpenReactiveInsights() == null) return false; if (other.getOpenReactiveInsights() != null && other.getOpenReactiveInsights().equals(this.getOpenReactiveInsights()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOpenProactiveInsights() == null) ? 0 : getOpenProactiveInsights().hashCode()); hashCode = prime * hashCode + ((getOpenReactiveInsights() == null) ? 0 : getOpenReactiveInsights().hashCode()); return hashCode; } @Override public AccountInsightHealth clone() { try { return (AccountInsightHealth) 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.AccountInsightHealthMarshaller.getInstance().marshall(this, protocolMarshaller); } }