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

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2016-2021 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 Amazon Web Services resource that is the source of the path. *

*/ private String source; /** *

* The Amazon Web Services resource that is the destination of the path. *

*/ private String destination; /** *

* The IP address of the Amazon Web Services resource that is the source of the path. *

*/ private String sourceIp; /** *

* The IP address of the Amazon Web Services resource that is the destination of the path. *

*/ 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; /** *

* 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 Amazon Web Services resource that is the source of the path. *

* * @param source * The Amazon Web Services resource that is the source of the path. */ public void setSource(String source) { this.source = source; } /** *

* The Amazon Web Services resource that is the source of the path. *

* * @return The Amazon Web Services resource that is the source of the path. */ public String getSource() { return this.source; } /** *

* The Amazon Web Services resource that is the source of the path. *

* * @param source * The Amazon Web Services resource that is the source of the path. * @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 Amazon Web Services resource that is the destination of the path. *

* * @param destination * The Amazon Web Services resource that is the destination of the path. */ public void setDestination(String destination) { this.destination = destination; } /** *

* The Amazon Web Services resource that is the destination of the path. *

* * @return The Amazon Web Services resource that is the destination of the path. */ public String getDestination() { return this.destination; } /** *

* The Amazon Web Services resource that is the destination of the path. *

* * @param destination * The Amazon Web Services resource that is the destination of the path. * @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 IP address of the Amazon Web Services resource that is the source of the path. *

* * @param sourceIp * The IP address of the Amazon Web Services resource that is the source of the path. */ public void setSourceIp(String sourceIp) { this.sourceIp = sourceIp; } /** *

* The IP address of the Amazon Web Services resource that is the source of the path. *

* * @return The IP address of the Amazon Web Services resource that is the source of the path. */ public String getSourceIp() { return this.sourceIp; } /** *

* The IP address of the Amazon Web Services resource that is the source of the path. *

* * @param sourceIp * The IP address of the Amazon Web Services resource that is the source of the path. * @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 Amazon Web Services resource that is the destination of the path. *

* * @param destinationIp * The IP address of the Amazon Web Services resource that is the destination of the path. */ public void setDestinationIp(String destinationIp) { this.destinationIp = destinationIp; } /** *

* The IP address of the Amazon Web Services resource that is the destination of the path. *

* * @return The IP address of the Amazon Web Services resource that is the destination of the path. */ public String getDestinationIp() { return this.destinationIp; } /** *

* The IP address of the Amazon Web Services resource that is the destination of the path. *

* * @param destinationIp * The IP address of the Amazon Web Services resource that is the destination of the path. * @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; } /** * 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 (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()); 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.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; 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 + ((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()); 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