Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 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.directconnect.model;
  

A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect location and the customer.

  
  public class VirtualInterface implements SerializableCloneable {
  
      private String ownerAccount;

    
ID of the virtual interface.

Example: dxvif-123dfg56

Default: None

  
      private String virtualInterfaceId;

    
Where the connection is located.

Example: EqSV5

Default: None

  
      private String location;

    
ID of the connection.

Example: dxcon-fg5678gh

Default: None

  
      private String connectionId;

    
The type of virtual interface.

Example: private (Amazon VPC) or public (Amazon S3, Amazon DynamoDB, and so on.)

  
      private String virtualInterfaceType;

    
The name of the virtual interface assigned by the customer.

Example: "My VPC"

  
      private String virtualInterfaceName;

    
The VLAN ID.

Example: 101

  
      private Integer vlan;

    
Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

Example: 65000

  
      private Integer asn;

    
Authentication key for BGP configuration.

Example: asdf34example

  
      private String authKey;

    
IP address assigned to the Amazon interface.

Example: 192.168.1.1/30

  
      private String amazonAddress;

    
IP address assigned to the customer interface.

Example: 192.168.1.2/30

  
      private String customerAddress;

    
State of the virtual interface.
  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
  • Available: A virtual interface that is able to forward traffic.
  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
  • Deleted: A virtual interface that cannot forward traffic.
  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.

Constraints:
Allowed Values: confirming, verifying, pending, available, deleting, deleted, rejected

 
     private String virtualInterfaceState;

    
Information for generating the customer router configuration.
 
     private String customerRouterConfig;

    
The ID of the virtual private gateway to a VPC. This only applies to private virtual interfaces.

Example: vgw-123er56

 
     private String virtualGatewayId;

    
A list of routes to be advertised to the AWS network in this region (public virtual interface) or your VPC (private virtual interface).
 
Returns the value of the OwnerAccount property for this object.

Returns:
The value of the OwnerAccount property for this object.
 
     public String getOwnerAccount() {
         return ;
     }
    
    
Sets the value of the OwnerAccount property for this object.

Parameters:
ownerAccount The new value for the OwnerAccount property for this object.
 
     public void setOwnerAccount(String ownerAccount) {
         this. = ownerAccount;
     }
    
    
Sets the value of the OwnerAccount property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ownerAccount The new value for the OwnerAccount property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withOwnerAccount(String ownerAccount) {
         this. = ownerAccount;
         return this;
     }

    
ID of the virtual interface.

Example: dxvif-123dfg56

Default: None

Returns:
ID of the virtual interface.

Example: dxvif-123dfg56

Default: None

 
     public String getVirtualInterfaceId() {
         return ;
     }
    
    
ID of the virtual interface.

Example: dxvif-123dfg56

Default: None

Parameters:
virtualInterfaceId ID of the virtual interface.

Example: dxvif-123dfg56

Default: None

 
     public void setVirtualInterfaceId(String virtualInterfaceId) {
         this. = virtualInterfaceId;
     }
    
    
ID of the virtual interface.

Example: dxvif-123dfg56

Default: None

Returns a reference to this object so that method calls can be chained together.

Parameters:
virtualInterfaceId ID of the virtual interface.

Example: dxvif-123dfg56

Default: None

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withVirtualInterfaceId(String virtualInterfaceId) {
         this. = virtualInterfaceId;
         return this;
     }

    
Where the connection is located.

Example: EqSV5

Default: None

Returns:
Where the connection is located.

Example: EqSV5

Default: None

 
     public String getLocation() {
         return ;
     }
    
    
Where the connection is located.

Example: EqSV5

Default: None

Parameters:
location Where the connection is located.

Example: EqSV5

Default: None

 
     public void setLocation(String location) {
         this. = location;
     }
    
    
Where the connection is located.

Example: EqSV5

Default: None

Returns a reference to this object so that method calls can be chained together.

Parameters:
location Where the connection is located.

Example: EqSV5

Default: None

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withLocation(String location) {
         this. = location;
         return this;
     }

    
ID of the connection.

Example: dxcon-fg5678gh

Default: None

Returns:
ID of the connection.

Example: dxcon-fg5678gh

Default: None

 
     public String getConnectionId() {
         return ;
     }
    
    
ID of the connection.

Example: dxcon-fg5678gh

Default: None

Parameters:
connectionId ID of the connection.

Example: dxcon-fg5678gh

Default: None

 
     public void setConnectionId(String connectionId) {
         this. = connectionId;
     }
    
    
ID of the connection.

Example: dxcon-fg5678gh

Default: None

Returns a reference to this object so that method calls can be chained together.

Parameters:
connectionId ID of the connection.

Example: dxcon-fg5678gh

Default: None

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withConnectionId(String connectionId) {
         this. = connectionId;
         return this;
     }

    
The type of virtual interface.

Example: private (Amazon VPC) or public (Amazon S3, Amazon DynamoDB, and so on.)

Returns:
The type of virtual interface.

Example: private (Amazon VPC) or public (Amazon S3, Amazon DynamoDB, and so on.)

 
     public String getVirtualInterfaceType() {
         return ;
     }
    
    
The type of virtual interface.

Example: private (Amazon VPC) or public (Amazon S3, Amazon DynamoDB, and so on.)

Parameters:
virtualInterfaceType The type of virtual interface.

Example: private (Amazon VPC) or public (Amazon S3, Amazon DynamoDB, and so on.)

 
     public void setVirtualInterfaceType(String virtualInterfaceType) {
         this. = virtualInterfaceType;
     }
    
    
The type of virtual interface.

Example: private (Amazon VPC) or public (Amazon S3, Amazon DynamoDB, and so on.)

Returns a reference to this object so that method calls can be chained together.

Parameters:
virtualInterfaceType The type of virtual interface.

Example: private (Amazon VPC) or public (Amazon S3, Amazon DynamoDB, and so on.)

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withVirtualInterfaceType(String virtualInterfaceType) {
         this. = virtualInterfaceType;
         return this;
     }

    
The name of the virtual interface assigned by the customer.

Example: "My VPC"

Returns:
The name of the virtual interface assigned by the customer.

Example: "My VPC"

 
     public String getVirtualInterfaceName() {
         return ;
     }
    
    
The name of the virtual interface assigned by the customer.

Example: "My VPC"

Parameters:
virtualInterfaceName The name of the virtual interface assigned by the customer.

Example: "My VPC"

 
     public void setVirtualInterfaceName(String virtualInterfaceName) {
         this. = virtualInterfaceName;
     }
    
    
The name of the virtual interface assigned by the customer.

Example: "My VPC"

Returns a reference to this object so that method calls can be chained together.

Parameters:
virtualInterfaceName The name of the virtual interface assigned by the customer.

Example: "My VPC"

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withVirtualInterfaceName(String virtualInterfaceName) {
         this. = virtualInterfaceName;
         return this;
     }

    
The VLAN ID.

Example: 101

Returns:
The VLAN ID.

Example: 101

 
     public Integer getVlan() {
         return ;
     }
    
    
The VLAN ID.

Example: 101

Parameters:
vlan The VLAN ID.

Example: 101

 
     public void setVlan(Integer vlan) {
         this. = vlan;
     }
    
    
The VLAN ID.

Example: 101

Returns a reference to this object so that method calls can be chained together.

Parameters:
vlan The VLAN ID.

Example: 101

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withVlan(Integer vlan) {
         this. = vlan;
         return this;
     }

    
Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

Example: 65000

Returns:
Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

Example: 65000

 
     public Integer getAsn() {
         return ;
     }
    
    
Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

Example: 65000

Parameters:
asn Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

Example: 65000

 
     public void setAsn(Integer asn) {
         this. = asn;
     }
    
    
Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

Example: 65000

Returns a reference to this object so that method calls can be chained together.

Parameters:
asn Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

Example: 65000

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withAsn(Integer asn) {
         this. = asn;
         return this;
     }

    
Authentication key for BGP configuration.

Example: asdf34example

Returns:
Authentication key for BGP configuration.

Example: asdf34example

 
     public String getAuthKey() {
         return ;
     }
    
    
Authentication key for BGP configuration.

Example: asdf34example

Parameters:
authKey Authentication key for BGP configuration.

Example: asdf34example

 
     public void setAuthKey(String authKey) {
         this. = authKey;
     }
    
    
Authentication key for BGP configuration.

Example: asdf34example

Returns a reference to this object so that method calls can be chained together.

Parameters:
authKey Authentication key for BGP configuration.

Example: asdf34example

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withAuthKey(String authKey) {
         this. = authKey;
         return this;
     }

    
IP address assigned to the Amazon interface.

Example: 192.168.1.1/30

Returns:
IP address assigned to the Amazon interface.

Example: 192.168.1.1/30

 
     public String getAmazonAddress() {
         return ;
     }
    
    
IP address assigned to the Amazon interface.

Example: 192.168.1.1/30

Parameters:
amazonAddress IP address assigned to the Amazon interface.

Example: 192.168.1.1/30

 
     public void setAmazonAddress(String amazonAddress) {
         this. = amazonAddress;
     }
    
    
IP address assigned to the Amazon interface.

Example: 192.168.1.1/30

Returns a reference to this object so that method calls can be chained together.

Parameters:
amazonAddress IP address assigned to the Amazon interface.

Example: 192.168.1.1/30

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withAmazonAddress(String amazonAddress) {
         this. = amazonAddress;
         return this;
     }

    
IP address assigned to the customer interface.

Example: 192.168.1.2/30

Returns:
IP address assigned to the customer interface.

Example: 192.168.1.2/30

 
     public String getCustomerAddress() {
         return ;
     }
    
    
IP address assigned to the customer interface.

Example: 192.168.1.2/30

Parameters:
customerAddress IP address assigned to the customer interface.

Example: 192.168.1.2/30

 
     public void setCustomerAddress(String customerAddress) {
         this. = customerAddress;
     }
    
    
IP address assigned to the customer interface.

Example: 192.168.1.2/30

Returns a reference to this object so that method calls can be chained together.

Parameters:
customerAddress IP address assigned to the customer interface.

Example: 192.168.1.2/30

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withCustomerAddress(String customerAddress) {
         this. = customerAddress;
         return this;
     }

    
State of the virtual interface.
  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
  • Available: A virtual interface that is able to forward traffic.
  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
  • Deleted: A virtual interface that cannot forward traffic.
  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.

Constraints:
Allowed Values: confirming, verifying, pending, available, deleting, deleted, rejected

Returns:
State of the virtual interface.
  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
  • Available: A virtual interface that is able to forward traffic.
  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
  • Deleted: A virtual interface that cannot forward traffic.
  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.
See also:
VirtualInterfaceState
 
     public String getVirtualInterfaceState() {
         return ;
     }
    
    
State of the virtual interface.
  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
  • Available: A virtual interface that is able to forward traffic.
  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
  • Deleted: A virtual interface that cannot forward traffic.
  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.

Constraints:
Allowed Values: confirming, verifying, pending, available, deleting, deleted, rejected

Parameters:
virtualInterfaceState State of the virtual interface.
  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
  • Available: A virtual interface that is able to forward traffic.
  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
  • Deleted: A virtual interface that cannot forward traffic.
  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.
See also:
VirtualInterfaceState
 
     public void setVirtualInterfaceState(String virtualInterfaceState) {
         this. = virtualInterfaceState;
     }
    
    
State of the virtual interface.
  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
  • Available: A virtual interface that is able to forward traffic.
  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
  • Deleted: A virtual interface that cannot forward traffic.
  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: confirming, verifying, pending, available, deleting, deleted, rejected

Parameters:
virtualInterfaceState State of the virtual interface.
  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
  • Available: A virtual interface that is able to forward traffic.
  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
  • Deleted: A virtual interface that cannot forward traffic.
  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
VirtualInterfaceState
 
     public VirtualInterface withVirtualInterfaceState(String virtualInterfaceState) {
         this. = virtualInterfaceState;
         return this;
     }

    
State of the virtual interface.
  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
  • Available: A virtual interface that is able to forward traffic.
  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
  • Deleted: A virtual interface that cannot forward traffic.
  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.

Constraints:
Allowed Values: confirming, verifying, pending, available, deleting, deleted, rejected

Parameters:
virtualInterfaceState State of the virtual interface.
  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
  • Available: A virtual interface that is able to forward traffic.
  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
  • Deleted: A virtual interface that cannot forward traffic.
  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.
See also:
VirtualInterfaceState
 
     public void setVirtualInterfaceState(VirtualInterfaceState virtualInterfaceState) {
         this. = virtualInterfaceState.toString();
     }
    
    
State of the virtual interface.
  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
  • Available: A virtual interface that is able to forward traffic.
  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
  • Deleted: A virtual interface that cannot forward traffic.
  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: confirming, verifying, pending, available, deleting, deleted, rejected

Parameters:
virtualInterfaceState State of the virtual interface.
  • Confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
  • Verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
  • Pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
  • Available: A virtual interface that is able to forward traffic.
  • Deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface until it can no longer forward traffic.
  • Deleted: A virtual interface that cannot forward traffic.
  • Rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the 'Confirming' state is deleted by the virtual interface owner, the virtual interface will enter the 'Rejected' state.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
VirtualInterfaceState
 
     public VirtualInterface withVirtualInterfaceState(VirtualInterfaceState virtualInterfaceState) {
         this. = virtualInterfaceState.toString();
         return this;
     }

    
Information for generating the customer router configuration.

Returns:
Information for generating the customer router configuration.
 
     public String getCustomerRouterConfig() {
         return ;
     }
    
    
Information for generating the customer router configuration.

Parameters:
customerRouterConfig Information for generating the customer router configuration.
 
     public void setCustomerRouterConfig(String customerRouterConfig) {
         this. = customerRouterConfig;
     }
    
    
Information for generating the customer router configuration.

Returns a reference to this object so that method calls can be chained together.

Parameters:
customerRouterConfig Information for generating the customer router configuration.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withCustomerRouterConfig(String customerRouterConfig) {
         this. = customerRouterConfig;
         return this;
     }

    
The ID of the virtual private gateway to a VPC. This only applies to private virtual interfaces.

Example: vgw-123er56

Returns:
The ID of the virtual private gateway to a VPC. This only applies to private virtual interfaces.

Example: vgw-123er56

 
     public String getVirtualGatewayId() {
         return ;
     }
    
    
The ID of the virtual private gateway to a VPC. This only applies to private virtual interfaces.

Example: vgw-123er56

Parameters:
virtualGatewayId The ID of the virtual private gateway to a VPC. This only applies to private virtual interfaces.

Example: vgw-123er56

 
     public void setVirtualGatewayId(String virtualGatewayId) {
         this. = virtualGatewayId;
     }
    
    
The ID of the virtual private gateway to a VPC. This only applies to private virtual interfaces.

Example: vgw-123er56

Returns a reference to this object so that method calls can be chained together.

Parameters:
virtualGatewayId The ID of the virtual private gateway to a VPC. This only applies to private virtual interfaces.

Example: vgw-123er56

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withVirtualGatewayId(String virtualGatewayId) {
         this. = virtualGatewayId;
         return this;
     }

    
A list of routes to be advertised to the AWS network in this region (public virtual interface) or your VPC (private virtual interface).

Returns:
A list of routes to be advertised to the AWS network in this region (public virtual interface) or your VPC (private virtual interface).
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
A list of routes to be advertised to the AWS network in this region (public virtual interface) or your VPC (private virtual interface).

Parameters:
routeFilterPrefixes A list of routes to be advertised to the AWS network in this region (public virtual interface) or your VPC (private virtual interface).
 
     public void setRouteFilterPrefixes(java.util.Collection<RouteFilterPrefixrouteFilterPrefixes) {
         if (routeFilterPrefixes == null) {
             this. = null;
             return;
         }
         com.amazonaws.internal.ListWithAutoConstructFlag<RouteFilterPrefixrouteFilterPrefixesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<RouteFilterPrefix>(routeFilterPrefixes.size());
         routeFilterPrefixesCopy.addAll(routeFilterPrefixes);
         this. = routeFilterPrefixesCopy;
     }
    
    
A list of routes to be advertised to the AWS network in this region (public virtual interface) or your VPC (private virtual interface).

NOTE: This method appends the values to the existing list (if any). Use setRouteFilterPrefixes(java.util.Collection) or withRouteFilterPrefixes(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
routeFilterPrefixes A list of routes to be advertised to the AWS network in this region (public virtual interface) or your VPC (private virtual interface).
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public VirtualInterface withRouteFilterPrefixes(RouteFilterPrefix... routeFilterPrefixes) {
         if (getRouteFilterPrefixes() == nullsetRouteFilterPrefixes(new java.util.ArrayList<RouteFilterPrefix>(routeFilterPrefixes.length));
         for (RouteFilterPrefix value : routeFilterPrefixes) {
             getRouteFilterPrefixes().add(value);
         }
         return this;
     }
    
    
A list of routes to be advertised to the AWS network in this region (public virtual interface) or your VPC (private virtual interface).

Returns a reference to this object so that method calls can be chained together.

Parameters:
routeFilterPrefixes A list of routes to be advertised to the AWS network in this region (public virtual interface) or your VPC (private virtual interface).
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (routeFilterPrefixes == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<RouteFilterPrefixrouteFilterPrefixesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<RouteFilterPrefix>(routeFilterPrefixes.size());
             routeFilterPrefixesCopy.addAll(routeFilterPrefixes);
             this. = routeFilterPrefixesCopy;
         }
 
         return this;
     }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
 
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
         sb.append("{");
         if (getOwnerAccount() != nullsb.append("OwnerAccount: " + getOwnerAccount() + ",");
         if (getVirtualInterfaceId() != nullsb.append("VirtualInterfaceId: " + getVirtualInterfaceId() + ",");
         if (getLocation() != nullsb.append("Location: " + getLocation() + ",");
         if (getConnectionId() != nullsb.append("ConnectionId: " + getConnectionId() + ",");
         if (getVirtualInterfaceType() != nullsb.append("VirtualInterfaceType: " + getVirtualInterfaceType() + ",");
         if (getVirtualInterfaceName() != nullsb.append("VirtualInterfaceName: " + getVirtualInterfaceName() + ",");
         if (getVlan() != nullsb.append("Vlan: " + getVlan() + ",");
         if (getAsn() != nullsb.append("Asn: " + getAsn() + ",");
         if (getAuthKey() != nullsb.append("AuthKey: " + getAuthKey() + ",");
         if (getAmazonAddress() != nullsb.append("AmazonAddress: " + getAmazonAddress() + ",");
         if (getCustomerAddress() != nullsb.append("CustomerAddress: " + getCustomerAddress() + ",");
         if (getVirtualInterfaceState() != nullsb.append("VirtualInterfaceState: " + getVirtualInterfaceState() + ",");
         if (getCustomerRouterConfig() != nullsb.append("CustomerRouterConfig: " + getCustomerRouterConfig() + ",");
         if (getVirtualGatewayId() != nullsb.append("VirtualGatewayId: " + getVirtualGatewayId() + ",");
         if (getRouteFilterPrefixes() != nullsb.append("RouteFilterPrefixes: " + getRouteFilterPrefixes() );
         sb.append("}");
         return sb.toString();
     }
     
     @Override
     public int hashCode() {
         final int prime = 31;
         int hashCode = 1;
         
         hashCode = prime * hashCode + ((getOwnerAccount() == null) ? 0 : getOwnerAccount().hashCode()); 
         hashCode = prime * hashCode + ((getVirtualInterfaceId() == null) ? 0 : getVirtualInterfaceId().hashCode()); 
         hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); 
         hashCode = prime * hashCode + ((getConnectionId() == null) ? 0 : getConnectionId().hashCode()); 
         hashCode = prime * hashCode + ((getVirtualInterfaceType() == null) ? 0 : getVirtualInterfaceType().hashCode()); 
         hashCode = prime * hashCode + ((getVirtualInterfaceName() == null) ? 0 : getVirtualInterfaceName().hashCode()); 
         hashCode = prime * hashCode + ((getVlan() == null) ? 0 : getVlan().hashCode()); 
         hashCode = prime * hashCode + ((getAsn() == null) ? 0 : getAsn().hashCode()); 
         hashCode = prime * hashCode + ((getAuthKey() == null) ? 0 : getAuthKey().hashCode()); 
         hashCode = prime * hashCode + ((getAmazonAddress() == null) ? 0 : getAmazonAddress().hashCode()); 
         hashCode = prime * hashCode + ((getCustomerAddress() == null) ? 0 : getCustomerAddress().hashCode()); 
         hashCode = prime * hashCode + ((getVirtualInterfaceState() == null) ? 0 : getVirtualInterfaceState().hashCode()); 
         hashCode = prime * hashCode + ((getCustomerRouterConfig() == null) ? 0 : getCustomerRouterConfig().hashCode()); 
         hashCode = prime * hashCode + ((getVirtualGatewayId() == null) ? 0 : getVirtualGatewayId().hashCode()); 
         hashCode = prime * hashCode + ((getRouteFilterPrefixes() == null) ? 0 : getRouteFilterPrefixes().hashCode()); 
         return hashCode;
     }
     
     @Override
     public boolean equals(Object obj) {
         if (this == objreturn true;
         if (obj == nullreturn false;
        if (obj instanceof VirtualInterface == falsereturn false;
        VirtualInterface other = (VirtualInterface)obj;
        
        if (other.getOwnerAccount() == null ^ this.getOwnerAccount() == nullreturn false;
        if (other.getOwnerAccount() != null && other.getOwnerAccount().equals(this.getOwnerAccount()) == falsereturn false
        if (other.getVirtualInterfaceId() == null ^ this.getVirtualInterfaceId() == nullreturn false;
        if (other.getVirtualInterfaceId() != null && other.getVirtualInterfaceId().equals(this.getVirtualInterfaceId()) == falsereturn false
        if (other.getLocation() == null ^ this.getLocation() == nullreturn false;
        if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == falsereturn false
        if (other.getConnectionId() == null ^ this.getConnectionId() == nullreturn false;
        if (other.getConnectionId() != null && other.getConnectionId().equals(this.getConnectionId()) == falsereturn false
        if (other.getVirtualInterfaceType() == null ^ this.getVirtualInterfaceType() == nullreturn false;
        if (other.getVirtualInterfaceType() != null && other.getVirtualInterfaceType().equals(this.getVirtualInterfaceType()) == falsereturn false
        if (other.getVirtualInterfaceName() == null ^ this.getVirtualInterfaceName() == nullreturn false;
        if (other.getVirtualInterfaceName() != null && other.getVirtualInterfaceName().equals(this.getVirtualInterfaceName()) == falsereturn false
        if (other.getVlan() == null ^ this.getVlan() == nullreturn false;
        if (other.getVlan() != null && other.getVlan().equals(this.getVlan()) == falsereturn false
        if (other.getAsn() == null ^ this.getAsn() == nullreturn false;
        if (other.getAsn() != null && other.getAsn().equals(this.getAsn()) == falsereturn false
        if (other.getAuthKey() == null ^ this.getAuthKey() == nullreturn false;
        if (other.getAuthKey() != null && other.getAuthKey().equals(this.getAuthKey()) == falsereturn false
        if (other.getAmazonAddress() == null ^ this.getAmazonAddress() == nullreturn false;
        if (other.getAmazonAddress() != null && other.getAmazonAddress().equals(this.getAmazonAddress()) == falsereturn false
        if (other.getCustomerAddress() == null ^ this.getCustomerAddress() == nullreturn false;
        if (other.getCustomerAddress() != null && other.getCustomerAddress().equals(this.getCustomerAddress()) == falsereturn false
        if (other.getVirtualInterfaceState() == null ^ this.getVirtualInterfaceState() == nullreturn false;
        if (other.getVirtualInterfaceState() != null && other.getVirtualInterfaceState().equals(this.getVirtualInterfaceState()) == falsereturn false
        if (other.getCustomerRouterConfig() == null ^ this.getCustomerRouterConfig() == nullreturn false;
        if (other.getCustomerRouterConfig() != null && other.getCustomerRouterConfig().equals(this.getCustomerRouterConfig()) == falsereturn false
        if (other.getVirtualGatewayId() == null ^ this.getVirtualGatewayId() == nullreturn false;
        if (other.getVirtualGatewayId() != null && other.getVirtualGatewayId().equals(this.getVirtualGatewayId()) == falsereturn false
        if (other.getRouteFilterPrefixes() == null ^ this.getRouteFilterPrefixes() == nullreturn false;
        if (other.getRouteFilterPrefixes() != null && other.getRouteFilterPrefixes().equals(this.getRouteFilterPrefixes()) == falsereturn false
        return true;
    }
    
    @Override
    public VirtualInterface clone() {
        try {
            return (VirtualInterfacesuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X