/* * 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 local gateway virtual interface. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LocalGatewayVirtualInterface implements Serializable, Cloneable { /** ** The ID of the virtual interface. *
*/ private String localGatewayVirtualInterfaceId; /** ** The ID of the local gateway. *
*/ private String localGatewayId; /** ** The ID of the VLAN. *
*/ private Integer vlan; /** ** The local address. *
*/ private String localAddress; /** ** The peer address. *
*/ private String peerAddress; /** ** The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway. *
*/ private Integer localBgpAsn; /** ** The peer BGP ASN. *
*/ private Integer peerBgpAsn; /** ** The ID of the Amazon Web Services account that owns the local gateway virtual interface. *
*/ private String ownerId; /** ** The tags assigned to the virtual interface. *
*/ private com.amazonaws.internal.SdkInternalList* The ID of the virtual interface. *
* * @param localGatewayVirtualInterfaceId * The ID of the virtual interface. */ public void setLocalGatewayVirtualInterfaceId(String localGatewayVirtualInterfaceId) { this.localGatewayVirtualInterfaceId = localGatewayVirtualInterfaceId; } /** ** The ID of the virtual interface. *
* * @return The ID of the virtual interface. */ public String getLocalGatewayVirtualInterfaceId() { return this.localGatewayVirtualInterfaceId; } /** ** The ID of the virtual interface. *
* * @param localGatewayVirtualInterfaceId * The ID of the virtual interface. * @return Returns a reference to this object so that method calls can be chained together. */ public LocalGatewayVirtualInterface withLocalGatewayVirtualInterfaceId(String localGatewayVirtualInterfaceId) { setLocalGatewayVirtualInterfaceId(localGatewayVirtualInterfaceId); return this; } /** ** The ID of the local gateway. *
* * @param localGatewayId * The ID of the local gateway. */ public void setLocalGatewayId(String localGatewayId) { this.localGatewayId = localGatewayId; } /** ** The ID of the local gateway. *
* * @return The ID of the local gateway. */ public String getLocalGatewayId() { return this.localGatewayId; } /** ** The ID of the local gateway. *
* * @param localGatewayId * The ID of the local gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public LocalGatewayVirtualInterface withLocalGatewayId(String localGatewayId) { setLocalGatewayId(localGatewayId); return this; } /** ** The ID of the VLAN. *
* * @param vlan * The ID of the VLAN. */ public void setVlan(Integer vlan) { this.vlan = vlan; } /** ** The ID of the VLAN. *
* * @return The ID of the VLAN. */ public Integer getVlan() { return this.vlan; } /** ** The ID of the VLAN. *
* * @param vlan * The ID of the VLAN. * @return Returns a reference to this object so that method calls can be chained together. */ public LocalGatewayVirtualInterface withVlan(Integer vlan) { setVlan(vlan); return this; } /** ** The local address. *
* * @param localAddress * The local address. */ public void setLocalAddress(String localAddress) { this.localAddress = localAddress; } /** ** The local address. *
* * @return The local address. */ public String getLocalAddress() { return this.localAddress; } /** ** The local address. *
* * @param localAddress * The local address. * @return Returns a reference to this object so that method calls can be chained together. */ public LocalGatewayVirtualInterface withLocalAddress(String localAddress) { setLocalAddress(localAddress); return this; } /** ** The peer address. *
* * @param peerAddress * The peer address. */ public void setPeerAddress(String peerAddress) { this.peerAddress = peerAddress; } /** ** The peer address. *
* * @return The peer address. */ public String getPeerAddress() { return this.peerAddress; } /** ** The peer address. *
* * @param peerAddress * The peer address. * @return Returns a reference to this object so that method calls can be chained together. */ public LocalGatewayVirtualInterface withPeerAddress(String peerAddress) { setPeerAddress(peerAddress); return this; } /** ** The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway. *
* * @param localBgpAsn * The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway. */ public void setLocalBgpAsn(Integer localBgpAsn) { this.localBgpAsn = localBgpAsn; } /** ** The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway. *
* * @return The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway. */ public Integer getLocalBgpAsn() { return this.localBgpAsn; } /** ** The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway. *
* * @param localBgpAsn * The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public LocalGatewayVirtualInterface withLocalBgpAsn(Integer localBgpAsn) { setLocalBgpAsn(localBgpAsn); return this; } /** ** The peer BGP ASN. *
* * @param peerBgpAsn * The peer BGP ASN. */ public void setPeerBgpAsn(Integer peerBgpAsn) { this.peerBgpAsn = peerBgpAsn; } /** ** The peer BGP ASN. *
* * @return The peer BGP ASN. */ public Integer getPeerBgpAsn() { return this.peerBgpAsn; } /** ** The peer BGP ASN. *
* * @param peerBgpAsn * The peer BGP ASN. * @return Returns a reference to this object so that method calls can be chained together. */ public LocalGatewayVirtualInterface withPeerBgpAsn(Integer peerBgpAsn) { setPeerBgpAsn(peerBgpAsn); return this; } /** ** The ID of the Amazon Web Services account that owns the local gateway virtual interface. *
* * @param ownerId * The ID of the Amazon Web Services account that owns the local gateway virtual interface. */ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } /** ** The ID of the Amazon Web Services account that owns the local gateway virtual interface. *
* * @return The ID of the Amazon Web Services account that owns the local gateway virtual interface. */ public String getOwnerId() { return this.ownerId; } /** ** The ID of the Amazon Web Services account that owns the local gateway virtual interface. *
* * @param ownerId * The ID of the Amazon Web Services account that owns the local gateway virtual interface. * @return Returns a reference to this object so that method calls can be chained together. */ public LocalGatewayVirtualInterface withOwnerId(String ownerId) { setOwnerId(ownerId); return this; } /** ** The tags assigned to the virtual interface. *
* * @return The tags assigned to the virtual interface. */ public java.util.List* The tags assigned to the virtual interface. *
* * @param tags * The tags assigned to the virtual interface. */ public void setTags(java.util.Collection* The tags assigned to the virtual interface. *
** 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 assigned to the virtual interface. * @return Returns a reference to this object so that method calls can be chained together. */ public LocalGatewayVirtualInterface withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* The tags assigned to the virtual interface. *
* * @param tags * The tags assigned to the virtual interface. * @return Returns a reference to this object so that method calls can be chained together. */ public LocalGatewayVirtualInterface withTags(java.util.Collection