/* * 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 Network Access Scope analysis. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class NetworkInsightsAccessScopeAnalysis implements Serializable, Cloneable { /** ** The ID of the Network Access Scope analysis. *
*/ private String networkInsightsAccessScopeAnalysisId; /** ** The Amazon Resource Name (ARN) of the Network Access Scope analysis. *
*/ private String networkInsightsAccessScopeAnalysisArn; /** ** The ID of the Network Access Scope. *
*/ private String networkInsightsAccessScopeId; /** ** The status. *
*/ private String status; /** ** The status message. *
*/ private String statusMessage; /** ** The warning message. *
*/ private String warningMessage; /** ** The analysis start date. *
*/ private java.util.Date startDate; /** ** The analysis end date. *
*/ private java.util.Date endDate; /** ** Indicates whether there are findings. *
*/ private String findingsFound; /** ** The number of network interfaces analyzed. *
*/ private Integer analyzedEniCount; /** ** The tags. *
*/ 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 NetworkInsightsAccessScopeAnalysis withNetworkInsightsAccessScopeAnalysisId(String networkInsightsAccessScopeAnalysisId) { setNetworkInsightsAccessScopeAnalysisId(networkInsightsAccessScopeAnalysisId); return this; } /** ** The Amazon Resource Name (ARN) of the Network Access Scope analysis. *
* * @param networkInsightsAccessScopeAnalysisArn * The Amazon Resource Name (ARN) of the Network Access Scope analysis. */ public void setNetworkInsightsAccessScopeAnalysisArn(String networkInsightsAccessScopeAnalysisArn) { this.networkInsightsAccessScopeAnalysisArn = networkInsightsAccessScopeAnalysisArn; } /** ** The Amazon Resource Name (ARN) of the Network Access Scope analysis. *
* * @return The Amazon Resource Name (ARN) of the Network Access Scope analysis. */ public String getNetworkInsightsAccessScopeAnalysisArn() { return this.networkInsightsAccessScopeAnalysisArn; } /** ** The Amazon Resource Name (ARN) of the Network Access Scope analysis. *
* * @param networkInsightsAccessScopeAnalysisArn * The Amazon Resource Name (ARN) of the Network Access Scope analysis. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScopeAnalysis withNetworkInsightsAccessScopeAnalysisArn(String networkInsightsAccessScopeAnalysisArn) { setNetworkInsightsAccessScopeAnalysisArn(networkInsightsAccessScopeAnalysisArn); 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 NetworkInsightsAccessScopeAnalysis withNetworkInsightsAccessScopeId(String networkInsightsAccessScopeId) { setNetworkInsightsAccessScopeId(networkInsightsAccessScopeId); return this; } /** ** The status. *
* * @param status * The status. * @see AnalysisStatus */ public void setStatus(String status) { this.status = status; } /** ** The status. *
* * @return The status. * @see AnalysisStatus */ public String getStatus() { return this.status; } /** ** The status. *
* * @param status * The status. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisStatus */ public NetworkInsightsAccessScopeAnalysis withStatus(String status) { setStatus(status); return this; } /** ** The status. *
* * @param status * The status. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisStatus */ public NetworkInsightsAccessScopeAnalysis withStatus(AnalysisStatus status) { this.status = status.toString(); return this; } /** ** The status message. *
* * @param statusMessage * The status message. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** ** The status message. *
* * @return The status message. */ public String getStatusMessage() { return this.statusMessage; } /** ** The status message. *
* * @param statusMessage * The status message. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScopeAnalysis withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; } /** ** The warning message. *
* * @param warningMessage * The warning message. */ public void setWarningMessage(String warningMessage) { this.warningMessage = warningMessage; } /** ** The warning message. *
* * @return The warning message. */ public String getWarningMessage() { return this.warningMessage; } /** ** The warning message. *
* * @param warningMessage * The warning message. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScopeAnalysis withWarningMessage(String warningMessage) { setWarningMessage(warningMessage); return this; } /** ** The analysis start date. *
* * @param startDate * The analysis start date. */ public void setStartDate(java.util.Date startDate) { this.startDate = startDate; } /** ** The analysis start date. *
* * @return The analysis start date. */ public java.util.Date getStartDate() { return this.startDate; } /** ** The analysis start date. *
* * @param startDate * The analysis start date. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScopeAnalysis withStartDate(java.util.Date startDate) { setStartDate(startDate); return this; } /** ** The analysis end date. *
* * @param endDate * The analysis end date. */ public void setEndDate(java.util.Date endDate) { this.endDate = endDate; } /** ** The analysis end date. *
* * @return The analysis end date. */ public java.util.Date getEndDate() { return this.endDate; } /** ** The analysis end date. *
* * @param endDate * The analysis end date. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScopeAnalysis withEndDate(java.util.Date endDate) { setEndDate(endDate); return this; } /** ** Indicates whether there are findings. *
* * @param findingsFound * Indicates whether there are findings. * @see FindingsFound */ public void setFindingsFound(String findingsFound) { this.findingsFound = findingsFound; } /** ** Indicates whether there are findings. *
* * @return Indicates whether there are findings. * @see FindingsFound */ public String getFindingsFound() { return this.findingsFound; } /** ** Indicates whether there are findings. *
* * @param findingsFound * Indicates whether there are findings. * @return Returns a reference to this object so that method calls can be chained together. * @see FindingsFound */ public NetworkInsightsAccessScopeAnalysis withFindingsFound(String findingsFound) { setFindingsFound(findingsFound); return this; } /** ** Indicates whether there are findings. *
* * @param findingsFound * Indicates whether there are findings. * @return Returns a reference to this object so that method calls can be chained together. * @see FindingsFound */ public NetworkInsightsAccessScopeAnalysis withFindingsFound(FindingsFound findingsFound) { this.findingsFound = findingsFound.toString(); return this; } /** ** The number of network interfaces analyzed. *
* * @param analyzedEniCount * The number of network interfaces analyzed. */ public void setAnalyzedEniCount(Integer analyzedEniCount) { this.analyzedEniCount = analyzedEniCount; } /** ** The number of network interfaces analyzed. *
* * @return The number of network interfaces analyzed. */ public Integer getAnalyzedEniCount() { return this.analyzedEniCount; } /** ** The number of network interfaces analyzed. *
* * @param analyzedEniCount * The number of network interfaces analyzed. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScopeAnalysis withAnalyzedEniCount(Integer analyzedEniCount) { setAnalyzedEniCount(analyzedEniCount); return this; } /** ** The tags. *
* * @return The tags. */ public java.util.List* The tags. *
* * @param tags * The tags. */ public void setTags(java.util.Collection* The tags. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * The tags. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScopeAnalysis withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* The tags. *
* * @param tags * The tags. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAccessScopeAnalysis withTags(java.util.Collection