/* * 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.ec2.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Describes a finding for a Network Access Scope. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AccessScopeAnalysisFinding implements Serializable, Cloneable { /** ** The ID of the Network Access Scope analysis. *
*/ private String networkInsightsAccessScopeAnalysisId; /** ** The ID of the Network Access Scope. *
*/ private String networkInsightsAccessScopeId; /** ** The ID of the finding. *
*/ private String findingId; /** ** The finding components. *
*/ private com.amazonaws.internal.SdkInternalList* The ID of the Network Access Scope analysis. *
* * @param networkInsightsAccessScopeAnalysisId * The ID of the Network Access Scope analysis. */ public void setNetworkInsightsAccessScopeAnalysisId(String networkInsightsAccessScopeAnalysisId) { this.networkInsightsAccessScopeAnalysisId = networkInsightsAccessScopeAnalysisId; } /** ** The ID of the Network Access Scope analysis. *
* * @return The ID of the Network Access Scope analysis. */ public String getNetworkInsightsAccessScopeAnalysisId() { return this.networkInsightsAccessScopeAnalysisId; } /** ** The ID of the Network Access Scope analysis. *
* * @param networkInsightsAccessScopeAnalysisId * The ID of the Network Access Scope analysis. * @return Returns a reference to this object so that method calls can be chained together. */ public AccessScopeAnalysisFinding withNetworkInsightsAccessScopeAnalysisId(String networkInsightsAccessScopeAnalysisId) { setNetworkInsightsAccessScopeAnalysisId(networkInsightsAccessScopeAnalysisId); return this; } /** ** The ID of the Network Access Scope. *
* * @param networkInsightsAccessScopeId * The ID of the Network Access Scope. */ public void setNetworkInsightsAccessScopeId(String networkInsightsAccessScopeId) { this.networkInsightsAccessScopeId = networkInsightsAccessScopeId; } /** ** The ID of the Network Access Scope. *
* * @return The ID of the Network Access Scope. */ public String getNetworkInsightsAccessScopeId() { return this.networkInsightsAccessScopeId; } /** ** The ID of the Network Access Scope. *
* * @param networkInsightsAccessScopeId * The ID of the Network Access Scope. * @return Returns a reference to this object so that method calls can be chained together. */ public AccessScopeAnalysisFinding withNetworkInsightsAccessScopeId(String networkInsightsAccessScopeId) { setNetworkInsightsAccessScopeId(networkInsightsAccessScopeId); return this; } /** ** The ID of the finding. *
* * @param findingId * The ID of the finding. */ public void setFindingId(String findingId) { this.findingId = findingId; } /** ** The ID of the finding. *
* * @return The ID of the finding. */ public String getFindingId() { return this.findingId; } /** ** The ID of the finding. *
* * @param findingId * The ID of the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public AccessScopeAnalysisFinding withFindingId(String findingId) { setFindingId(findingId); return this; } /** ** The finding components. *
* * @return The finding components. */ public java.util.List* The finding components. *
* * @param findingComponents * The finding components. */ public void setFindingComponents(java.util.Collection* The finding components. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFindingComponents(java.util.Collection)} or {@link #withFindingComponents(java.util.Collection)} if * you want to override the existing values. *
* * @param findingComponents * The finding components. * @return Returns a reference to this object so that method calls can be chained together. */ public AccessScopeAnalysisFinding withFindingComponents(PathComponent... findingComponents) { if (this.findingComponents == null) { setFindingComponents(new com.amazonaws.internal.SdkInternalList* The finding components. *
* * @param findingComponents * The finding components. * @return Returns a reference to this object so that method calls can be chained together. */ public AccessScopeAnalysisFinding withFindingComponents(java.util.Collection