/* * 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; /** *
* Indicates whether the account is compliant with the specified policy. An account is considered noncompliant if it * includes resources that are not protected by the policy, for WAF and Shield Advanced policies, or that are * noncompliant with the policy, for security group policies. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PolicyComplianceStatus implements Serializable, Cloneable, StructuredPojo { /** ** 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 name of the Firewall Manager policy. *
*/ private String policyName; /** ** The member account ID. *
*/ private String memberAccount; /** *
* An array of EvaluationResult
objects.
*
* Timestamp of the last update to the EvaluationResult
objects.
*
* 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 PolicyComplianceStatus 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 PolicyComplianceStatus withPolicyId(String policyId) { setPolicyId(policyId); return this; } /** ** The name of the Firewall Manager policy. *
* * @param policyName * The name of the Firewall Manager policy. */ public void setPolicyName(String policyName) { this.policyName = policyName; } /** ** The name of the Firewall Manager policy. *
* * @return The name of the Firewall Manager policy. */ public String getPolicyName() { return this.policyName; } /** ** The name of the Firewall Manager policy. *
* * @param policyName * The name of the Firewall Manager policy. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyComplianceStatus withPolicyName(String policyName) { setPolicyName(policyName); return this; } /** ** The member account ID. *
* * @param memberAccount * The member account ID. */ public void setMemberAccount(String memberAccount) { this.memberAccount = memberAccount; } /** ** The member account ID. *
* * @return The member account ID. */ public String getMemberAccount() { return this.memberAccount; } /** ** The member account ID. *
* * @param memberAccount * The member account ID. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyComplianceStatus withMemberAccount(String memberAccount) { setMemberAccount(memberAccount); return this; } /** *
* An array of EvaluationResult
objects.
*
EvaluationResult
objects.
*/
public java.util.List
* An array of EvaluationResult
objects.
*
EvaluationResult
objects.
*/
public void setEvaluationResults(java.util.Collection
* An array of EvaluationResult
objects.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setEvaluationResults(java.util.Collection)} or {@link #withEvaluationResults(java.util.Collection)} if * you want to override the existing values. *
* * @param evaluationResults * An array ofEvaluationResult
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PolicyComplianceStatus withEvaluationResults(EvaluationResult... evaluationResults) {
if (this.evaluationResults == null) {
setEvaluationResults(new java.util.ArrayList
* An array of EvaluationResult
objects.
*
EvaluationResult
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PolicyComplianceStatus withEvaluationResults(java.util.Collection
* Timestamp of the last update to the EvaluationResult
objects.
*
EvaluationResult
objects.
*/
public void setLastUpdated(java.util.Date lastUpdated) {
this.lastUpdated = lastUpdated;
}
/**
*
* Timestamp of the last update to the EvaluationResult
objects.
*
EvaluationResult
objects.
*/
public java.util.Date getLastUpdated() {
return this.lastUpdated;
}
/**
*
* Timestamp of the last update to the EvaluationResult
objects.
*
EvaluationResult
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PolicyComplianceStatus withLastUpdated(java.util.Date lastUpdated) {
setLastUpdated(lastUpdated);
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 PolicyComplianceStatus withIssueInfoMap(java.util.Map