/* * Copyright 2018-2023 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 transit gateway route table announcement. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TransitGatewayRouteTableAnnouncement implements Serializable, Cloneable { /** ** The ID of the transit gateway route table announcement. *
*/ private String transitGatewayRouteTableAnnouncementId; /** ** The ID of the transit gateway. *
*/ private String transitGatewayId; /** ** The ID of the core network for the transit gateway route table announcement. *
*/ private String coreNetworkId; /** ** The ID of the peer transit gateway. *
*/ private String peerTransitGatewayId; /** ** The ID of the core network ID for the peer. *
*/ private String peerCoreNetworkId; /** ** The ID of the peering attachment. *
*/ private String peeringAttachmentId; /** ** The direction for the route table announcement. *
*/ private String announcementDirection; /** ** The ID of the transit gateway route table. *
*/ private String transitGatewayRouteTableId; /** ** The state of the transit gateway announcement. *
*/ private String state; /** ** The timestamp when the transit gateway route table announcement was created. *
*/ private java.util.Date creationTime; /** ** The key-value pairs associated with the route table announcement. *
*/ private com.amazonaws.internal.SdkInternalList* The ID of the transit gateway route table announcement. *
* * @param transitGatewayRouteTableAnnouncementId * The ID of the transit gateway route table announcement. */ public void setTransitGatewayRouteTableAnnouncementId(String transitGatewayRouteTableAnnouncementId) { this.transitGatewayRouteTableAnnouncementId = transitGatewayRouteTableAnnouncementId; } /** ** The ID of the transit gateway route table announcement. *
* * @return The ID of the transit gateway route table announcement. */ public String getTransitGatewayRouteTableAnnouncementId() { return this.transitGatewayRouteTableAnnouncementId; } /** ** The ID of the transit gateway route table announcement. *
* * @param transitGatewayRouteTableAnnouncementId * The ID of the transit gateway route table announcement. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAnnouncement withTransitGatewayRouteTableAnnouncementId(String transitGatewayRouteTableAnnouncementId) { setTransitGatewayRouteTableAnnouncementId(transitGatewayRouteTableAnnouncementId); return this; } /** ** The ID of the transit gateway. *
* * @param transitGatewayId * The ID of the transit gateway. */ public void setTransitGatewayId(String transitGatewayId) { this.transitGatewayId = transitGatewayId; } /** ** The ID of the transit gateway. *
* * @return The ID of the transit gateway. */ public String getTransitGatewayId() { return this.transitGatewayId; } /** ** The ID of the transit gateway. *
* * @param transitGatewayId * The ID of the transit gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAnnouncement withTransitGatewayId(String transitGatewayId) { setTransitGatewayId(transitGatewayId); return this; } /** ** The ID of the core network for the transit gateway route table announcement. *
* * @param coreNetworkId * The ID of the core network for the transit gateway route table announcement. */ public void setCoreNetworkId(String coreNetworkId) { this.coreNetworkId = coreNetworkId; } /** ** The ID of the core network for the transit gateway route table announcement. *
* * @return The ID of the core network for the transit gateway route table announcement. */ public String getCoreNetworkId() { return this.coreNetworkId; } /** ** The ID of the core network for the transit gateway route table announcement. *
* * @param coreNetworkId * The ID of the core network for the transit gateway route table announcement. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAnnouncement withCoreNetworkId(String coreNetworkId) { setCoreNetworkId(coreNetworkId); return this; } /** ** The ID of the peer transit gateway. *
* * @param peerTransitGatewayId * The ID of the peer transit gateway. */ public void setPeerTransitGatewayId(String peerTransitGatewayId) { this.peerTransitGatewayId = peerTransitGatewayId; } /** ** The ID of the peer transit gateway. *
* * @return The ID of the peer transit gateway. */ public String getPeerTransitGatewayId() { return this.peerTransitGatewayId; } /** ** The ID of the peer transit gateway. *
* * @param peerTransitGatewayId * The ID of the peer transit gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAnnouncement withPeerTransitGatewayId(String peerTransitGatewayId) { setPeerTransitGatewayId(peerTransitGatewayId); return this; } /** ** The ID of the core network ID for the peer. *
* * @param peerCoreNetworkId * The ID of the core network ID for the peer. */ public void setPeerCoreNetworkId(String peerCoreNetworkId) { this.peerCoreNetworkId = peerCoreNetworkId; } /** ** The ID of the core network ID for the peer. *
* * @return The ID of the core network ID for the peer. */ public String getPeerCoreNetworkId() { return this.peerCoreNetworkId; } /** ** The ID of the core network ID for the peer. *
* * @param peerCoreNetworkId * The ID of the core network ID for the peer. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAnnouncement withPeerCoreNetworkId(String peerCoreNetworkId) { setPeerCoreNetworkId(peerCoreNetworkId); return this; } /** ** The ID of the peering attachment. *
* * @param peeringAttachmentId * The ID of the peering attachment. */ public void setPeeringAttachmentId(String peeringAttachmentId) { this.peeringAttachmentId = peeringAttachmentId; } /** ** The ID of the peering attachment. *
* * @return The ID of the peering attachment. */ public String getPeeringAttachmentId() { return this.peeringAttachmentId; } /** ** The ID of the peering attachment. *
* * @param peeringAttachmentId * The ID of the peering attachment. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAnnouncement withPeeringAttachmentId(String peeringAttachmentId) { setPeeringAttachmentId(peeringAttachmentId); return this; } /** ** The direction for the route table announcement. *
* * @param announcementDirection * The direction for the route table announcement. * @see TransitGatewayRouteTableAnnouncementDirection */ public void setAnnouncementDirection(String announcementDirection) { this.announcementDirection = announcementDirection; } /** ** The direction for the route table announcement. *
* * @return The direction for the route table announcement. * @see TransitGatewayRouteTableAnnouncementDirection */ public String getAnnouncementDirection() { return this.announcementDirection; } /** ** The direction for the route table announcement. *
* * @param announcementDirection * The direction for the route table announcement. * @return Returns a reference to this object so that method calls can be chained together. * @see TransitGatewayRouteTableAnnouncementDirection */ public TransitGatewayRouteTableAnnouncement withAnnouncementDirection(String announcementDirection) { setAnnouncementDirection(announcementDirection); return this; } /** ** The direction for the route table announcement. *
* * @param announcementDirection * The direction for the route table announcement. * @return Returns a reference to this object so that method calls can be chained together. * @see TransitGatewayRouteTableAnnouncementDirection */ public TransitGatewayRouteTableAnnouncement withAnnouncementDirection(TransitGatewayRouteTableAnnouncementDirection announcementDirection) { this.announcementDirection = announcementDirection.toString(); return this; } /** ** The ID of the transit gateway route table. *
* * @param transitGatewayRouteTableId * The ID of the transit gateway route table. */ public void setTransitGatewayRouteTableId(String transitGatewayRouteTableId) { this.transitGatewayRouteTableId = transitGatewayRouteTableId; } /** ** The ID of the transit gateway route table. *
* * @return The ID of the transit gateway route table. */ public String getTransitGatewayRouteTableId() { return this.transitGatewayRouteTableId; } /** ** The ID of the transit gateway route table. *
* * @param transitGatewayRouteTableId * The ID of the transit gateway route table. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAnnouncement withTransitGatewayRouteTableId(String transitGatewayRouteTableId) { setTransitGatewayRouteTableId(transitGatewayRouteTableId); return this; } /** ** The state of the transit gateway announcement. *
* * @param state * The state of the transit gateway announcement. * @see TransitGatewayRouteTableAnnouncementState */ public void setState(String state) { this.state = state; } /** ** The state of the transit gateway announcement. *
* * @return The state of the transit gateway announcement. * @see TransitGatewayRouteTableAnnouncementState */ public String getState() { return this.state; } /** ** The state of the transit gateway announcement. *
* * @param state * The state of the transit gateway announcement. * @return Returns a reference to this object so that method calls can be chained together. * @see TransitGatewayRouteTableAnnouncementState */ public TransitGatewayRouteTableAnnouncement withState(String state) { setState(state); return this; } /** ** The state of the transit gateway announcement. *
* * @param state * The state of the transit gateway announcement. * @return Returns a reference to this object so that method calls can be chained together. * @see TransitGatewayRouteTableAnnouncementState */ public TransitGatewayRouteTableAnnouncement withState(TransitGatewayRouteTableAnnouncementState state) { this.state = state.toString(); return this; } /** ** The timestamp when the transit gateway route table announcement was created. *
* * @param creationTime * The timestamp when the transit gateway route table announcement was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The timestamp when the transit gateway route table announcement was created. *
* * @return The timestamp when the transit gateway route table announcement was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The timestamp when the transit gateway route table announcement was created. *
* * @param creationTime * The timestamp when the transit gateway route table announcement was created. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAnnouncement withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The key-value pairs associated with the route table announcement. *
* * @return The key-value pairs associated with the route table announcement. */ public java.util.List* The key-value pairs associated with the route table announcement. *
* * @param tags * The key-value pairs associated with the route table announcement. */ public void setTags(java.util.Collection* The key-value pairs associated with the route table announcement. *
** 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 key-value pairs associated with the route table announcement. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAnnouncement withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* The key-value pairs associated with the route table announcement. *
* * @param tags * The key-value pairs associated with the route table announcement. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableAnnouncement withTags(java.util.Collection