com.amazonaws.services.directconnect.model.CreateConnectionResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-directconnect Show documentation
/*
* Copyright 2017-2022 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 CreateConnectionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* 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.
*
*
*
*/
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 (9001 MTU) 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 CreateConnectionResult 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 CreateConnectionResult 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 CreateConnectionResult 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.
*
*
*
*
* @param connectionState
* 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.
*
*
* @see ConnectionState
*/
public void setConnectionState(String connectionState) {
this.connectionState = connectionState;
}
/**
*
* 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.
*
*
*
*
* @return 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.
*
*
* @see ConnectionState
*/
public String getConnectionState() {
return this.connectionState;
}
/**
*
* 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.
*
*
*
*
* @param connectionState
* 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.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectionState
*/
public CreateConnectionResult withConnectionState(String connectionState) {
setConnectionState(connectionState);
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.
*
*
*
*
* @param connectionState
* 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.
*
*
* @see ConnectionState
*/
public void setConnectionState(ConnectionState connectionState) {
withConnectionState(connectionState);
}
/**
*
* 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.
*
*
*
*
* @param connectionState
* 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.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectionState
*/
public CreateConnectionResult withConnectionState(ConnectionState connectionState) {
this.connectionState = connectionState.toString();
return this;
}
/**
*
* 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 CreateConnectionResult 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 CreateConnectionResult 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 CreateConnectionResult 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 CreateConnectionResult 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 CreateConnectionResult 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 CreateConnectionResult 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 CreateConnectionResult 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 CreateConnectionResult withAwsDevice(String awsDevice) {
setAwsDevice(awsDevice);
return this;
}
/**
*
* Indicates whether jumbo frames (9001 MTU) are supported.
*
*
* @param jumboFrameCapable
* Indicates whether jumbo frames (9001 MTU) are supported.
*/
public void setJumboFrameCapable(Boolean jumboFrameCapable) {
this.jumboFrameCapable = jumboFrameCapable;
}
/**
*
* Indicates whether jumbo frames (9001 MTU) are supported.
*
*
* @return Indicates whether jumbo frames (9001 MTU) are supported.
*/
public Boolean getJumboFrameCapable() {
return this.jumboFrameCapable;
}
/**
*
* Indicates whether jumbo frames (9001 MTU) are supported.
*
*
* @param jumboFrameCapable
* Indicates whether jumbo frames (9001 MTU) are supported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConnectionResult withJumboFrameCapable(Boolean jumboFrameCapable) {
setJumboFrameCapable(jumboFrameCapable);
return this;
}
/**
*
* Indicates whether jumbo frames (9001 MTU) are supported.
*
*
* @return Indicates whether jumbo frames (9001 MTU) 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 CreateConnectionResult 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 CreateConnectionResult 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 CreateConnectionResult 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 CreateConnectionResult 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 getTags() {
if (tags == null) {
tags = new com.amazonaws.internal.SdkInternalList();
}
return tags;
}
/**
*
* The tags associated with the connection.
*
*
* @param tags
* The tags associated with the connection.
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new com.amazonaws.internal.SdkInternalList(tags);
}
/**
*
* 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 CreateConnectionResult withTags(Tag... tags) {
if (this.tags == null) {
setTags(new com.amazonaws.internal.SdkInternalList(tags.length));
}
for (Tag ele : tags) {
this.tags.add(ele);
}
return this;
}
/**
*
* 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 CreateConnectionResult withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
*
* 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 CreateConnectionResult 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 CreateConnectionResult 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
.
*
*
* @param 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
.
*/
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
.
*
*
* @return 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
.
*/
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
.
*
*
* @param 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
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConnectionResult 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
.
*
*
* @param encryptionMode
* The MAC Security (MACsec) connection encryption mode.
*
* 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
.
*
*
* @return The MAC Security (MACsec) connection encryption mode.
*
* 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
.
*
*
* @param encryptionMode
* The MAC Security (MACsec) connection encryption mode.
*
* 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 CreateConnectionResult 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 getMacSecKeys() {
if (macSecKeys == null) {
macSecKeys = new com.amazonaws.internal.SdkInternalList();
}
return macSecKeys;
}
/**
*
* 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 macSecKeys) {
if (macSecKeys == null) {
this.macSecKeys = null;
return;
}
this.macSecKeys = new com.amazonaws.internal.SdkInternalList(macSecKeys);
}
/**
*
* 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 CreateConnectionResult withMacSecKeys(MacSecKey... macSecKeys) {
if (this.macSecKeys == null) {
setMacSecKeys(new com.amazonaws.internal.SdkInternalList(macSecKeys.length));
}
for (MacSecKey ele : macSecKeys) {
this.macSecKeys.add(ele);
}
return this;
}
/**
*
* 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 CreateConnectionResult withMacSecKeys(java.util.Collection macSecKeys) {
setMacSecKeys(macSecKeys);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getOwnerAccount() != null)
sb.append("OwnerAccount: ").append(getOwnerAccount()).append(",");
if (getConnectionId() != null)
sb.append("ConnectionId: ").append(getConnectionId()).append(",");
if (getConnectionName() != null)
sb.append("ConnectionName: ").append(getConnectionName()).append(",");
if (getConnectionState() != null)
sb.append("ConnectionState: ").append(getConnectionState()).append(",");
if (getRegion() != null)
sb.append("Region: ").append(getRegion()).append(",");
if (getLocation() != null)
sb.append("Location: ").append(getLocation()).append(",");
if (getBandwidth() != null)
sb.append("Bandwidth: ").append(getBandwidth()).append(",");
if (getVlan() != null)
sb.append("Vlan: ").append(getVlan()).append(",");
if (getPartnerName() != null)
sb.append("PartnerName: ").append(getPartnerName()).append(",");
if (getLoaIssueTime() != null)
sb.append("LoaIssueTime: ").append(getLoaIssueTime()).append(",");
if (getLagId() != null)
sb.append("LagId: ").append(getLagId()).append(",");
if (getAwsDevice() != null)
sb.append("AwsDevice: ").append(getAwsDevice()).append(",");
if (getJumboFrameCapable() != null)
sb.append("JumboFrameCapable: ").append(getJumboFrameCapable()).append(",");
if (getAwsDeviceV2() != null)
sb.append("AwsDeviceV2: ").append(getAwsDeviceV2()).append(",");
if (getAwsLogicalDeviceId() != null)
sb.append("AwsLogicalDeviceId: ").append(getAwsLogicalDeviceId()).append(",");
if (getHasLogicalRedundancy() != null)
sb.append("HasLogicalRedundancy: ").append(getHasLogicalRedundancy()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getProviderName() != null)
sb.append("ProviderName: ").append(getProviderName()).append(",");
if (getMacSecCapable() != null)
sb.append("MacSecCapable: ").append(getMacSecCapable()).append(",");
if (getPortEncryptionStatus() != null)
sb.append("PortEncryptionStatus: ").append(getPortEncryptionStatus()).append(",");
if (getEncryptionMode() != null)
sb.append("EncryptionMode: ").append(getEncryptionMode()).append(",");
if (getMacSecKeys() != null)
sb.append("MacSecKeys: ").append(getMacSecKeys());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateConnectionResult == false)
return false;
CreateConnectionResult other = (CreateConnectionResult) obj;
if (other.getOwnerAccount() == null ^ this.getOwnerAccount() == null)
return false;
if (other.getOwnerAccount() != null && other.getOwnerAccount().equals(this.getOwnerAccount()) == false)
return false;
if (other.getConnectionId() == null ^ this.getConnectionId() == null)
return false;
if (other.getConnectionId() != null && other.getConnectionId().equals(this.getConnectionId()) == false)
return false;
if (other.getConnectionName() == null ^ this.getConnectionName() == null)
return false;
if (other.getConnectionName() != null && other.getConnectionName().equals(this.getConnectionName()) == false)
return false;
if (other.getConnectionState() == null ^ this.getConnectionState() == null)
return false;
if (other.getConnectionState() != null && other.getConnectionState().equals(this.getConnectionState()) == false)
return false;
if (other.getRegion() == null ^ this.getRegion() == null)
return false;
if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false)
return false;
if (other.getLocation() == null ^ this.getLocation() == null)
return false;
if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == false)
return false;
if (other.getBandwidth() == null ^ this.getBandwidth() == null)
return false;
if (other.getBandwidth() != null && other.getBandwidth().equals(this.getBandwidth()) == false)
return false;
if (other.getVlan() == null ^ this.getVlan() == null)
return false;
if (other.getVlan() != null && other.getVlan().equals(this.getVlan()) == false)
return false;
if (other.getPartnerName() == null ^ this.getPartnerName() == null)
return false;
if (other.getPartnerName() != null && other.getPartnerName().equals(this.getPartnerName()) == false)
return false;
if (other.getLoaIssueTime() == null ^ this.getLoaIssueTime() == null)
return false;
if (other.getLoaIssueTime() != null && other.getLoaIssueTime().equals(this.getLoaIssueTime()) == false)
return false;
if (other.getLagId() == null ^ this.getLagId() == null)
return false;
if (other.getLagId() != null && other.getLagId().equals(this.getLagId()) == false)
return false;
if (other.getAwsDevice() == null ^ this.getAwsDevice() == null)
return false;
if (other.getAwsDevice() != null && other.getAwsDevice().equals(this.getAwsDevice()) == false)
return false;
if (other.getJumboFrameCapable() == null ^ this.getJumboFrameCapable() == null)
return false;
if (other.getJumboFrameCapable() != null && other.getJumboFrameCapable().equals(this.getJumboFrameCapable()) == false)
return false;
if (other.getAwsDeviceV2() == null ^ this.getAwsDeviceV2() == null)
return false;
if (other.getAwsDeviceV2() != null && other.getAwsDeviceV2().equals(this.getAwsDeviceV2()) == false)
return false;
if (other.getAwsLogicalDeviceId() == null ^ this.getAwsLogicalDeviceId() == null)
return false;
if (other.getAwsLogicalDeviceId() != null && other.getAwsLogicalDeviceId().equals(this.getAwsLogicalDeviceId()) == false)
return false;
if (other.getHasLogicalRedundancy() == null ^ this.getHasLogicalRedundancy() == null)
return false;
if (other.getHasLogicalRedundancy() != null && other.getHasLogicalRedundancy().equals(this.getHasLogicalRedundancy()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getProviderName() == null ^ this.getProviderName() == null)
return false;
if (other.getProviderName() != null && other.getProviderName().equals(this.getProviderName()) == false)
return false;
if (other.getMacSecCapable() == null ^ this.getMacSecCapable() == null)
return false;
if (other.getMacSecCapable() != null && other.getMacSecCapable().equals(this.getMacSecCapable()) == false)
return false;
if (other.getPortEncryptionStatus() == null ^ this.getPortEncryptionStatus() == null)
return false;
if (other.getPortEncryptionStatus() != null && other.getPortEncryptionStatus().equals(this.getPortEncryptionStatus()) == false)
return false;
if (other.getEncryptionMode() == null ^ this.getEncryptionMode() == null)
return false;
if (other.getEncryptionMode() != null && other.getEncryptionMode().equals(this.getEncryptionMode()) == false)
return false;
if (other.getMacSecKeys() == null ^ this.getMacSecKeys() == null)
return false;
if (other.getMacSecKeys() != null && other.getMacSecKeys().equals(this.getMacSecKeys()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getOwnerAccount() == null) ? 0 : getOwnerAccount().hashCode());
hashCode = prime * hashCode + ((getConnectionId() == null) ? 0 : getConnectionId().hashCode());
hashCode = prime * hashCode + ((getConnectionName() == null) ? 0 : getConnectionName().hashCode());
hashCode = prime * hashCode + ((getConnectionState() == null) ? 0 : getConnectionState().hashCode());
hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode());
hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode());
hashCode = prime * hashCode + ((getBandwidth() == null) ? 0 : getBandwidth().hashCode());
hashCode = prime * hashCode + ((getVlan() == null) ? 0 : getVlan().hashCode());
hashCode = prime * hashCode + ((getPartnerName() == null) ? 0 : getPartnerName().hashCode());
hashCode = prime * hashCode + ((getLoaIssueTime() == null) ? 0 : getLoaIssueTime().hashCode());
hashCode = prime * hashCode + ((getLagId() == null) ? 0 : getLagId().hashCode());
hashCode = prime * hashCode + ((getAwsDevice() == null) ? 0 : getAwsDevice().hashCode());
hashCode = prime * hashCode + ((getJumboFrameCapable() == null) ? 0 : getJumboFrameCapable().hashCode());
hashCode = prime * hashCode + ((getAwsDeviceV2() == null) ? 0 : getAwsDeviceV2().hashCode());
hashCode = prime * hashCode + ((getAwsLogicalDeviceId() == null) ? 0 : getAwsLogicalDeviceId().hashCode());
hashCode = prime * hashCode + ((getHasLogicalRedundancy() == null) ? 0 : getHasLogicalRedundancy().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getProviderName() == null) ? 0 : getProviderName().hashCode());
hashCode = prime * hashCode + ((getMacSecCapable() == null) ? 0 : getMacSecCapable().hashCode());
hashCode = prime * hashCode + ((getPortEncryptionStatus() == null) ? 0 : getPortEncryptionStatus().hashCode());
hashCode = prime * hashCode + ((getEncryptionMode() == null) ? 0 : getEncryptionMode().hashCode());
hashCode = prime * hashCode + ((getMacSecKeys() == null) ? 0 : getMacSecKeys().hashCode());
return hashCode;
}
@Override
public CreateConnectionResult clone() {
try {
return (CreateConnectionResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}