com.amazonaws.services.directconnect.model.DisassociateConnectionFromLagResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-directconnect Show documentation
/*
* Copyright 2015-2020 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 AWS Direct Connect connection.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DisassociateConnectionFromLagResult extends com.amazonaws.AmazonWebServiceResult implements Serializable,
Cloneable {
/**
*
* The ID of the AWS 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 AWS 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 AWS 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 on which the physical connection terminates.
*
*/
private String awsDeviceV2;
/**
*
* 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;
/**
*
* The ID of the AWS account that owns the connection.
*
*
* @param ownerAccount
* The ID of the AWS account that owns the connection.
*/
public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
}
/**
*
* The ID of the AWS account that owns the connection.
*
*
* @return The ID of the AWS account that owns the connection.
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
*
* The ID of the AWS account that owns the connection.
*
*
* @param ownerAccount
* The ID of the AWS account that owns the connection.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult withConnectionState(ConnectionState connectionState) {
this.connectionState = connectionState.toString();
return this;
}
/**
*
* The AWS Region where the connection is located.
*
*
* @param region
* The AWS Region where the connection is located.
*/
public void setRegion(String region) {
this.region = region;
}
/**
*
* The AWS Region where the connection is located.
*
*
* @return The AWS Region where the connection is located.
*/
public String getRegion() {
return this.region;
}
/**
*
* The AWS Region where the connection is located.
*
*
* @param region
* The AWS Region where the connection is located.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult withVlan(Integer vlan) {
setVlan(vlan);
return this;
}
/**
*
* The name of the AWS Direct Connect service provider associated with the connection.
*
*
* @param partnerName
* The name of the AWS Direct Connect service provider associated with the connection.
*/
public void setPartnerName(String partnerName) {
this.partnerName = partnerName;
}
/**
*
* The name of the AWS Direct Connect service provider associated with the connection.
*
*
* @return The name of the AWS Direct Connect service provider associated with the connection.
*/
public String getPartnerName() {
return this.partnerName;
}
/**
*
* The name of the AWS Direct Connect service provider associated with the connection.
*
*
* @param partnerName
* The name of the AWS Direct Connect service provider associated with the connection.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult 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 on which the physical connection terminates.
*
*
* @param awsDeviceV2
* The Direct Connect endpoint on which the physical connection terminates.
*/
public void setAwsDeviceV2(String awsDeviceV2) {
this.awsDeviceV2 = awsDeviceV2;
}
/**
*
* The Direct Connect endpoint on which the physical connection terminates.
*
*
* @return The Direct Connect endpoint on which the physical connection terminates.
*/
public String getAwsDeviceV2() {
return this.awsDeviceV2;
}
/**
*
* The Direct Connect endpoint on which the physical connection terminates.
*
*
* @param awsDeviceV2
* 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 DisassociateConnectionFromLagResult withAwsDeviceV2(String awsDeviceV2) {
setAwsDeviceV2(awsDeviceV2);
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 DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult 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 DisassociateConnectionFromLagResult withProviderName(String providerName) {
setProviderName(providerName);
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 (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());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DisassociateConnectionFromLagResult == false)
return false;
DisassociateConnectionFromLagResult other = (DisassociateConnectionFromLagResult) 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.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;
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 + ((getHasLogicalRedundancy() == null) ? 0 : getHasLogicalRedundancy().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getProviderName() == null) ? 0 : getProviderName().hashCode());
return hashCode;
}
@Override
public DisassociateConnectionFromLagResult clone() {
try {
return (DisassociateConnectionFromLagResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}