/* * 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.fms.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes the noncompliant resources in a member account for a specific Firewall Manager policy. A maximum of 100
* entries are displayed. If more than 100 resources are noncompliant, EvaluationLimitExceeded
is set to
* True
.
*
* The Amazon Web Services account that created the Firewall Manager policy. *
*/ private String policyOwner; /** ** The ID of the Firewall Manager policy. *
*/ private String policyId; /** ** The Amazon Web Services account ID. *
*/ private String memberAccount; /** ** An array of resources that aren't protected by the WAF or Shield Advanced policy or that aren't in compliance * with the security group policy. *
*/ private java.util.List* Indicates if over 100 resources are noncompliant with the Firewall Manager policy. *
*/ private Boolean evaluationLimitExceeded; /** ** A timestamp that indicates when the returned information should be considered out of date. *
*/ private java.util.Date expiredAt; /** ** Details about problems with dependent services, such as WAF or Config, and the error message received that * indicates the problem with the service. *
*/ private java.util.Map* The Amazon Web Services account that created the Firewall Manager policy. *
* * @param policyOwner * The Amazon Web Services account that created the Firewall Manager policy. */ public void setPolicyOwner(String policyOwner) { this.policyOwner = policyOwner; } /** ** The Amazon Web Services account that created the Firewall Manager policy. *
* * @return The Amazon Web Services account that created the Firewall Manager policy. */ public String getPolicyOwner() { return this.policyOwner; } /** ** The Amazon Web Services account that created the Firewall Manager policy. *
* * @param policyOwner * The Amazon Web Services account that created the Firewall Manager policy. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyComplianceDetail withPolicyOwner(String policyOwner) { setPolicyOwner(policyOwner); return this; } /** ** The ID of the Firewall Manager policy. *
* * @param policyId * The ID of the Firewall Manager policy. */ public void setPolicyId(String policyId) { this.policyId = policyId; } /** ** The ID of the Firewall Manager policy. *
* * @return The ID of the Firewall Manager policy. */ public String getPolicyId() { return this.policyId; } /** ** The ID of the Firewall Manager policy. *
* * @param policyId * The ID of the Firewall Manager policy. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyComplianceDetail withPolicyId(String policyId) { setPolicyId(policyId); return this; } /** ** The Amazon Web Services account ID. *
* * @param memberAccount * The Amazon Web Services account ID. */ public void setMemberAccount(String memberAccount) { this.memberAccount = memberAccount; } /** ** The Amazon Web Services account ID. *
* * @return The Amazon Web Services account ID. */ public String getMemberAccount() { return this.memberAccount; } /** ** The Amazon Web Services account ID. *
* * @param memberAccount * The Amazon Web Services account ID. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyComplianceDetail withMemberAccount(String memberAccount) { setMemberAccount(memberAccount); return this; } /** ** An array of resources that aren't protected by the WAF or Shield Advanced policy or that aren't in compliance * with the security group policy. *
* * @return An array of resources that aren't protected by the WAF or Shield Advanced policy or that aren't in * compliance with the security group policy. */ public java.util.List* An array of resources that aren't protected by the WAF or Shield Advanced policy or that aren't in compliance * with the security group policy. *
* * @param violators * An array of resources that aren't protected by the WAF or Shield Advanced policy or that aren't in * compliance with the security group policy. */ public void setViolators(java.util.Collection* An array of resources that aren't protected by the WAF or Shield Advanced policy or that aren't in compliance * with the security group policy. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setViolators(java.util.Collection)} or {@link #withViolators(java.util.Collection)} if you want to * override the existing values. *
* * @param violators * An array of resources that aren't protected by the WAF or Shield Advanced policy or that aren't in * compliance with the security group policy. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyComplianceDetail withViolators(ComplianceViolator... violators) { if (this.violators == null) { setViolators(new java.util.ArrayList* An array of resources that aren't protected by the WAF or Shield Advanced policy or that aren't in compliance * with the security group policy. *
* * @param violators * An array of resources that aren't protected by the WAF or Shield Advanced policy or that aren't in * compliance with the security group policy. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyComplianceDetail withViolators(java.util.Collection* Indicates if over 100 resources are noncompliant with the Firewall Manager policy. *
* * @param evaluationLimitExceeded * Indicates if over 100 resources are noncompliant with the Firewall Manager policy. */ public void setEvaluationLimitExceeded(Boolean evaluationLimitExceeded) { this.evaluationLimitExceeded = evaluationLimitExceeded; } /** ** Indicates if over 100 resources are noncompliant with the Firewall Manager policy. *
* * @return Indicates if over 100 resources are noncompliant with the Firewall Manager policy. */ public Boolean getEvaluationLimitExceeded() { return this.evaluationLimitExceeded; } /** ** Indicates if over 100 resources are noncompliant with the Firewall Manager policy. *
* * @param evaluationLimitExceeded * Indicates if 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 PolicyComplianceDetail withEvaluationLimitExceeded(Boolean evaluationLimitExceeded) { setEvaluationLimitExceeded(evaluationLimitExceeded); return this; } /** ** Indicates if over 100 resources are noncompliant with the Firewall Manager policy. *
* * @return Indicates if over 100 resources are noncompliant with the Firewall Manager policy. */ public Boolean isEvaluationLimitExceeded() { return this.evaluationLimitExceeded; } /** ** A timestamp that indicates when the returned information should be considered out of date. *
* * @param expiredAt * A timestamp that indicates when the returned information should be considered out of date. */ public void setExpiredAt(java.util.Date expiredAt) { this.expiredAt = expiredAt; } /** ** A timestamp that indicates when the returned information should be considered out of date. *
* * @return A timestamp that indicates when the returned information should be considered out of date. */ public java.util.Date getExpiredAt() { return this.expiredAt; } /** ** A timestamp that indicates when the returned information should be considered out of date. *
* * @param expiredAt * A timestamp that indicates when the returned information should be considered out of date. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyComplianceDetail withExpiredAt(java.util.Date expiredAt) { setExpiredAt(expiredAt); return this; } /** ** Details about problems with dependent services, such as WAF or Config, and the error message received that * indicates the problem with the service. *
* * @return Details about problems with dependent services, such as WAF or Config, and the error message received * that indicates the problem with the service. */ public java.util.Map* Details about problems with dependent services, such as WAF or Config, and the error message received that * indicates the problem with the service. *
* * @param issueInfoMap * Details about problems with dependent services, such as WAF or Config, and the error message received that * indicates the problem with the service. */ public void setIssueInfoMap(java.util.Map* Details about problems with dependent services, such as WAF or Config, and the error message received that * indicates the problem with the service. *
* * @param issueInfoMap * Details about problems with dependent services, such as WAF or Config, and the error message received that * indicates the problem with the service. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyComplianceDetail withIssueInfoMap(java.util.Map