com.amazonaws.services.networkmanager.model.RouteAnalysisEndpointOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-networkmanager Show documentation
Show all versions of aws-java-sdk-networkmanager Show documentation
The AWS Java SDK for AWS Network Manager module holds the client classes that are used for communicating with AWS Network Manager Service
/*
* Copyright 2017-2022 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.networkmanager.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Describes a source or a destination.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class RouteAnalysisEndpointOptions implements Serializable, Cloneable, StructuredPojo {
/**
*
* The ARN of the transit gateway attachment.
*
*/
private String transitGatewayAttachmentArn;
/**
*
* The ARN of the transit gateway.
*
*/
private String transitGatewayArn;
/**
*
* The IP address.
*
*/
private String ipAddress;
/**
*
* The ARN of the transit gateway attachment.
*
*
* @param transitGatewayAttachmentArn
* The ARN of the transit gateway attachment.
*/
public void setTransitGatewayAttachmentArn(String transitGatewayAttachmentArn) {
this.transitGatewayAttachmentArn = transitGatewayAttachmentArn;
}
/**
*
* The ARN of the transit gateway attachment.
*
*
* @return The ARN of the transit gateway attachment.
*/
public String getTransitGatewayAttachmentArn() {
return this.transitGatewayAttachmentArn;
}
/**
*
* The ARN of the transit gateway attachment.
*
*
* @param transitGatewayAttachmentArn
* The ARN of the transit gateway attachment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RouteAnalysisEndpointOptions withTransitGatewayAttachmentArn(String transitGatewayAttachmentArn) {
setTransitGatewayAttachmentArn(transitGatewayAttachmentArn);
return this;
}
/**
*
* The ARN of the transit gateway.
*
*
* @param transitGatewayArn
* The ARN of the transit gateway.
*/
public void setTransitGatewayArn(String transitGatewayArn) {
this.transitGatewayArn = transitGatewayArn;
}
/**
*
* The ARN of the transit gateway.
*
*
* @return The ARN of the transit gateway.
*/
public String getTransitGatewayArn() {
return this.transitGatewayArn;
}
/**
*
* The ARN of the transit gateway.
*
*
* @param transitGatewayArn
* The ARN of the transit gateway.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RouteAnalysisEndpointOptions withTransitGatewayArn(String transitGatewayArn) {
setTransitGatewayArn(transitGatewayArn);
return this;
}
/**
*
* The IP address.
*
*
* @param ipAddress
* The IP address.
*/
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
/**
*
* The IP address.
*
*
* @return The IP address.
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
*
* The IP address.
*
*
* @param ipAddress
* The IP address.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RouteAnalysisEndpointOptions withIpAddress(String ipAddress) {
setIpAddress(ipAddress);
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 (getTransitGatewayAttachmentArn() != null)
sb.append("TransitGatewayAttachmentArn: ").append(getTransitGatewayAttachmentArn()).append(",");
if (getTransitGatewayArn() != null)
sb.append("TransitGatewayArn: ").append(getTransitGatewayArn()).append(",");
if (getIpAddress() != null)
sb.append("IpAddress: ").append(getIpAddress());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof RouteAnalysisEndpointOptions == false)
return false;
RouteAnalysisEndpointOptions other = (RouteAnalysisEndpointOptions) obj;
if (other.getTransitGatewayAttachmentArn() == null ^ this.getTransitGatewayAttachmentArn() == null)
return false;
if (other.getTransitGatewayAttachmentArn() != null && other.getTransitGatewayAttachmentArn().equals(this.getTransitGatewayAttachmentArn()) == false)
return false;
if (other.getTransitGatewayArn() == null ^ this.getTransitGatewayArn() == null)
return false;
if (other.getTransitGatewayArn() != null && other.getTransitGatewayArn().equals(this.getTransitGatewayArn()) == false)
return false;
if (other.getIpAddress() == null ^ this.getIpAddress() == null)
return false;
if (other.getIpAddress() != null && other.getIpAddress().equals(this.getIpAddress()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getTransitGatewayAttachmentArn() == null) ? 0 : getTransitGatewayAttachmentArn().hashCode());
hashCode = prime * hashCode + ((getTransitGatewayArn() == null) ? 0 : getTransitGatewayArn().hashCode());
hashCode = prime * hashCode + ((getIpAddress() == null) ? 0 : getIpAddress().hashCode());
return hashCode;
}
@Override
public RouteAnalysisEndpointOptions clone() {
try {
return (RouteAnalysisEndpointOptions) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.networkmanager.model.transform.RouteAnalysisEndpointOptionsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy