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

com.amazonaws.services.ec2.model.NetworkInsightsPath 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

The newest version!
/*
 * Copyright 2019-2024 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 path. *

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

* The ID of the path. *

*/ private String networkInsightsPathId; /** *

* The Amazon Resource Name (ARN) of the path. *

*/ private String networkInsightsPathArn; /** *

* The time stamp when the path was created. *

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

* The ID of the source. *

*/ private String source; /** *

* The ID of the destination. *

*/ private String destination; /** *

* The Amazon Resource Name (ARN) of the source. *

*/ private String sourceArn; /** *

* The Amazon Resource Name (ARN) of the destination. *

*/ private String destinationArn; /** *

* The IP address of the source. *

*/ private String sourceIp; /** *

* The IP address of the destination. *

*/ private String destinationIp; /** *

* The protocol. *

*/ private String protocol; /** *

* The destination port. *

*/ private Integer destinationPort; /** *

* The tags associated with the path. *

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

* Scopes the analysis to network paths that match specific filters at the source. *

*/ private PathFilter filterAtSource; /** *

* Scopes the analysis to network paths that match specific filters at the destination. *

*/ private PathFilter filterAtDestination; /** *

* 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 NetworkInsightsPath withNetworkInsightsPathId(String networkInsightsPathId) { setNetworkInsightsPathId(networkInsightsPathId); return this; } /** *

* The Amazon Resource Name (ARN) of the path. *

* * @param networkInsightsPathArn * The Amazon Resource Name (ARN) of the path. */ public void setNetworkInsightsPathArn(String networkInsightsPathArn) { this.networkInsightsPathArn = networkInsightsPathArn; } /** *

* The Amazon Resource Name (ARN) of the path. *

* * @return The Amazon Resource Name (ARN) of the path. */ public String getNetworkInsightsPathArn() { return this.networkInsightsPathArn; } /** *

* The Amazon Resource Name (ARN) of the path. *

* * @param networkInsightsPathArn * The Amazon Resource Name (ARN) of the path. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath withNetworkInsightsPathArn(String networkInsightsPathArn) { setNetworkInsightsPathArn(networkInsightsPathArn); return this; } /** *

* The time stamp when the path was created. *

* * @param createdDate * The time stamp when the path was created. */ public void setCreatedDate(java.util.Date createdDate) { this.createdDate = createdDate; } /** *

* The time stamp when the path was created. *

* * @return The time stamp when the path was created. */ public java.util.Date getCreatedDate() { return this.createdDate; } /** *

* The time stamp when the path was created. *

* * @param createdDate * The time stamp when the path was created. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath withCreatedDate(java.util.Date createdDate) { setCreatedDate(createdDate); return this; } /** *

* The ID of the source. *

* * @param source * The ID of the source. */ public void setSource(String source) { this.source = source; } /** *

* The ID of the source. *

* * @return The ID of the source. */ public String getSource() { return this.source; } /** *

* The ID of the source. *

* * @param source * The ID of the source. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath withSource(String source) { setSource(source); return this; } /** *

* The ID of the destination. *

* * @param destination * The ID of the destination. */ public void setDestination(String destination) { this.destination = destination; } /** *

* The ID of the destination. *

* * @return The ID of the destination. */ public String getDestination() { return this.destination; } /** *

* The ID of the destination. *

* * @param destination * The ID of the destination. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath withDestination(String destination) { setDestination(destination); return this; } /** *

* The Amazon Resource Name (ARN) of the source. *

* * @param sourceArn * The Amazon Resource Name (ARN) of the source. */ public void setSourceArn(String sourceArn) { this.sourceArn = sourceArn; } /** *

* The Amazon Resource Name (ARN) of the source. *

* * @return The Amazon Resource Name (ARN) of the source. */ public String getSourceArn() { return this.sourceArn; } /** *

* The Amazon Resource Name (ARN) of the source. *

* * @param sourceArn * The Amazon Resource Name (ARN) of the source. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath withSourceArn(String sourceArn) { setSourceArn(sourceArn); return this; } /** *

* The Amazon Resource Name (ARN) of the destination. *

* * @param destinationArn * The Amazon Resource Name (ARN) of the destination. */ public void setDestinationArn(String destinationArn) { this.destinationArn = destinationArn; } /** *

* The Amazon Resource Name (ARN) of the destination. *

* * @return The Amazon Resource Name (ARN) of the destination. */ public String getDestinationArn() { return this.destinationArn; } /** *

* The Amazon Resource Name (ARN) of the destination. *

* * @param destinationArn * The Amazon Resource Name (ARN) of the destination. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath withDestinationArn(String destinationArn) { setDestinationArn(destinationArn); return this; } /** *

* The IP address of the source. *

* * @param sourceIp * The IP address of the source. */ public void setSourceIp(String sourceIp) { this.sourceIp = sourceIp; } /** *

* The IP address of the source. *

* * @return The IP address of the source. */ public String getSourceIp() { return this.sourceIp; } /** *

* The IP address of the source. *

* * @param sourceIp * The IP address of the source. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath withSourceIp(String sourceIp) { setSourceIp(sourceIp); return this; } /** *

* The IP address of the destination. *

* * @param destinationIp * The IP address of the destination. */ public void setDestinationIp(String destinationIp) { this.destinationIp = destinationIp; } /** *

* The IP address of the destination. *

* * @return The IP address of the destination. */ public String getDestinationIp() { return this.destinationIp; } /** *

* The IP address of the destination. *

* * @param destinationIp * The IP address of the destination. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath withDestinationIp(String destinationIp) { setDestinationIp(destinationIp); return this; } /** *

* The protocol. *

* * @param protocol * The protocol. * @see Protocol */ public void setProtocol(String protocol) { this.protocol = protocol; } /** *

* The protocol. *

* * @return The protocol. * @see Protocol */ public String getProtocol() { return this.protocol; } /** *

* The protocol. *

* * @param protocol * The protocol. * @return Returns a reference to this object so that method calls can be chained together. * @see Protocol */ public NetworkInsightsPath withProtocol(String protocol) { setProtocol(protocol); return this; } /** *

* The protocol. *

* * @param protocol * The protocol. * @return Returns a reference to this object so that method calls can be chained together. * @see Protocol */ public NetworkInsightsPath withProtocol(Protocol protocol) { this.protocol = protocol.toString(); return this; } /** *

* The destination port. *

* * @param destinationPort * The destination port. */ public void setDestinationPort(Integer destinationPort) { this.destinationPort = destinationPort; } /** *

* The destination port. *

* * @return The destination port. */ public Integer getDestinationPort() { return this.destinationPort; } /** *

* The destination port. *

* * @param destinationPort * The destination port. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath withDestinationPort(Integer destinationPort) { setDestinationPort(destinationPort); return this; } /** *

* The tags associated with the path. *

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

* The tags associated with the path. *

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

* The tags associated with the path. *

*

* 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 associated with the path. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath 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 associated with the path. *

* * @param tags * The tags associated with the path. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* Scopes the analysis to network paths that match specific filters at the source. *

* * @param filterAtSource * Scopes the analysis to network paths that match specific filters at the source. */ public void setFilterAtSource(PathFilter filterAtSource) { this.filterAtSource = filterAtSource; } /** *

* Scopes the analysis to network paths that match specific filters at the source. *

* * @return Scopes the analysis to network paths that match specific filters at the source. */ public PathFilter getFilterAtSource() { return this.filterAtSource; } /** *

* Scopes the analysis to network paths that match specific filters at the source. *

* * @param filterAtSource * Scopes the analysis to network paths that match specific filters at the source. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath withFilterAtSource(PathFilter filterAtSource) { setFilterAtSource(filterAtSource); return this; } /** *

* Scopes the analysis to network paths that match specific filters at the destination. *

* * @param filterAtDestination * Scopes the analysis to network paths that match specific filters at the destination. */ public void setFilterAtDestination(PathFilter filterAtDestination) { this.filterAtDestination = filterAtDestination; } /** *

* Scopes the analysis to network paths that match specific filters at the destination. *

* * @return Scopes the analysis to network paths that match specific filters at the destination. */ public PathFilter getFilterAtDestination() { return this.filterAtDestination; } /** *

* Scopes the analysis to network paths that match specific filters at the destination. *

* * @param filterAtDestination * Scopes the analysis to network paths that match specific filters at the destination. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkInsightsPath withFilterAtDestination(PathFilter filterAtDestination) { setFilterAtDestination(filterAtDestination); 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 (getNetworkInsightsPathId() != null) sb.append("NetworkInsightsPathId: ").append(getNetworkInsightsPathId()).append(","); if (getNetworkInsightsPathArn() != null) sb.append("NetworkInsightsPathArn: ").append(getNetworkInsightsPathArn()).append(","); if (getCreatedDate() != null) sb.append("CreatedDate: ").append(getCreatedDate()).append(","); if (getSource() != null) sb.append("Source: ").append(getSource()).append(","); if (getDestination() != null) sb.append("Destination: ").append(getDestination()).append(","); if (getSourceArn() != null) sb.append("SourceArn: ").append(getSourceArn()).append(","); if (getDestinationArn() != null) sb.append("DestinationArn: ").append(getDestinationArn()).append(","); if (getSourceIp() != null) sb.append("SourceIp: ").append(getSourceIp()).append(","); if (getDestinationIp() != null) sb.append("DestinationIp: ").append(getDestinationIp()).append(","); if (getProtocol() != null) sb.append("Protocol: ").append(getProtocol()).append(","); if (getDestinationPort() != null) sb.append("DestinationPort: ").append(getDestinationPort()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getFilterAtSource() != null) sb.append("FilterAtSource: ").append(getFilterAtSource()).append(","); if (getFilterAtDestination() != null) sb.append("FilterAtDestination: ").append(getFilterAtDestination()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NetworkInsightsPath == false) return false; NetworkInsightsPath other = (NetworkInsightsPath) obj; if (other.getNetworkInsightsPathId() == null ^ this.getNetworkInsightsPathId() == null) return false; if (other.getNetworkInsightsPathId() != null && other.getNetworkInsightsPathId().equals(this.getNetworkInsightsPathId()) == false) return false; if (other.getNetworkInsightsPathArn() == null ^ this.getNetworkInsightsPathArn() == null) return false; if (other.getNetworkInsightsPathArn() != null && other.getNetworkInsightsPathArn().equals(this.getNetworkInsightsPathArn()) == false) return false; if (other.getCreatedDate() == null ^ this.getCreatedDate() == null) return false; if (other.getCreatedDate() != null && other.getCreatedDate().equals(this.getCreatedDate()) == false) return false; if (other.getSource() == null ^ this.getSource() == null) return false; if (other.getSource() != null && other.getSource().equals(this.getSource()) == false) return false; if (other.getDestination() == null ^ this.getDestination() == null) return false; if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == false) return false; if (other.getSourceArn() == null ^ this.getSourceArn() == null) return false; if (other.getSourceArn() != null && other.getSourceArn().equals(this.getSourceArn()) == false) return false; if (other.getDestinationArn() == null ^ this.getDestinationArn() == null) return false; if (other.getDestinationArn() != null && other.getDestinationArn().equals(this.getDestinationArn()) == false) return false; if (other.getSourceIp() == null ^ this.getSourceIp() == null) return false; if (other.getSourceIp() != null && other.getSourceIp().equals(this.getSourceIp()) == false) return false; if (other.getDestinationIp() == null ^ this.getDestinationIp() == null) return false; if (other.getDestinationIp() != null && other.getDestinationIp().equals(this.getDestinationIp()) == false) return false; if (other.getProtocol() == null ^ this.getProtocol() == null) return false; if (other.getProtocol() != null && other.getProtocol().equals(this.getProtocol()) == false) return false; if (other.getDestinationPort() == null ^ this.getDestinationPort() == null) return false; if (other.getDestinationPort() != null && other.getDestinationPort().equals(this.getDestinationPort()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getFilterAtSource() == null ^ this.getFilterAtSource() == null) return false; if (other.getFilterAtSource() != null && other.getFilterAtSource().equals(this.getFilterAtSource()) == false) return false; if (other.getFilterAtDestination() == null ^ this.getFilterAtDestination() == null) return false; if (other.getFilterAtDestination() != null && other.getFilterAtDestination().equals(this.getFilterAtDestination()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNetworkInsightsPathId() == null) ? 0 : getNetworkInsightsPathId().hashCode()); hashCode = prime * hashCode + ((getNetworkInsightsPathArn() == null) ? 0 : getNetworkInsightsPathArn().hashCode()); hashCode = prime * hashCode + ((getCreatedDate() == null) ? 0 : getCreatedDate().hashCode()); hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode()); hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode()); hashCode = prime * hashCode + ((getSourceArn() == null) ? 0 : getSourceArn().hashCode()); hashCode = prime * hashCode + ((getDestinationArn() == null) ? 0 : getDestinationArn().hashCode()); hashCode = prime * hashCode + ((getSourceIp() == null) ? 0 : getSourceIp().hashCode()); hashCode = prime * hashCode + ((getDestinationIp() == null) ? 0 : getDestinationIp().hashCode()); hashCode = prime * hashCode + ((getProtocol() == null) ? 0 : getProtocol().hashCode()); hashCode = prime * hashCode + ((getDestinationPort() == null) ? 0 : getDestinationPort().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getFilterAtSource() == null) ? 0 : getFilterAtSource().hashCode()); hashCode = prime * hashCode + ((getFilterAtDestination() == null) ? 0 : getFilterAtDestination().hashCode()); return hashCode; } @Override public NetworkInsightsPath clone() { try { return (NetworkInsightsPath) 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