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

com.amazonaws.services.fms.model.EvaluationResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Firewall Management module holds the client classes that are used for communicating with Firewall Management Service

There is a newer version: 1.12.780
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.fms.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Describes the compliance status for the account. An account is considered noncompliant if it includes resources that * are not protected by the specified policy or that don't comply with the policy. *

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

* Describes an Amazon Web Services account's compliance with the Firewall Manager policy. *

*/ private String complianceStatus; /** *

* The number of resources that are noncompliant with the specified policy. For WAF and Shield Advanced policies, a * resource is considered noncompliant if it is not associated with the policy. For security group policies, a * resource is considered noncompliant if it doesn't comply with the rules of the policy and remediation is disabled * or not possible. *

*/ private Long violatorCount; /** *

* Indicates that over 100 resources are noncompliant with the Firewall Manager policy. *

*/ private Boolean evaluationLimitExceeded; /** *

* Describes an Amazon Web Services account's compliance with the Firewall Manager policy. *

* * @param complianceStatus * Describes an Amazon Web Services account's compliance with the Firewall Manager policy. * @see PolicyComplianceStatusType */ public void setComplianceStatus(String complianceStatus) { this.complianceStatus = complianceStatus; } /** *

* Describes an Amazon Web Services account's compliance with the Firewall Manager policy. *

* * @return Describes an Amazon Web Services account's compliance with the Firewall Manager policy. * @see PolicyComplianceStatusType */ public String getComplianceStatus() { return this.complianceStatus; } /** *

* Describes an Amazon Web Services account's compliance with the Firewall Manager policy. *

* * @param complianceStatus * Describes an Amazon Web Services account's compliance with the Firewall Manager policy. * @return Returns a reference to this object so that method calls can be chained together. * @see PolicyComplianceStatusType */ public EvaluationResult withComplianceStatus(String complianceStatus) { setComplianceStatus(complianceStatus); return this; } /** *

* Describes an Amazon Web Services account's compliance with the Firewall Manager policy. *

* * @param complianceStatus * Describes an Amazon Web Services account's compliance with the Firewall Manager policy. * @return Returns a reference to this object so that method calls can be chained together. * @see PolicyComplianceStatusType */ public EvaluationResult withComplianceStatus(PolicyComplianceStatusType complianceStatus) { this.complianceStatus = complianceStatus.toString(); return this; } /** *

* The number of resources that are noncompliant with the specified policy. For WAF and Shield Advanced policies, a * resource is considered noncompliant if it is not associated with the policy. For security group policies, a * resource is considered noncompliant if it doesn't comply with the rules of the policy and remediation is disabled * or not possible. *

* * @param violatorCount * The number of resources that are noncompliant with the specified policy. For WAF and Shield Advanced * policies, a resource is considered noncompliant if it is not associated with the policy. For security * group policies, a resource is considered noncompliant if it doesn't comply with the rules of the policy * and remediation is disabled or not possible. */ public void setViolatorCount(Long violatorCount) { this.violatorCount = violatorCount; } /** *

* The number of resources that are noncompliant with the specified policy. For WAF and Shield Advanced policies, a * resource is considered noncompliant if it is not associated with the policy. For security group policies, a * resource is considered noncompliant if it doesn't comply with the rules of the policy and remediation is disabled * or not possible. *

* * @return The number of resources that are noncompliant with the specified policy. For WAF and Shield Advanced * policies, a resource is considered noncompliant if it is not associated with the policy. For security * group policies, a resource is considered noncompliant if it doesn't comply with the rules of the policy * and remediation is disabled or not possible. */ public Long getViolatorCount() { return this.violatorCount; } /** *

* The number of resources that are noncompliant with the specified policy. For WAF and Shield Advanced policies, a * resource is considered noncompliant if it is not associated with the policy. For security group policies, a * resource is considered noncompliant if it doesn't comply with the rules of the policy and remediation is disabled * or not possible. *

* * @param violatorCount * The number of resources that are noncompliant with the specified policy. For WAF and Shield Advanced * policies, a resource is considered noncompliant if it is not associated with the policy. For security * group policies, a resource is considered noncompliant if it doesn't comply with the rules of the policy * and remediation is disabled or not possible. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationResult withViolatorCount(Long violatorCount) { setViolatorCount(violatorCount); return this; } /** *

* Indicates that over 100 resources are noncompliant with the Firewall Manager policy. *

* * @param evaluationLimitExceeded * Indicates that over 100 resources are noncompliant with the Firewall Manager policy. */ public void setEvaluationLimitExceeded(Boolean evaluationLimitExceeded) { this.evaluationLimitExceeded = evaluationLimitExceeded; } /** *

* Indicates that over 100 resources are noncompliant with the Firewall Manager policy. *

* * @return Indicates that over 100 resources are noncompliant with the Firewall Manager policy. */ public Boolean getEvaluationLimitExceeded() { return this.evaluationLimitExceeded; } /** *

* Indicates that over 100 resources are noncompliant with the Firewall Manager policy. *

* * @param evaluationLimitExceeded * Indicates that over 100 resources are noncompliant with the Firewall Manager policy. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationResult withEvaluationLimitExceeded(Boolean evaluationLimitExceeded) { setEvaluationLimitExceeded(evaluationLimitExceeded); return this; } /** *

* Indicates that over 100 resources are noncompliant with the Firewall Manager policy. *

* * @return Indicates that over 100 resources are noncompliant with the Firewall Manager policy. */ public Boolean isEvaluationLimitExceeded() { return this.evaluationLimitExceeded; } /** * 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 (getComplianceStatus() != null) sb.append("ComplianceStatus: ").append(getComplianceStatus()).append(","); if (getViolatorCount() != null) sb.append("ViolatorCount: ").append(getViolatorCount()).append(","); if (getEvaluationLimitExceeded() != null) sb.append("EvaluationLimitExceeded: ").append(getEvaluationLimitExceeded()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EvaluationResult == false) return false; EvaluationResult other = (EvaluationResult) obj; if (other.getComplianceStatus() == null ^ this.getComplianceStatus() == null) return false; if (other.getComplianceStatus() != null && other.getComplianceStatus().equals(this.getComplianceStatus()) == false) return false; if (other.getViolatorCount() == null ^ this.getViolatorCount() == null) return false; if (other.getViolatorCount() != null && other.getViolatorCount().equals(this.getViolatorCount()) == false) return false; if (other.getEvaluationLimitExceeded() == null ^ this.getEvaluationLimitExceeded() == null) return false; if (other.getEvaluationLimitExceeded() != null && other.getEvaluationLimitExceeded().equals(this.getEvaluationLimitExceeded()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getComplianceStatus() == null) ? 0 : getComplianceStatus().hashCode()); hashCode = prime * hashCode + ((getViolatorCount() == null) ? 0 : getViolatorCount().hashCode()); hashCode = prime * hashCode + ((getEvaluationLimitExceeded() == null) ? 0 : getEvaluationLimitExceeded().hashCode()); return hashCode; } @Override public EvaluationResult clone() { try { return (EvaluationResult) 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.fms.model.transform.EvaluationResultMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy