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

* Information about an Direct Connect connection. *

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

* The ID of the Amazon Web Services account that owns the connection. *

*/ private String ownerAccount; /** *

* The ID of the connection. *

*/ private String connectionId; /** *

* The name of the connection. *

*/ private String connectionName; /** *

* The state of the connection. The following are the possible values: *

* */ private String connectionState; /** *

* The Amazon Web Services Region where the connection is located. *

*/ private String region; /** *

* The location of the connection. *

*/ private String location; /** *

* The bandwidth of the connection. *

*/ private String bandwidth; /** *

* The ID of the VLAN. *

*/ private Integer vlan; /** *

* The name of the Direct Connect service provider associated with the connection. *

*/ private String partnerName; /** *

* The time of the most recent call to DescribeLoa for this connection. *

*/ private java.util.Date loaIssueTime; /** *

* The ID of the LAG. *

*/ private String lagId; /** *

* The Direct Connect endpoint on which the physical connection terminates. *

*/ private String awsDevice; /** *

* Indicates whether jumbo frames are supported. *

*/ private Boolean jumboFrameCapable; /** *

* The Direct Connect endpoint that terminates the physical connection. *

*/ private String awsDeviceV2; /** *

* The Direct Connect endpoint that terminates the logical connection. This device might be different than the * device that terminates the physical connection. *

*/ private String awsLogicalDeviceId; /** *

* Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6). *

*/ private String hasLogicalRedundancy; /** *

* The tags associated with the connection. *

*/ private com.amazonaws.internal.SdkInternalList tags; /** *

* The name of the service provider associated with the connection. *

*/ private String providerName; /** *

* Indicates whether the connection supports MAC Security (MACsec). *

*/ private Boolean macSecCapable; /** *

* The MAC Security (MACsec) port link status of the connection. *

*

* The valid values are Encryption Up, which means that there is an active Connection Key Name, or * Encryption Down. *

*/ private String portEncryptionStatus; /** *

* The MAC Security (MACsec) connection encryption mode. *

*

* The valid values are no_encrypt, should_encrypt, and must_encrypt. *

*/ private String encryptionMode; /** *

* The MAC Security (MACsec) security keys associated with the connection. *

*/ private com.amazonaws.internal.SdkInternalList macSecKeys; /** *

* The ID of the Amazon Web Services account that owns the connection. *

* * @param ownerAccount * The ID of the Amazon Web Services account that owns the connection. */ public void setOwnerAccount(String ownerAccount) { this.ownerAccount = ownerAccount; } /** *

* The ID of the Amazon Web Services account that owns the connection. *

* * @return The ID of the Amazon Web Services account that owns the connection. */ public String getOwnerAccount() { return this.ownerAccount; } /** *

* The ID of the Amazon Web Services account that owns the connection. *

* * @param ownerAccount * The ID of the Amazon Web Services account that owns the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public Connection withOwnerAccount(String ownerAccount) { setOwnerAccount(ownerAccount); return this; } /** *

* The ID of the connection. *

* * @param connectionId * The ID of the connection. */ public void setConnectionId(String connectionId) { this.connectionId = connectionId; } /** *

* The ID of the connection. *

* * @return The ID of the connection. */ public String getConnectionId() { return this.connectionId; } /** *

* The ID of the connection. *

* * @param connectionId * The ID of the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public Connection withConnectionId(String connectionId) { setConnectionId(connectionId); return this; } /** *

* The name of the connection. *

* * @param connectionName * The name of the connection. */ public void setConnectionName(String connectionName) { this.connectionName = connectionName; } /** *

* The name of the connection. *

* * @return The name of the connection. */ public String getConnectionName() { return this.connectionName; } /** *

* The name of the connection. *

* * @param connectionName * The name of the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public Connection withConnectionName(String connectionName) { setConnectionName(connectionName); return this; } /** *

* The state of the connection. The following are the possible values: *

* * * @param connectionState * The state of the connection. The following are the possible values:

*