All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.ec2.model.NetworkInsightsAnalysis Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon EC2 module holds the client classes that are used for communicating with Amazon EC2 Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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 insights analysis. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class NetworkInsightsAnalysis implements Serializable, Cloneable { /** *

* The ID of the network insights analysis. *

*/ private String networkInsightsAnalysisId; /** *

* The Amazon Resource Name (ARN) of the network insights analysis. *

*/ private String networkInsightsAnalysisArn; /** *

* The ID of the path. *

*/ private String networkInsightsPathId; /** *

* The member accounts that contain resources that the path can traverse. *

*/ private com.amazonaws.internal.SdkInternalList additionalAccounts; /** *

* The Amazon Resource Names (ARN) of the resources that the path must traverse. *

*/ private com.amazonaws.internal.SdkInternalList filterInArns; /** *

* The time the analysis started. *

*/ private java.util.Date startDate; /** *

* The status of the network insights analysis. *

*/ private String status; /** *

* The status message, if the status is failed. *

*/ private String statusMessage; /** *

* The warning message. *

*/ private String warningMessage; /** *

* Indicates whether the destination is reachable from the source. *

*/ private Boolean networkPathFound; /** *

* The components in the path from source to destination. *

*/ private com.amazonaws.internal.SdkInternalList forwardPathComponents; /** *

* The components in the path from destination to source. *

*/ private com.amazonaws.internal.SdkInternalList returnPathComponents; /** *

* The explanations. For more information, see Reachability Analyzer * explanation codes. *

*/ private com.amazonaws.internal.SdkInternalList explanations; /** *

* Potential intermediate components. *

*/ private com.amazonaws.internal.SdkInternalList alternatePathHints; /** *

* Potential intermediate accounts. *

*/ private com.amazonaws.internal.SdkInternalList suggestedAccounts; /** *

* The tags. *

*/ private com.amazonaws.internal.SdkInternalList tags; /** *

* The ID of the network insights analysis. *

* * @param networkInsightsAnalysisId * The ID of the network insights analysis. */ public void setNetworkInsightsAnalysisId(String networkInsightsAnalysisId) { this.networkInsightsAnalysisId = networkInsightsAnalysisId; } /** *

* The ID of the network insights analysis. *

* * @return The ID of the network insights analysis. */ public String getNetworkInsightsAnalysisId() { return this.networkInsightsAnalysisId; } /** *

* The ID of the network insights analysis. *

* * @param networkInsightsAnalysisId * The ID of the network insights analysis. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withNetworkInsightsAnalysisId(String networkInsightsAnalysisId) { setNetworkInsightsAnalysisId(networkInsightsAnalysisId); return this; } /** *

* The Amazon Resource Name (ARN) of the network insights analysis. *

* * @param networkInsightsAnalysisArn * The Amazon Resource Name (ARN) of the network insights analysis. */ public void setNetworkInsightsAnalysisArn(String networkInsightsAnalysisArn) { this.networkInsightsAnalysisArn = networkInsightsAnalysisArn; } /** *

* The Amazon Resource Name (ARN) of the network insights analysis. *

* * @return The Amazon Resource Name (ARN) of the network insights analysis. */ public String getNetworkInsightsAnalysisArn() { return this.networkInsightsAnalysisArn; } /** *

* The Amazon Resource Name (ARN) of the network insights analysis. *

* * @param networkInsightsAnalysisArn * The Amazon Resource Name (ARN) of the network insights analysis. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withNetworkInsightsAnalysisArn(String networkInsightsAnalysisArn) { setNetworkInsightsAnalysisArn(networkInsightsAnalysisArn); return this; } /** *

* The ID of the path. *

* * @param networkInsightsPathId * The ID of the path. */ public void setNetworkInsightsPathId(String networkInsightsPathId) { this.networkInsightsPathId = networkInsightsPathId; } /** *

* The ID of the path. *

* * @return The ID of the path. */ public String getNetworkInsightsPathId() { return this.networkInsightsPathId; } /** *

* The ID of the path. *

* * @param networkInsightsPathId * The ID of the path. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withNetworkInsightsPathId(String networkInsightsPathId) { setNetworkInsightsPathId(networkInsightsPathId); return this; } /** *

* The member accounts that contain resources that the path can traverse. *

* * @return The member accounts that contain resources that the path can traverse. */ public java.util.List getAdditionalAccounts() { if (additionalAccounts == null) { additionalAccounts = new com.amazonaws.internal.SdkInternalList(); } return additionalAccounts; } /** *

* The member accounts that contain resources that the path can traverse. *

* * @param additionalAccounts * The member accounts that contain resources that the path can traverse. */ public void setAdditionalAccounts(java.util.Collection additionalAccounts) { if (additionalAccounts == null) { this.additionalAccounts = null; return; } this.additionalAccounts = new com.amazonaws.internal.SdkInternalList(additionalAccounts); } /** *

* The member accounts that contain resources that the path can traverse. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAdditionalAccounts(java.util.Collection)} or {@link #withAdditionalAccounts(java.util.Collection)} if * you want to override the existing values. *

* * @param additionalAccounts * The member accounts that contain resources that the path can traverse. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withAdditionalAccounts(String... additionalAccounts) { if (this.additionalAccounts == null) { setAdditionalAccounts(new com.amazonaws.internal.SdkInternalList(additionalAccounts.length)); } for (String ele : additionalAccounts) { this.additionalAccounts.add(ele); } return this; } /** *

* The member accounts that contain resources that the path can traverse. *

* * @param additionalAccounts * The member accounts that contain resources that the path can traverse. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withAdditionalAccounts(java.util.Collection additionalAccounts) { setAdditionalAccounts(additionalAccounts); return this; } /** *

* The Amazon Resource Names (ARN) of the resources that the path must traverse. *

* * @return The Amazon Resource Names (ARN) of the resources that the path must traverse. */ public java.util.List getFilterInArns() { if (filterInArns == null) { filterInArns = new com.amazonaws.internal.SdkInternalList(); } return filterInArns; } /** *

* The Amazon Resource Names (ARN) of the resources that the path must traverse. *

* * @param filterInArns * The Amazon Resource Names (ARN) of the resources that the path must traverse. */ public void setFilterInArns(java.util.Collection filterInArns) { if (filterInArns == null) { this.filterInArns = null; return; } this.filterInArns = new com.amazonaws.internal.SdkInternalList(filterInArns); } /** *

* The Amazon Resource Names (ARN) of the resources that the path must traverse. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFilterInArns(java.util.Collection)} or {@link #withFilterInArns(java.util.Collection)} if you want to * override the existing values. *

* * @param filterInArns * The Amazon Resource Names (ARN) of the resources that the path must traverse. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withFilterInArns(String... filterInArns) { if (this.filterInArns == null) { setFilterInArns(new com.amazonaws.internal.SdkInternalList(filterInArns.length)); } for (String ele : filterInArns) { this.filterInArns.add(ele); } return this; } /** *

* The Amazon Resource Names (ARN) of the resources that the path must traverse. *

* * @param filterInArns * The Amazon Resource Names (ARN) of the resources that the path must traverse. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withFilterInArns(java.util.Collection filterInArns) { setFilterInArns(filterInArns); return this; } /** *

* The time the analysis started. *

* * @param startDate * The time the analysis started. */ public void setStartDate(java.util.Date startDate) { this.startDate = startDate; } /** *

* The time the analysis started. *

* * @return The time the analysis started. */ public java.util.Date getStartDate() { return this.startDate; } /** *

* The time the analysis started. *

* * @param startDate * The time the analysis started. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withStartDate(java.util.Date startDate) { setStartDate(startDate); return this; } /** *

* The status of the network insights analysis. *

* * @param status * The status of the network insights analysis. * @see AnalysisStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the network insights analysis. *

* * @return The status of the network insights analysis. * @see AnalysisStatus */ public String getStatus() { return this.status; } /** *

* The status of the network insights analysis. *

* * @param status * The status of the network insights analysis. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisStatus */ public NetworkInsightsAnalysis withStatus(String status) { setStatus(status); return this; } /** *

* The status of the network insights analysis. *

* * @param status * The status of the network insights analysis. * @return Returns a reference to this object so that method calls can be chained together. * @see AnalysisStatus */ public NetworkInsightsAnalysis withStatus(AnalysisStatus status) { this.status = status.toString(); return this; } /** *

* The status message, if the status is failed. *

* * @param statusMessage * The status message, if the status is failed. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** *

* The status message, if the status is failed. *

* * @return The status message, if the status is failed. */ public String getStatusMessage() { return this.statusMessage; } /** *

* The status message, if the status is failed. *

* * @param statusMessage * The status message, if the status is failed. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis 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 NetworkInsightsAnalysis withWarningMessage(String warningMessage) { setWarningMessage(warningMessage); return this; } /** *

* Indicates whether the destination is reachable from the source. *

* * @param networkPathFound * Indicates whether the destination is reachable from the source. */ public void setNetworkPathFound(Boolean networkPathFound) { this.networkPathFound = networkPathFound; } /** *

* Indicates whether the destination is reachable from the source. *

* * @return Indicates whether the destination is reachable from the source. */ public Boolean getNetworkPathFound() { return this.networkPathFound; } /** *

* Indicates whether the destination is reachable from the source. *

* * @param networkPathFound * Indicates whether the destination is reachable from the source. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withNetworkPathFound(Boolean networkPathFound) { setNetworkPathFound(networkPathFound); return this; } /** *

* Indicates whether the destination is reachable from the source. *

* * @return Indicates whether the destination is reachable from the source. */ public Boolean isNetworkPathFound() { return this.networkPathFound; } /** *

* The components in the path from source to destination. *

* * @return The components in the path from source to destination. */ public java.util.List getForwardPathComponents() { if (forwardPathComponents == null) { forwardPathComponents = new com.amazonaws.internal.SdkInternalList(); } return forwardPathComponents; } /** *

* The components in the path from source to destination. *

* * @param forwardPathComponents * The components in the path from source to destination. */ public void setForwardPathComponents(java.util.Collection forwardPathComponents) { if (forwardPathComponents == null) { this.forwardPathComponents = null; return; } this.forwardPathComponents = new com.amazonaws.internal.SdkInternalList(forwardPathComponents); } /** *

* The components in the path from source to destination. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setForwardPathComponents(java.util.Collection)} or * {@link #withForwardPathComponents(java.util.Collection)} if you want to override the existing values. *

* * @param forwardPathComponents * The components in the path from source to destination. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withForwardPathComponents(PathComponent... forwardPathComponents) { if (this.forwardPathComponents == null) { setForwardPathComponents(new com.amazonaws.internal.SdkInternalList(forwardPathComponents.length)); } for (PathComponent ele : forwardPathComponents) { this.forwardPathComponents.add(ele); } return this; } /** *

* The components in the path from source to destination. *

* * @param forwardPathComponents * The components in the path from source to destination. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withForwardPathComponents(java.util.Collection forwardPathComponents) { setForwardPathComponents(forwardPathComponents); return this; } /** *

* The components in the path from destination to source. *

* * @return The components in the path from destination to source. */ public java.util.List getReturnPathComponents() { if (returnPathComponents == null) { returnPathComponents = new com.amazonaws.internal.SdkInternalList(); } return returnPathComponents; } /** *

* The components in the path from destination to source. *

* * @param returnPathComponents * The components in the path from destination to source. */ public void setReturnPathComponents(java.util.Collection returnPathComponents) { if (returnPathComponents == null) { this.returnPathComponents = null; return; } this.returnPathComponents = new com.amazonaws.internal.SdkInternalList(returnPathComponents); } /** *

* The components in the path from destination to source. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setReturnPathComponents(java.util.Collection)} or {@link #withReturnPathComponents(java.util.Collection)} * if you want to override the existing values. *

* * @param returnPathComponents * The components in the path from destination to source. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withReturnPathComponents(PathComponent... returnPathComponents) { if (this.returnPathComponents == null) { setReturnPathComponents(new com.amazonaws.internal.SdkInternalList(returnPathComponents.length)); } for (PathComponent ele : returnPathComponents) { this.returnPathComponents.add(ele); } return this; } /** *

* The components in the path from destination to source. *

* * @param returnPathComponents * The components in the path from destination to source. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withReturnPathComponents(java.util.Collection returnPathComponents) { setReturnPathComponents(returnPathComponents); return this; } /** *

* The explanations. For more information, see Reachability Analyzer * explanation codes. *

* * @return The explanations. For more information, see Reachability Analyzer * explanation codes. */ public java.util.List getExplanations() { if (explanations == null) { explanations = new com.amazonaws.internal.SdkInternalList(); } return explanations; } /** *

* The explanations. For more information, see Reachability Analyzer * explanation codes. *

* * @param explanations * The explanations. For more information, see Reachability Analyzer * explanation codes. */ public void setExplanations(java.util.Collection explanations) { if (explanations == null) { this.explanations = null; return; } this.explanations = new com.amazonaws.internal.SdkInternalList(explanations); } /** *

* The explanations. For more information, see Reachability Analyzer * explanation codes. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setExplanations(java.util.Collection)} or {@link #withExplanations(java.util.Collection)} if you want to * override the existing values. *

* * @param explanations * The explanations. For more information, see Reachability Analyzer * explanation codes. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withExplanations(Explanation... explanations) { if (this.explanations == null) { setExplanations(new com.amazonaws.internal.SdkInternalList(explanations.length)); } for (Explanation ele : explanations) { this.explanations.add(ele); } return this; } /** *

* The explanations. For more information, see Reachability Analyzer * explanation codes. *

* * @param explanations * The explanations. For more information, see Reachability Analyzer * explanation codes. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withExplanations(java.util.Collection explanations) { setExplanations(explanations); return this; } /** *

* Potential intermediate components. *

* * @return Potential intermediate components. */ public java.util.List getAlternatePathHints() { if (alternatePathHints == null) { alternatePathHints = new com.amazonaws.internal.SdkInternalList(); } return alternatePathHints; } /** *

* Potential intermediate components. *

* * @param alternatePathHints * Potential intermediate components. */ public void setAlternatePathHints(java.util.Collection alternatePathHints) { if (alternatePathHints == null) { this.alternatePathHints = null; return; } this.alternatePathHints = new com.amazonaws.internal.SdkInternalList(alternatePathHints); } /** *

* Potential intermediate components. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAlternatePathHints(java.util.Collection)} or {@link #withAlternatePathHints(java.util.Collection)} if * you want to override the existing values. *

* * @param alternatePathHints * Potential intermediate components. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withAlternatePathHints(AlternatePathHint... alternatePathHints) { if (this.alternatePathHints == null) { setAlternatePathHints(new com.amazonaws.internal.SdkInternalList(alternatePathHints.length)); } for (AlternatePathHint ele : alternatePathHints) { this.alternatePathHints.add(ele); } return this; } /** *

* Potential intermediate components. *

* * @param alternatePathHints * Potential intermediate components. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withAlternatePathHints(java.util.Collection alternatePathHints) { setAlternatePathHints(alternatePathHints); return this; } /** *

* Potential intermediate accounts. *

* * @return Potential intermediate accounts. */ public java.util.List getSuggestedAccounts() { if (suggestedAccounts == null) { suggestedAccounts = new com.amazonaws.internal.SdkInternalList(); } return suggestedAccounts; } /** *

* Potential intermediate accounts. *

* * @param suggestedAccounts * Potential intermediate accounts. */ public void setSuggestedAccounts(java.util.Collection suggestedAccounts) { if (suggestedAccounts == null) { this.suggestedAccounts = null; return; } this.suggestedAccounts = new com.amazonaws.internal.SdkInternalList(suggestedAccounts); } /** *

* Potential intermediate accounts. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSuggestedAccounts(java.util.Collection)} or {@link #withSuggestedAccounts(java.util.Collection)} if * you want to override the existing values. *

* * @param suggestedAccounts * Potential intermediate accounts. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withSuggestedAccounts(String... suggestedAccounts) { if (this.suggestedAccounts == null) { setSuggestedAccounts(new com.amazonaws.internal.SdkInternalList(suggestedAccounts.length)); } for (String ele : suggestedAccounts) { this.suggestedAccounts.add(ele); } return this; } /** *

* Potential intermediate accounts. *

* * @param suggestedAccounts * Potential intermediate accounts. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withSuggestedAccounts(java.util.Collection suggestedAccounts) { setSuggestedAccounts(suggestedAccounts); return this; } /** *

* The tags. *

* * @return The tags. */ public java.util.List getTags() { if (tags == null) { tags = new com.amazonaws.internal.SdkInternalList(); } return tags; } /** *

* The tags. *

* * @param tags * The tags. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new com.amazonaws.internal.SdkInternalList(tags); } /** *

* 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 NetworkInsightsAnalysis withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* The tags. *

* * @param tags * The tags. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsAnalysis withTags(java.util.Collection tags) { setTags(tags); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getNetworkInsightsAnalysisId() != null) sb.append("NetworkInsightsAnalysisId: ").append(getNetworkInsightsAnalysisId()).append(","); if (getNetworkInsightsAnalysisArn() != null) sb.append("NetworkInsightsAnalysisArn: ").append(getNetworkInsightsAnalysisArn()).append(","); if (getNetworkInsightsPathId() != null) sb.append("NetworkInsightsPathId: ").append(getNetworkInsightsPathId()).append(","); if (getAdditionalAccounts() != null) sb.append("AdditionalAccounts: ").append(getAdditionalAccounts()).append(","); if (getFilterInArns() != null) sb.append("FilterInArns: ").append(getFilterInArns()).append(","); if (getStartDate() != null) sb.append("StartDate: ").append(getStartDate()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getWarningMessage() != null) sb.append("WarningMessage: ").append(getWarningMessage()).append(","); if (getNetworkPathFound() != null) sb.append("NetworkPathFound: ").append(getNetworkPathFound()).append(","); if (getForwardPathComponents() != null) sb.append("ForwardPathComponents: ").append(getForwardPathComponents()).append(","); if (getReturnPathComponents() != null) sb.append("ReturnPathComponents: ").append(getReturnPathComponents()).append(","); if (getExplanations() != null) sb.append("Explanations: ").append(getExplanations()).append(","); if (getAlternatePathHints() != null) sb.append("AlternatePathHints: ").append(getAlternatePathHints()).append(","); if (getSuggestedAccounts() != null) sb.append("SuggestedAccounts: ").append(getSuggestedAccounts()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NetworkInsightsAnalysis == false) return false; NetworkInsightsAnalysis other = (NetworkInsightsAnalysis) obj; if (other.getNetworkInsightsAnalysisId() == null ^ this.getNetworkInsightsAnalysisId() == null) return false; if (other.getNetworkInsightsAnalysisId() != null && other.getNetworkInsightsAnalysisId().equals(this.getNetworkInsightsAnalysisId()) == false) return false; if (other.getNetworkInsightsAnalysisArn() == null ^ this.getNetworkInsightsAnalysisArn() == null) return false; if (other.getNetworkInsightsAnalysisArn() != null && other.getNetworkInsightsAnalysisArn().equals(this.getNetworkInsightsAnalysisArn()) == false) return false; if (other.getNetworkInsightsPathId() == null ^ this.getNetworkInsightsPathId() == null) return false; if (other.getNetworkInsightsPathId() != null && other.getNetworkInsightsPathId().equals(this.getNetworkInsightsPathId()) == false) return false; if (other.getAdditionalAccounts() == null ^ this.getAdditionalAccounts() == null) return false; if (other.getAdditionalAccounts() != null && other.getAdditionalAccounts().equals(this.getAdditionalAccounts()) == false) return false; if (other.getFilterInArns() == null ^ this.getFilterInArns() == null) return false; if (other.getFilterInArns() != null && other.getFilterInArns().equals(this.getFilterInArns()) == false) return false; if (other.getStartDate() == null ^ this.getStartDate() == null) return false; if (other.getStartDate() != null && other.getStartDate().equals(this.getStartDate()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; if (other.getWarningMessage() == null ^ this.getWarningMessage() == null) return false; if (other.getWarningMessage() != null && other.getWarningMessage().equals(this.getWarningMessage()) == false) return false; if (other.getNetworkPathFound() == null ^ this.getNetworkPathFound() == null) return false; if (other.getNetworkPathFound() != null && other.getNetworkPathFound().equals(this.getNetworkPathFound()) == false) return false; if (other.getForwardPathComponents() == null ^ this.getForwardPathComponents() == null) return false; if (other.getForwardPathComponents() != null && other.getForwardPathComponents().equals(this.getForwardPathComponents()) == false) return false; if (other.getReturnPathComponents() == null ^ this.getReturnPathComponents() == null) return false; if (other.getReturnPathComponents() != null && other.getReturnPathComponents().equals(this.getReturnPathComponents()) == false) return false; if (other.getExplanations() == null ^ this.getExplanations() == null) return false; if (other.getExplanations() != null && other.getExplanations().equals(this.getExplanations()) == false) return false; if (other.getAlternatePathHints() == null ^ this.getAlternatePathHints() == null) return false; if (other.getAlternatePathHints() != null && other.getAlternatePathHints().equals(this.getAlternatePathHints()) == false) return false; if (other.getSuggestedAccounts() == null ^ this.getSuggestedAccounts() == null) return false; if (other.getSuggestedAccounts() != null && other.getSuggestedAccounts().equals(this.getSuggestedAccounts()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNetworkInsightsAnalysisId() == null) ? 0 : getNetworkInsightsAnalysisId().hashCode()); hashCode = prime * hashCode + ((getNetworkInsightsAnalysisArn() == null) ? 0 : getNetworkInsightsAnalysisArn().hashCode()); hashCode = prime * hashCode + ((getNetworkInsightsPathId() == null) ? 0 : getNetworkInsightsPathId().hashCode()); hashCode = prime * hashCode + ((getAdditionalAccounts() == null) ? 0 : getAdditionalAccounts().hashCode()); hashCode = prime * hashCode + ((getFilterInArns() == null) ? 0 : getFilterInArns().hashCode()); hashCode = prime * hashCode + ((getStartDate() == null) ? 0 : getStartDate().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getWarningMessage() == null) ? 0 : getWarningMessage().hashCode()); hashCode = prime * hashCode + ((getNetworkPathFound() == null) ? 0 : getNetworkPathFound().hashCode()); hashCode = prime * hashCode + ((getForwardPathComponents() == null) ? 0 : getForwardPathComponents().hashCode()); hashCode = prime * hashCode + ((getReturnPathComponents() == null) ? 0 : getReturnPathComponents().hashCode()); hashCode = prime * hashCode + ((getExplanations() == null) ? 0 : getExplanations().hashCode()); hashCode = prime * hashCode + ((getAlternatePathHints() == null) ? 0 : getAlternatePathHints().hashCode()); hashCode = prime * hashCode + ((getSuggestedAccounts() == null) ? 0 : getSuggestedAccounts().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public NetworkInsightsAnalysis clone() { try { return (NetworkInsightsAnalysis) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy