/* * 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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Details about an Amazon EC2 VPN connection. *

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

* The identifier of the VPN connection. *

*/ private String vpnConnectionId; /** *

* The current state of the VPN connection. Valid values are as follows: *

* */ private String state; /** *

* The identifier of the customer gateway that is at your end of the VPN connection. *

*/ private String customerGatewayId; /** *

* The configuration information for the VPN connection's customer gateway, in the native XML format. *

*/ private String customerGatewayConfiguration; /** *

* The type of VPN connection. *

*/ private String type; /** *

* The identifier of the virtual private gateway that is at the Amazon Web Services side of the VPN connection. *

*/ private String vpnGatewayId; /** *

* The category of the VPN connection. VPN indicates an Amazon Web Services VPN connection. * VPN-Classic indicates an Amazon Web Services Classic VPN connection. *

*/ private String category; /** *

* Information about the VPN tunnel. *

*/ private java.util.List vgwTelemetry; /** *

* The VPN connection options. *

*/ private AwsEc2VpnConnectionOptionsDetails options; /** *

* The static routes that are associated with the VPN connection. *

*/ private java.util.List routes; /** *

* The identifier of the transit gateway that is associated with the VPN connection. *

*/ private String transitGatewayId; /** *

* The identifier of the VPN connection. *

* * @param vpnConnectionId * The identifier of the VPN connection. */ public void setVpnConnectionId(String vpnConnectionId) { this.vpnConnectionId = vpnConnectionId; } /** *

* The identifier of the VPN connection. *

* * @return The identifier of the VPN connection. */ public String getVpnConnectionId() { return this.vpnConnectionId; } /** *

* The identifier of the VPN connection. *

* * @param vpnConnectionId * The identifier of the VPN connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2VpnConnectionDetails withVpnConnectionId(String vpnConnectionId) { setVpnConnectionId(vpnConnectionId); return this; } /** *

* The current state of the VPN connection. Valid values are as follows: *

* * * @param state * The current state of the VPN connection. Valid values are as follows:

*