/* * 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.accessanalyzer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A finding in a policy. Each finding is an actionable recommendation that can be used to improve the policy. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ValidatePolicyFinding implements Serializable, Cloneable, StructuredPojo { /** ** A localized message that explains the finding and provides guidance on how to address it. *
*/ private String findingDetails; /** ** The impact of the finding. *
** Security warnings report when the policy allows access that we consider overly permissive. *
** Errors report when a part of the policy is not functional. *
** Warnings report non-security issues when a policy does not conform to policy writing best practices. *
** Suggestions recommend stylistic improvements in the policy that do not impact access. *
*/ private String findingType; /** ** The issue code provides an identifier of the issue associated with this finding. *
*/ private String issueCode; /** ** A link to additional documentation about the type of finding. *
*/ private String learnMoreLink; /** ** The list of locations in the policy document that are related to the finding. The issue code provides a summary * of an issue identified by the finding. *
*/ private java.util.List* A localized message that explains the finding and provides guidance on how to address it. *
* * @param findingDetails * A localized message that explains the finding and provides guidance on how to address it. */ public void setFindingDetails(String findingDetails) { this.findingDetails = findingDetails; } /** ** A localized message that explains the finding and provides guidance on how to address it. *
* * @return A localized message that explains the finding and provides guidance on how to address it. */ public String getFindingDetails() { return this.findingDetails; } /** ** A localized message that explains the finding and provides guidance on how to address it. *
* * @param findingDetails * A localized message that explains the finding and provides guidance on how to address it. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePolicyFinding withFindingDetails(String findingDetails) { setFindingDetails(findingDetails); return this; } /** ** The impact of the finding. *
** Security warnings report when the policy allows access that we consider overly permissive. *
** Errors report when a part of the policy is not functional. *
** Warnings report non-security issues when a policy does not conform to policy writing best practices. *
** Suggestions recommend stylistic improvements in the policy that do not impact access. *
* * @param findingType * The impact of the finding. ** Security warnings report when the policy allows access that we consider overly permissive. *
** Errors report when a part of the policy is not functional. *
** Warnings report non-security issues when a policy does not conform to policy writing best practices. *
** Suggestions recommend stylistic improvements in the policy that do not impact access. * @see ValidatePolicyFindingType */ public void setFindingType(String findingType) { this.findingType = findingType; } /** *
* The impact of the finding. *
** Security warnings report when the policy allows access that we consider overly permissive. *
** Errors report when a part of the policy is not functional. *
** Warnings report non-security issues when a policy does not conform to policy writing best practices. *
** Suggestions recommend stylistic improvements in the policy that do not impact access. *
* * @return The impact of the finding. ** Security warnings report when the policy allows access that we consider overly permissive. *
** Errors report when a part of the policy is not functional. *
** Warnings report non-security issues when a policy does not conform to policy writing best practices. *
** Suggestions recommend stylistic improvements in the policy that do not impact access. * @see ValidatePolicyFindingType */ public String getFindingType() { return this.findingType; } /** *
* The impact of the finding. *
** Security warnings report when the policy allows access that we consider overly permissive. *
** Errors report when a part of the policy is not functional. *
** Warnings report non-security issues when a policy does not conform to policy writing best practices. *
** Suggestions recommend stylistic improvements in the policy that do not impact access. *
* * @param findingType * The impact of the finding. ** Security warnings report when the policy allows access that we consider overly permissive. *
** Errors report when a part of the policy is not functional. *
** Warnings report non-security issues when a policy does not conform to policy writing best practices. *
** Suggestions recommend stylistic improvements in the policy that do not impact access. * @return Returns a reference to this object so that method calls can be chained together. * @see ValidatePolicyFindingType */ public ValidatePolicyFinding withFindingType(String findingType) { setFindingType(findingType); return this; } /** *
* The impact of the finding. *
** Security warnings report when the policy allows access that we consider overly permissive. *
** Errors report when a part of the policy is not functional. *
** Warnings report non-security issues when a policy does not conform to policy writing best practices. *
** Suggestions recommend stylistic improvements in the policy that do not impact access. *
* * @param findingType * The impact of the finding. ** Security warnings report when the policy allows access that we consider overly permissive. *
** Errors report when a part of the policy is not functional. *
** Warnings report non-security issues when a policy does not conform to policy writing best practices. *
** Suggestions recommend stylistic improvements in the policy that do not impact access. * @return Returns a reference to this object so that method calls can be chained together. * @see ValidatePolicyFindingType */ public ValidatePolicyFinding withFindingType(ValidatePolicyFindingType findingType) { this.findingType = findingType.toString(); return this; } /** *
* The issue code provides an identifier of the issue associated with this finding. *
* * @param issueCode * The issue code provides an identifier of the issue associated with this finding. */ public void setIssueCode(String issueCode) { this.issueCode = issueCode; } /** ** The issue code provides an identifier of the issue associated with this finding. *
* * @return The issue code provides an identifier of the issue associated with this finding. */ public String getIssueCode() { return this.issueCode; } /** ** The issue code provides an identifier of the issue associated with this finding. *
* * @param issueCode * The issue code provides an identifier of the issue associated with this finding. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePolicyFinding withIssueCode(String issueCode) { setIssueCode(issueCode); return this; } /** ** A link to additional documentation about the type of finding. *
* * @param learnMoreLink * A link to additional documentation about the type of finding. */ public void setLearnMoreLink(String learnMoreLink) { this.learnMoreLink = learnMoreLink; } /** ** A link to additional documentation about the type of finding. *
* * @return A link to additional documentation about the type of finding. */ public String getLearnMoreLink() { return this.learnMoreLink; } /** ** A link to additional documentation about the type of finding. *
* * @param learnMoreLink * A link to additional documentation about the type of finding. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePolicyFinding withLearnMoreLink(String learnMoreLink) { setLearnMoreLink(learnMoreLink); return this; } /** ** The list of locations in the policy document that are related to the finding. The issue code provides a summary * of an issue identified by the finding. *
* * @return The list of locations in the policy document that are related to the finding. The issue code provides a * summary of an issue identified by the finding. */ public java.util.List* The list of locations in the policy document that are related to the finding. The issue code provides a summary * of an issue identified by the finding. *
* * @param locations * The list of locations in the policy document that are related to the finding. The issue code provides a * summary of an issue identified by the finding. */ public void setLocations(java.util.Collection* The list of locations in the policy document that are related to the finding. The issue code provides a summary * of an issue identified by the finding. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLocations(java.util.Collection)} or {@link #withLocations(java.util.Collection)} if you want to * override the existing values. *
* * @param locations * The list of locations in the policy document that are related to the finding. The issue code provides a * summary of an issue identified by the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePolicyFinding withLocations(Location... locations) { if (this.locations == null) { setLocations(new java.util.ArrayList* The list of locations in the policy document that are related to the finding. The issue code provides a summary * of an issue identified by the finding. *
* * @param locations * The list of locations in the policy document that are related to the finding. The issue code provides a * summary of an issue identified by the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePolicyFinding withLocations(java.util.Collection