/* * 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; /** *
* Information about an Direct Connect connection. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AssociateHostedConnectionResult extends com.amazonaws.AmazonWebServiceResult* 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: *
*
* ordering
: The initial state of a hosted connection provisioned on an interconnect. The connection
* stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
*
* requested
: The initial state of a standard connection. The connection stays in the requested state
* until the Letter of Authorization (LOA) is sent to the customer.
*
* pending
: The connection has been approved and is being initialized.
*
* available
: The network link is up and the connection is ready for use.
*
* down
: The network link is down.
*
* deleting
: The connection is being deleted.
*
* deleted
: The connection has been deleted.
*
* rejected
: A hosted connection in the ordering
state enters the rejected
* state if it is deleted by the customer.
*
* unknown
: The state of the connection is not available.
*
* 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* 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
.
*
* The MAC Security (MACsec) connection encryption mode. *
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
*
* The MAC Security (MACsec) security keys associated with the connection. *
*/ private com.amazonaws.internal.SdkInternalList* 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 AssociateHostedConnectionResult 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 AssociateHostedConnectionResult 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 AssociateHostedConnectionResult withConnectionName(String connectionName) { setConnectionName(connectionName); return this; } /** ** The state of the connection. The following are the possible values: *
*
* ordering
: The initial state of a hosted connection provisioned on an interconnect. The connection
* stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
*
* requested
: The initial state of a standard connection. The connection stays in the requested state
* until the Letter of Authorization (LOA) is sent to the customer.
*
* pending
: The connection has been approved and is being initialized.
*
* available
: The network link is up and the connection is ready for use.
*
* down
: The network link is down.
*
* deleting
: The connection is being deleted.
*
* deleted
: The connection has been deleted.
*
* rejected
: A hosted connection in the ordering
state enters the rejected
* state if it is deleted by the customer.
*
* unknown
: The state of the connection is not available.
*
* ordering
: The initial state of a hosted connection provisioned on an interconnect. The
* connection stays in the ordering state until the owner of the hosted connection confirms or declines the
* connection order.
*
* requested
: The initial state of a standard connection. The connection stays in the requested
* state until the Letter of Authorization (LOA) is sent to the customer.
*
* pending
: The connection has been approved and is being initialized.
*
* available
: The network link is up and the connection is ready for use.
*
* down
: The network link is down.
*
* deleting
: The connection is being deleted.
*
* deleted
: The connection has been deleted.
*
* rejected
: A hosted connection in the ordering
state enters the
* rejected
state if it is deleted by the customer.
*
* unknown
: The state of the connection is not available.
*
* The state of the connection. The following are the possible values: *
*
* ordering
: The initial state of a hosted connection provisioned on an interconnect. The connection
* stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
*
* requested
: The initial state of a standard connection. The connection stays in the requested state
* until the Letter of Authorization (LOA) is sent to the customer.
*
* pending
: The connection has been approved and is being initialized.
*
* available
: The network link is up and the connection is ready for use.
*
* down
: The network link is down.
*
* deleting
: The connection is being deleted.
*
* deleted
: The connection has been deleted.
*
* rejected
: A hosted connection in the ordering
state enters the rejected
* state if it is deleted by the customer.
*
* unknown
: The state of the connection is not available.
*
* ordering
: The initial state of a hosted connection provisioned on an interconnect. The
* connection stays in the ordering state until the owner of the hosted connection confirms or declines the
* connection order.
*
* requested
: The initial state of a standard connection. The connection stays in the requested
* state until the Letter of Authorization (LOA) is sent to the customer.
*
* pending
: The connection has been approved and is being initialized.
*
* available
: The network link is up and the connection is ready for use.
*
* down
: The network link is down.
*
* deleting
: The connection is being deleted.
*
* deleted
: The connection has been deleted.
*
* rejected
: A hosted connection in the ordering
state enters the
* rejected
state if it is deleted by the customer.
*
* unknown
: The state of the connection is not available.
*
* The state of the connection. The following are the possible values: *
*
* ordering
: The initial state of a hosted connection provisioned on an interconnect. The connection
* stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
*
* requested
: The initial state of a standard connection. The connection stays in the requested state
* until the Letter of Authorization (LOA) is sent to the customer.
*
* pending
: The connection has been approved and is being initialized.
*
* available
: The network link is up and the connection is ready for use.
*
* down
: The network link is down.
*
* deleting
: The connection is being deleted.
*
* deleted
: The connection has been deleted.
*
* rejected
: A hosted connection in the ordering
state enters the rejected
* state if it is deleted by the customer.
*
* unknown
: The state of the connection is not available.
*
* ordering
: The initial state of a hosted connection provisioned on an interconnect. The
* connection stays in the ordering state until the owner of the hosted connection confirms or declines the
* connection order.
*
* requested
: The initial state of a standard connection. The connection stays in the requested
* state until the Letter of Authorization (LOA) is sent to the customer.
*
* pending
: The connection has been approved and is being initialized.
*
* available
: The network link is up and the connection is ready for use.
*
* down
: The network link is down.
*
* deleting
: The connection is being deleted.
*
* deleted
: The connection has been deleted.
*
* rejected
: A hosted connection in the ordering
state enters the
* rejected
state if it is deleted by the customer.
*
* unknown
: The state of the connection is not available.
*
* The state of the connection. The following are the possible values: *
*
* ordering
: The initial state of a hosted connection provisioned on an interconnect. The connection
* stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
*
* requested
: The initial state of a standard connection. The connection stays in the requested state
* until the Letter of Authorization (LOA) is sent to the customer.
*
* pending
: The connection has been approved and is being initialized.
*
* available
: The network link is up and the connection is ready for use.
*
* down
: The network link is down.
*
* deleting
: The connection is being deleted.
*
* deleted
: The connection has been deleted.
*
* rejected
: A hosted connection in the ordering
state enters the rejected
* state if it is deleted by the customer.
*
* unknown
: The state of the connection is not available.
*
* ordering
: The initial state of a hosted connection provisioned on an interconnect. The
* connection stays in the ordering state until the owner of the hosted connection confirms or declines the
* connection order.
*
* requested
: The initial state of a standard connection. The connection stays in the requested
* state until the Letter of Authorization (LOA) is sent to the customer.
*
* pending
: The connection has been approved and is being initialized.
*
* available
: The network link is up and the connection is ready for use.
*
* down
: The network link is down.
*
* deleting
: The connection is being deleted.
*
* deleted
: The connection has been deleted.
*
* rejected
: A hosted connection in the ordering
state enters the
* rejected
state if it is deleted by the customer.
*
* unknown
: The state of the connection is not available.
*
* The state of the connection. The following are the possible values: *
*
* ordering
: The initial state of a hosted connection provisioned on an interconnect. The connection
* stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
*
* requested
: The initial state of a standard connection. The connection stays in the requested state
* until the Letter of Authorization (LOA) is sent to the customer.
*
* pending
: The connection has been approved and is being initialized.
*
* available
: The network link is up and the connection is ready for use.
*
* down
: The network link is down.
*
* deleting
: The connection is being deleted.
*
* deleted
: The connection has been deleted.
*
* rejected
: A hosted connection in the ordering
state enters the rejected
* state if it is deleted by the customer.
*
* unknown
: The state of the connection is not available.
*
* ordering
: The initial state of a hosted connection provisioned on an interconnect. The
* connection stays in the ordering state until the owner of the hosted connection confirms or declines the
* connection order.
*
* requested
: The initial state of a standard connection. The connection stays in the requested
* state until the Letter of Authorization (LOA) is sent to the customer.
*
* pending
: The connection has been approved and is being initialized.
*
* available
: The network link is up and the connection is ready for use.
*
* down
: The network link is down.
*
* deleting
: The connection is being deleted.
*
* deleted
: The connection has been deleted.
*
* rejected
: A hosted connection in the ordering
state enters the
* rejected
state if it is deleted by the customer.
*
* unknown
: The state of the connection is not available.
*
* The Amazon Web Services Region where the connection is located. *
* * @param region * The Amazon Web Services Region where the connection is located. */ public void setRegion(String region) { this.region = region; } /** ** The Amazon Web Services Region where the connection is located. *
* * @return The Amazon Web Services Region where the connection is located. */ public String getRegion() { return this.region; } /** ** The Amazon Web Services Region where the connection is located. *
* * @param region * The Amazon Web Services Region where the connection is located. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withRegion(String region) { setRegion(region); return this; } /** ** The location of the connection. *
* * @param location * The location of the connection. */ public void setLocation(String location) { this.location = location; } /** ** The location of the connection. *
* * @return The location of the connection. */ public String getLocation() { return this.location; } /** ** The location of the connection. *
* * @param location * The location of the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withLocation(String location) { setLocation(location); return this; } /** ** The bandwidth of the connection. *
* * @param bandwidth * The bandwidth of the connection. */ public void setBandwidth(String bandwidth) { this.bandwidth = bandwidth; } /** ** The bandwidth of the connection. *
* * @return The bandwidth of the connection. */ public String getBandwidth() { return this.bandwidth; } /** ** The bandwidth of the connection. *
* * @param bandwidth * The bandwidth of the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withBandwidth(String bandwidth) { setBandwidth(bandwidth); 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 AssociateHostedConnectionResult withVlan(Integer vlan) { setVlan(vlan); return this; } /** ** The name of the Direct Connect service provider associated with the connection. *
* * @param partnerName * The name of the Direct Connect service provider associated with the connection. */ public void setPartnerName(String partnerName) { this.partnerName = partnerName; } /** ** The name of the Direct Connect service provider associated with the connection. *
* * @return The name of the Direct Connect service provider associated with the connection. */ public String getPartnerName() { return this.partnerName; } /** ** The name of the Direct Connect service provider associated with the connection. *
* * @param partnerName * The name of the Direct Connect service provider associated with the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withPartnerName(String partnerName) { setPartnerName(partnerName); return this; } /** ** The time of the most recent call to DescribeLoa for this connection. *
* * @param loaIssueTime * The time of the most recent call to DescribeLoa for this connection. */ public void setLoaIssueTime(java.util.Date loaIssueTime) { this.loaIssueTime = loaIssueTime; } /** ** The time of the most recent call to DescribeLoa for this connection. *
* * @return The time of the most recent call to DescribeLoa for this connection. */ public java.util.Date getLoaIssueTime() { return this.loaIssueTime; } /** ** The time of the most recent call to DescribeLoa for this connection. *
* * @param loaIssueTime * The time of the most recent call to DescribeLoa for this connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withLoaIssueTime(java.util.Date loaIssueTime) { setLoaIssueTime(loaIssueTime); return this; } /** ** The ID of the LAG. *
* * @param lagId * The ID of the LAG. */ public void setLagId(String lagId) { this.lagId = lagId; } /** ** The ID of the LAG. *
* * @return The ID of the LAG. */ public String getLagId() { return this.lagId; } /** ** The ID of the LAG. *
* * @param lagId * The ID of the LAG. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withLagId(String lagId) { setLagId(lagId); return this; } /** ** The Direct Connect endpoint on which the physical connection terminates. *
* * @param awsDevice * The Direct Connect endpoint on which the physical connection terminates. */ public void setAwsDevice(String awsDevice) { this.awsDevice = awsDevice; } /** ** The Direct Connect endpoint on which the physical connection terminates. *
* * @return The Direct Connect endpoint on which the physical connection terminates. */ public String getAwsDevice() { return this.awsDevice; } /** ** The Direct Connect endpoint on which the physical connection terminates. *
* * @param awsDevice * The Direct Connect endpoint on which the physical connection terminates. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withAwsDevice(String awsDevice) { setAwsDevice(awsDevice); return this; } /** ** Indicates whether jumbo frames are supported. *
* * @param jumboFrameCapable * Indicates whether jumbo frames are supported. */ public void setJumboFrameCapable(Boolean jumboFrameCapable) { this.jumboFrameCapable = jumboFrameCapable; } /** ** Indicates whether jumbo frames are supported. *
* * @return Indicates whether jumbo frames are supported. */ public Boolean getJumboFrameCapable() { return this.jumboFrameCapable; } /** ** Indicates whether jumbo frames are supported. *
* * @param jumboFrameCapable * Indicates whether jumbo frames are supported. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withJumboFrameCapable(Boolean jumboFrameCapable) { setJumboFrameCapable(jumboFrameCapable); return this; } /** ** Indicates whether jumbo frames are supported. *
* * @return Indicates whether jumbo frames are supported. */ public Boolean isJumboFrameCapable() { return this.jumboFrameCapable; } /** ** The Direct Connect endpoint that terminates the physical connection. *
* * @param awsDeviceV2 * The Direct Connect endpoint that terminates the physical connection. */ public void setAwsDeviceV2(String awsDeviceV2) { this.awsDeviceV2 = awsDeviceV2; } /** ** The Direct Connect endpoint that terminates the physical connection. *
* * @return The Direct Connect endpoint that terminates the physical connection. */ public String getAwsDeviceV2() { return this.awsDeviceV2; } /** ** The Direct Connect endpoint that terminates the physical connection. *
* * @param awsDeviceV2 * The Direct Connect endpoint that terminates the physical connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withAwsDeviceV2(String awsDeviceV2) { setAwsDeviceV2(awsDeviceV2); return this; } /** ** The Direct Connect endpoint that terminates the logical connection. This device might be different than the * device that terminates the physical connection. *
* * @param awsLogicalDeviceId * The Direct Connect endpoint that terminates the logical connection. This device might be different than * the device that terminates the physical connection. */ public void setAwsLogicalDeviceId(String awsLogicalDeviceId) { this.awsLogicalDeviceId = awsLogicalDeviceId; } /** ** The Direct Connect endpoint that terminates the logical connection. This device might be different than the * device that terminates the physical connection. *
* * @return The Direct Connect endpoint that terminates the logical connection. This device might be different than * the device that terminates the physical connection. */ public String getAwsLogicalDeviceId() { return this.awsLogicalDeviceId; } /** ** The Direct Connect endpoint that terminates the logical connection. This device might be different than the * device that terminates the physical connection. *
* * @param awsLogicalDeviceId * The Direct Connect endpoint that terminates the logical connection. This device might be different than * the device that terminates the physical connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withAwsLogicalDeviceId(String awsLogicalDeviceId) { setAwsLogicalDeviceId(awsLogicalDeviceId); return this; } /** ** Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6). *
* * @param hasLogicalRedundancy * Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6). * @see HasLogicalRedundancy */ public void setHasLogicalRedundancy(String hasLogicalRedundancy) { this.hasLogicalRedundancy = hasLogicalRedundancy; } /** ** Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6). *
* * @return Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6). * @see HasLogicalRedundancy */ public String getHasLogicalRedundancy() { return this.hasLogicalRedundancy; } /** ** Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6). *
* * @param hasLogicalRedundancy * Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6). * @return Returns a reference to this object so that method calls can be chained together. * @see HasLogicalRedundancy */ public AssociateHostedConnectionResult withHasLogicalRedundancy(String hasLogicalRedundancy) { setHasLogicalRedundancy(hasLogicalRedundancy); return this; } /** ** Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6). *
* * @param hasLogicalRedundancy * Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6). * @see HasLogicalRedundancy */ public void setHasLogicalRedundancy(HasLogicalRedundancy hasLogicalRedundancy) { withHasLogicalRedundancy(hasLogicalRedundancy); } /** ** Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6). *
* * @param hasLogicalRedundancy * Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6). * @return Returns a reference to this object so that method calls can be chained together. * @see HasLogicalRedundancy */ public AssociateHostedConnectionResult withHasLogicalRedundancy(HasLogicalRedundancy hasLogicalRedundancy) { this.hasLogicalRedundancy = hasLogicalRedundancy.toString(); return this; } /** ** The tags associated with the connection. *
* * @return The tags associated with the connection. */ public java.util.List* The tags associated with the connection. *
* * @param tags * The tags associated with the connection. */ public void setTags(java.util.Collection* The tags associated with the connection. *
** 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 associated with the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* The tags associated with the connection. *
* * @param tags * The tags associated with the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withTags(java.util.Collection* The name of the service provider associated with the connection. *
* * @param providerName * The name of the service provider associated with the connection. */ public void setProviderName(String providerName) { this.providerName = providerName; } /** ** The name of the service provider associated with the connection. *
* * @return The name of the service provider associated with the connection. */ public String getProviderName() { return this.providerName; } /** ** The name of the service provider associated with the connection. *
* * @param providerName * The name of the service provider associated with the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withProviderName(String providerName) { setProviderName(providerName); return this; } /** ** Indicates whether the connection supports MAC Security (MACsec). *
* * @param macSecCapable * Indicates whether the connection supports MAC Security (MACsec). */ public void setMacSecCapable(Boolean macSecCapable) { this.macSecCapable = macSecCapable; } /** ** Indicates whether the connection supports MAC Security (MACsec). *
* * @return Indicates whether the connection supports MAC Security (MACsec). */ public Boolean getMacSecCapable() { return this.macSecCapable; } /** ** Indicates whether the connection supports MAC Security (MACsec). *
* * @param macSecCapable * Indicates whether the connection supports MAC Security (MACsec). * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withMacSecCapable(Boolean macSecCapable) { setMacSecCapable(macSecCapable); return this; } /** ** Indicates whether the connection supports MAC Security (MACsec). *
* * @return Indicates whether the connection supports MAC Security (MACsec). */ public Boolean isMacSecCapable() { return this.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
.
*
* The valid values are Encryption Up
, which means that there is an active Connection Key Name,
* or Encryption Down
.
*/
public void setPortEncryptionStatus(String portEncryptionStatus) {
this.portEncryptionStatus = portEncryptionStatus;
}
/**
*
* 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
.
*
* The valid values are Encryption Up
, which means that there is an active Connection Key Name,
* or Encryption Down
.
*/
public String getPortEncryptionStatus() {
return this.portEncryptionStatus;
}
/**
*
* 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
.
*
* The valid values are Encryption Up
, which means that there is an active Connection Key Name,
* or Encryption Down
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssociateHostedConnectionResult withPortEncryptionStatus(String portEncryptionStatus) {
setPortEncryptionStatus(portEncryptionStatus);
return this;
}
/**
*
* The MAC Security (MACsec) connection encryption mode. *
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
*/
public void setEncryptionMode(String encryptionMode) {
this.encryptionMode = encryptionMode;
}
/**
*
* The MAC Security (MACsec) connection encryption mode. *
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
*/
public String getEncryptionMode() {
return this.encryptionMode;
}
/**
*
* The MAC Security (MACsec) connection encryption mode. *
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssociateHostedConnectionResult withEncryptionMode(String encryptionMode) {
setEncryptionMode(encryptionMode);
return this;
}
/**
*
* The MAC Security (MACsec) security keys associated with the connection. *
* * @return The MAC Security (MACsec) security keys associated with the connection. */ public java.util.List* The MAC Security (MACsec) security keys associated with the connection. *
* * @param macSecKeys * The MAC Security (MACsec) security keys associated with the connection. */ public void setMacSecKeys(java.util.Collection* The MAC Security (MACsec) security keys associated with the connection. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMacSecKeys(java.util.Collection)} or {@link #withMacSecKeys(java.util.Collection)} if you want to * override the existing values. *
* * @param macSecKeys * The MAC Security (MACsec) security keys associated with the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withMacSecKeys(MacSecKey... macSecKeys) { if (this.macSecKeys == null) { setMacSecKeys(new com.amazonaws.internal.SdkInternalList* The MAC Security (MACsec) security keys associated with the connection. *
* * @param macSecKeys * The MAC Security (MACsec) security keys associated with the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateHostedConnectionResult withMacSecKeys(java.util.Collection