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

com.amazonaws.services.networkmanager.model.TransitGatewayRouteTableAttachment 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 a transit gateway route table attachment. *

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

* The ID of the peering attachment. *

*/ private String peeringId; /** *

* The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456" * . *

*/ private String transitGatewayRouteTableArn; /** * @param attachment */ public void setAttachment(Attachment attachment) { this.attachment = attachment; } /** * @return */ public Attachment getAttachment() { return this.attachment; } /** * @param attachment * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAttachment withAttachment(Attachment attachment) { setAttachment(attachment); return this; } /** *

* The ID of the peering attachment. *

* * @param peeringId * The ID of the peering attachment. */ public void setPeeringId(String peeringId) { this.peeringId = peeringId; } /** *

* The ID of the peering attachment. *

* * @return The ID of the peering attachment. */ public String getPeeringId() { return this.peeringId; } /** *

* The ID of the peering attachment. *

* * @param peeringId * The ID of the peering attachment. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAttachment withPeeringId(String peeringId) { setPeeringId(peeringId); return this; } /** *

* The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456" * . *

* * @param transitGatewayRouteTableArn * The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456" * . */ public void setTransitGatewayRouteTableArn(String transitGatewayRouteTableArn) { this.transitGatewayRouteTableArn = transitGatewayRouteTableArn; } /** *

* The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456" * . *

* * @return The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456" * . */ public String getTransitGatewayRouteTableArn() { return this.transitGatewayRouteTableArn; } /** *

* The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456" * . *

* * @param transitGatewayRouteTableArn * The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456" * . * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAttachment withTransitGatewayRouteTableArn(String transitGatewayRouteTableArn) { setTransitGatewayRouteTableArn(transitGatewayRouteTableArn); 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 (getAttachment() != null) sb.append("Attachment: ").append(getAttachment()).append(","); if (getPeeringId() != null) sb.append("PeeringId: ").append(getPeeringId()).append(","); if (getTransitGatewayRouteTableArn() != null) sb.append("TransitGatewayRouteTableArn: ").append(getTransitGatewayRouteTableArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TransitGatewayRouteTableAttachment == false) return false; TransitGatewayRouteTableAttachment other = (TransitGatewayRouteTableAttachment) obj; if (other.getAttachment() == null ^ this.getAttachment() == null) return false; if (other.getAttachment() != null && other.getAttachment().equals(this.getAttachment()) == false) return false; if (other.getPeeringId() == null ^ this.getPeeringId() == null) return false; if (other.getPeeringId() != null && other.getPeeringId().equals(this.getPeeringId()) == false) return false; if (other.getTransitGatewayRouteTableArn() == null ^ this.getTransitGatewayRouteTableArn() == null) return false; if (other.getTransitGatewayRouteTableArn() != null && other.getTransitGatewayRouteTableArn().equals(this.getTransitGatewayRouteTableArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttachment() == null) ? 0 : getAttachment().hashCode()); hashCode = prime * hashCode + ((getPeeringId() == null) ? 0 : getPeeringId().hashCode()); hashCode = prime * hashCode + ((getTransitGatewayRouteTableArn() == null) ? 0 : getTransitGatewayRouteTableArn().hashCode()); return hashCode; } @Override public TransitGatewayRouteTableAttachment clone() { try { return (TransitGatewayRouteTableAttachment) 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.TransitGatewayRouteTableAttachmentMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy