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

com.amazonaws.services.networkmanager.model.NetworkRouteDestination Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show 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.networkmanager.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Describes the destination of a network route. *

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

* The ID of a core network attachment. *

*/ private String coreNetworkAttachmentId; /** *

* The ID of the transit gateway attachment. *

*/ private String transitGatewayAttachmentId; /** *

* The name of the segment. *

*/ private String segmentName; /** *

* The network function group name associated with the destination. *

*/ private String networkFunctionGroupName; /** *

* The edge location for the network destination. *

*/ private String edgeLocation; /** *

* The resource type. *

*/ private String resourceType; /** *

* The ID of the resource. *

*/ private String resourceId; /** *

* The ID of a core network attachment. *

* * @param coreNetworkAttachmentId * The ID of a core network attachment. */ public void setCoreNetworkAttachmentId(String coreNetworkAttachmentId) { this.coreNetworkAttachmentId = coreNetworkAttachmentId; } /** *

* The ID of a core network attachment. *

* * @return The ID of a core network attachment. */ public String getCoreNetworkAttachmentId() { return this.coreNetworkAttachmentId; } /** *

* The ID of a core network attachment. *

* * @param coreNetworkAttachmentId * The ID of a core network attachment. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkRouteDestination withCoreNetworkAttachmentId(String coreNetworkAttachmentId) { setCoreNetworkAttachmentId(coreNetworkAttachmentId); return this; } /** *

* The ID of the transit gateway attachment. *

* * @param transitGatewayAttachmentId * The ID of the transit gateway attachment. */ public void setTransitGatewayAttachmentId(String transitGatewayAttachmentId) { this.transitGatewayAttachmentId = transitGatewayAttachmentId; } /** *

* The ID of the transit gateway attachment. *

* * @return The ID of the transit gateway attachment. */ public String getTransitGatewayAttachmentId() { return this.transitGatewayAttachmentId; } /** *

* The ID of the transit gateway attachment. *

* * @param transitGatewayAttachmentId * The ID of the transit gateway attachment. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkRouteDestination withTransitGatewayAttachmentId(String transitGatewayAttachmentId) { setTransitGatewayAttachmentId(transitGatewayAttachmentId); return this; } /** *

* The name of the segment. *

* * @param segmentName * The name of the segment. */ public void setSegmentName(String segmentName) { this.segmentName = segmentName; } /** *

* The name of the segment. *

* * @return The name of the segment. */ public String getSegmentName() { return this.segmentName; } /** *

* The name of the segment. *

* * @param segmentName * The name of the segment. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkRouteDestination withSegmentName(String segmentName) { setSegmentName(segmentName); return this; } /** *

* The network function group name associated with the destination. *

* * @param networkFunctionGroupName * The network function group name associated with the destination. */ public void setNetworkFunctionGroupName(String networkFunctionGroupName) { this.networkFunctionGroupName = networkFunctionGroupName; } /** *

* The network function group name associated with the destination. *

* * @return The network function group name associated with the destination. */ public String getNetworkFunctionGroupName() { return this.networkFunctionGroupName; } /** *

* The network function group name associated with the destination. *

* * @param networkFunctionGroupName * The network function group name associated with the destination. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkRouteDestination withNetworkFunctionGroupName(String networkFunctionGroupName) { setNetworkFunctionGroupName(networkFunctionGroupName); return this; } /** *

* The edge location for the network destination. *

* * @param edgeLocation * The edge location for the network destination. */ public void setEdgeLocation(String edgeLocation) { this.edgeLocation = edgeLocation; } /** *

* The edge location for the network destination. *

* * @return The edge location for the network destination. */ public String getEdgeLocation() { return this.edgeLocation; } /** *

* The edge location for the network destination. *

* * @param edgeLocation * The edge location for the network destination. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkRouteDestination withEdgeLocation(String edgeLocation) { setEdgeLocation(edgeLocation); return this; } /** *

* The resource type. *

* * @param resourceType * The resource type. */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** *

* The resource type. *

* * @return The resource type. */ public String getResourceType() { return this.resourceType; } /** *

* The resource type. *

* * @param resourceType * The resource type. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkRouteDestination withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** *

* The ID of the resource. *

* * @param resourceId * The ID of the resource. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** *

* The ID of the resource. *

* * @return The ID of the resource. */ public String getResourceId() { return this.resourceId; } /** *

* The ID of the resource. *

* * @param resourceId * The ID of the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkRouteDestination withResourceId(String resourceId) { setResourceId(resourceId); 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 (getCoreNetworkAttachmentId() != null) sb.append("CoreNetworkAttachmentId: ").append(getCoreNetworkAttachmentId()).append(","); if (getTransitGatewayAttachmentId() != null) sb.append("TransitGatewayAttachmentId: ").append(getTransitGatewayAttachmentId()).append(","); if (getSegmentName() != null) sb.append("SegmentName: ").append(getSegmentName()).append(","); if (getNetworkFunctionGroupName() != null) sb.append("NetworkFunctionGroupName: ").append(getNetworkFunctionGroupName()).append(","); if (getEdgeLocation() != null) sb.append("EdgeLocation: ").append(getEdgeLocation()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getResourceId() != null) sb.append("ResourceId: ").append(getResourceId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NetworkRouteDestination == false) return false; NetworkRouteDestination other = (NetworkRouteDestination) obj; if (other.getCoreNetworkAttachmentId() == null ^ this.getCoreNetworkAttachmentId() == null) return false; if (other.getCoreNetworkAttachmentId() != null && other.getCoreNetworkAttachmentId().equals(this.getCoreNetworkAttachmentId()) == false) return false; if (other.getTransitGatewayAttachmentId() == null ^ this.getTransitGatewayAttachmentId() == null) return false; if (other.getTransitGatewayAttachmentId() != null && other.getTransitGatewayAttachmentId().equals(this.getTransitGatewayAttachmentId()) == false) return false; if (other.getSegmentName() == null ^ this.getSegmentName() == null) return false; if (other.getSegmentName() != null && other.getSegmentName().equals(this.getSegmentName()) == false) return false; if (other.getNetworkFunctionGroupName() == null ^ this.getNetworkFunctionGroupName() == null) return false; if (other.getNetworkFunctionGroupName() != null && other.getNetworkFunctionGroupName().equals(this.getNetworkFunctionGroupName()) == false) return false; if (other.getEdgeLocation() == null ^ this.getEdgeLocation() == null) return false; if (other.getEdgeLocation() != null && other.getEdgeLocation().equals(this.getEdgeLocation()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getResourceId() == null ^ this.getResourceId() == null) return false; if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCoreNetworkAttachmentId() == null) ? 0 : getCoreNetworkAttachmentId().hashCode()); hashCode = prime * hashCode + ((getTransitGatewayAttachmentId() == null) ? 0 : getTransitGatewayAttachmentId().hashCode()); hashCode = prime * hashCode + ((getSegmentName() == null) ? 0 : getSegmentName().hashCode()); hashCode = prime * hashCode + ((getNetworkFunctionGroupName() == null) ? 0 : getNetworkFunctionGroupName().hashCode()); hashCode = prime * hashCode + ((getEdgeLocation() == null) ? 0 : getEdgeLocation().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); return hashCode; } @Override public NetworkRouteDestination clone() { try { return (NetworkRouteDestination) 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.NetworkRouteDestinationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy