com.amazonaws.services.directconnect.model.CreateInterconnectResult 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 interconnect.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateInterconnectResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The ID of the interconnect.
*
*/
private String interconnectId;
/**
*
* The name of the interconnect.
*
*/
private String interconnectName;
/**
*
* The state of the interconnect. The following are the possible values:
*
*
* -
*
* requested
: The initial state of an interconnect. The interconnect stays in the requested state until
* the Letter of Authorization (LOA) is sent to the customer.
*
*
* -
*
* pending
: The interconnect is approved, and is being initialized.
*
*
* -
*
* available
: The network link is up, and the interconnect is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The interconnect is being deleted.
*
*
* -
*
* deleted
: The interconnect is deleted.
*
*
* -
*
* unknown
: The state of the interconnect is not available.
*
*
*
*/
private String interconnectState;
/**
*
* 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 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 interconnect supports a secondary BGP in the same address family (IPv4/IPv6).
*
*/
private String hasLogicalRedundancy;
/**
*
* The tags associated with the interconnect.
*
*/
private com.amazonaws.internal.SdkInternalList tags;
/**
*
* The name of the service provider associated with the interconnect.
*
*/
private String providerName;
/**
*
* The ID of the interconnect.
*
*
* @param interconnectId
* The ID of the interconnect.
*/
public void setInterconnectId(String interconnectId) {
this.interconnectId = interconnectId;
}
/**
*
* The ID of the interconnect.
*
*
* @return The ID of the interconnect.
*/
public String getInterconnectId() {
return this.interconnectId;
}
/**
*
* The ID of the interconnect.
*
*
* @param interconnectId
* The ID of the interconnect.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInterconnectResult withInterconnectId(String interconnectId) {
setInterconnectId(interconnectId);
return this;
}
/**
*
* The name of the interconnect.
*
*
* @param interconnectName
* The name of the interconnect.
*/
public void setInterconnectName(String interconnectName) {
this.interconnectName = interconnectName;
}
/**
*
* The name of the interconnect.
*
*
* @return The name of the interconnect.
*/
public String getInterconnectName() {
return this.interconnectName;
}
/**
*
* The name of the interconnect.
*
*
* @param interconnectName
* The name of the interconnect.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInterconnectResult withInterconnectName(String interconnectName) {
setInterconnectName(interconnectName);
return this;
}
/**
*
* The state of the interconnect. The following are the possible values:
*
*
* -
*
* requested
: The initial state of an interconnect. The interconnect stays in the requested state until
* the Letter of Authorization (LOA) is sent to the customer.
*
*
* -
*
* pending
: The interconnect is approved, and is being initialized.
*
*
* -
*
* available
: The network link is up, and the interconnect is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The interconnect is being deleted.
*
*
* -
*
* deleted
: The interconnect is deleted.
*
*
* -
*
* unknown
: The state of the interconnect is not available.
*
*
*
*
* @param interconnectState
* The state of the interconnect. The following are the possible values:
*
* -
*
* requested
: The initial state of an interconnect. The interconnect stays in the requested
* state until the Letter of Authorization (LOA) is sent to the customer.
*
*
* -
*
* pending
: The interconnect is approved, and is being initialized.
*
*
* -
*
* available
: The network link is up, and the interconnect is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The interconnect is being deleted.
*
*
* -
*
* deleted
: The interconnect is deleted.
*
*
* -
*
* unknown
: The state of the interconnect is not available.
*
*
* @see InterconnectState
*/
public void setInterconnectState(String interconnectState) {
this.interconnectState = interconnectState;
}
/**
*
* The state of the interconnect. The following are the possible values:
*
*
* -
*
* requested
: The initial state of an interconnect. The interconnect stays in the requested state until
* the Letter of Authorization (LOA) is sent to the customer.
*
*
* -
*
* pending
: The interconnect is approved, and is being initialized.
*
*
* -
*
* available
: The network link is up, and the interconnect is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The interconnect is being deleted.
*
*
* -
*
* deleted
: The interconnect is deleted.
*
*
* -
*
* unknown
: The state of the interconnect is not available.
*
*
*
*
* @return The state of the interconnect. The following are the possible values:
*
* -
*
* requested
: The initial state of an interconnect. The interconnect stays in the requested
* state until the Letter of Authorization (LOA) is sent to the customer.
*
*
* -
*
* pending
: The interconnect is approved, and is being initialized.
*
*
* -
*
* available
: The network link is up, and the interconnect is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The interconnect is being deleted.
*
*
* -
*
* deleted
: The interconnect is deleted.
*
*
* -
*
* unknown
: The state of the interconnect is not available.
*
*
* @see InterconnectState
*/
public String getInterconnectState() {
return this.interconnectState;
}
/**
*
* The state of the interconnect. The following are the possible values:
*
*
* -
*
* requested
: The initial state of an interconnect. The interconnect stays in the requested state until
* the Letter of Authorization (LOA) is sent to the customer.
*
*
* -
*
* pending
: The interconnect is approved, and is being initialized.
*
*
* -
*
* available
: The network link is up, and the interconnect is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The interconnect is being deleted.
*
*
* -
*
* deleted
: The interconnect is deleted.
*
*
* -
*
* unknown
: The state of the interconnect is not available.
*
*
*
*
* @param interconnectState
* The state of the interconnect. The following are the possible values:
*
* -
*
* requested
: The initial state of an interconnect. The interconnect stays in the requested
* state until the Letter of Authorization (LOA) is sent to the customer.
*
*
* -
*
* pending
: The interconnect is approved, and is being initialized.
*
*
* -
*
* available
: The network link is up, and the interconnect is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The interconnect is being deleted.
*
*
* -
*
* deleted
: The interconnect is deleted.
*
*
* -
*
* unknown
: The state of the interconnect is not available.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see InterconnectState
*/
public CreateInterconnectResult withInterconnectState(String interconnectState) {
setInterconnectState(interconnectState);
return this;
}
/**
*
* The state of the interconnect. The following are the possible values:
*
*
* -
*
* requested
: The initial state of an interconnect. The interconnect stays in the requested state until
* the Letter of Authorization (LOA) is sent to the customer.
*
*
* -
*
* pending
: The interconnect is approved, and is being initialized.
*
*
* -
*
* available
: The network link is up, and the interconnect is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The interconnect is being deleted.
*
*
* -
*
* deleted
: The interconnect is deleted.
*
*
* -
*
* unknown
: The state of the interconnect is not available.
*
*
*
*
* @param interconnectState
* The state of the interconnect. The following are the possible values:
*
* -
*
* requested
: The initial state of an interconnect. The interconnect stays in the requested
* state until the Letter of Authorization (LOA) is sent to the customer.
*
*
* -
*
* pending
: The interconnect is approved, and is being initialized.
*
*
* -
*
* available
: The network link is up, and the interconnect is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The interconnect is being deleted.
*
*
* -
*
* deleted
: The interconnect is deleted.
*
*
* -
*
* unknown
: The state of the interconnect is not available.
*
*
* @see InterconnectState
*/
public void setInterconnectState(InterconnectState interconnectState) {
withInterconnectState(interconnectState);
}
/**
*
* The state of the interconnect. The following are the possible values:
*
*
* -
*
* requested
: The initial state of an interconnect. The interconnect stays in the requested state until
* the Letter of Authorization (LOA) is sent to the customer.
*
*
* -
*
* pending
: The interconnect is approved, and is being initialized.
*
*
* -
*
* available
: The network link is up, and the interconnect is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The interconnect is being deleted.
*
*
* -
*
* deleted
: The interconnect is deleted.
*
*
* -
*
* unknown
: The state of the interconnect is not available.
*
*
*
*
* @param interconnectState
* The state of the interconnect. The following are the possible values:
*
* -
*
* requested
: The initial state of an interconnect. The interconnect stays in the requested
* state until the Letter of Authorization (LOA) is sent to the customer.
*
*
* -
*
* pending
: The interconnect is approved, and is being initialized.
*
*
* -
*
* available
: The network link is up, and the interconnect is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The interconnect is being deleted.
*
*
* -
*
* deleted
: The interconnect is deleted.
*
*
* -
*
* unknown
: The state of the interconnect is not available.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see InterconnectState
*/
public CreateInterconnectResult withInterconnectState(InterconnectState interconnectState) {
this.interconnectState = interconnectState.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 CreateInterconnectResult 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 CreateInterconnectResult 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 CreateInterconnectResult withBandwidth(String bandwidth) {
setBandwidth(bandwidth);
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 CreateInterconnectResult 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 CreateInterconnectResult 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 CreateInterconnectResult 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 CreateInterconnectResult 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 CreateInterconnectResult 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 CreateInterconnectResult withAwsLogicalDeviceId(String awsLogicalDeviceId) {
setAwsLogicalDeviceId(awsLogicalDeviceId);
return this;
}
/**
*
* Indicates whether the interconnect supports a secondary BGP in the same address family (IPv4/IPv6).
*
*
* @param hasLogicalRedundancy
* Indicates whether the interconnect supports a secondary BGP in the same address family (IPv4/IPv6).
* @see HasLogicalRedundancy
*/
public void setHasLogicalRedundancy(String hasLogicalRedundancy) {
this.hasLogicalRedundancy = hasLogicalRedundancy;
}
/**
*
* Indicates whether the interconnect supports a secondary BGP in the same address family (IPv4/IPv6).
*
*
* @return Indicates whether the interconnect supports a secondary BGP in the same address family (IPv4/IPv6).
* @see HasLogicalRedundancy
*/
public String getHasLogicalRedundancy() {
return this.hasLogicalRedundancy;
}
/**
*
* Indicates whether the interconnect supports a secondary BGP in the same address family (IPv4/IPv6).
*
*
* @param hasLogicalRedundancy
* Indicates whether the interconnect supports a secondary BGP 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 CreateInterconnectResult withHasLogicalRedundancy(String hasLogicalRedundancy) {
setHasLogicalRedundancy(hasLogicalRedundancy);
return this;
}
/**
*
* Indicates whether the interconnect supports a secondary BGP in the same address family (IPv4/IPv6).
*
*
* @param hasLogicalRedundancy
* Indicates whether the interconnect supports a secondary BGP in the same address family (IPv4/IPv6).
* @see HasLogicalRedundancy
*/
public void setHasLogicalRedundancy(HasLogicalRedundancy hasLogicalRedundancy) {
withHasLogicalRedundancy(hasLogicalRedundancy);
}
/**
*
* Indicates whether the interconnect supports a secondary BGP in the same address family (IPv4/IPv6).
*
*
* @param hasLogicalRedundancy
* Indicates whether the interconnect supports a secondary BGP 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 CreateInterconnectResult withHasLogicalRedundancy(HasLogicalRedundancy hasLogicalRedundancy) {
this.hasLogicalRedundancy = hasLogicalRedundancy.toString();
return this;
}
/**
*
* The tags associated with the interconnect.
*
*
* @return The tags associated with the interconnect.
*/
public java.util.List getTags() {
if (tags == null) {
tags = new com.amazonaws.internal.SdkInternalList();
}
return tags;
}
/**
*
* The tags associated with the interconnect.
*
*
* @param tags
* The tags associated with the interconnect.
*/
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 interconnect.
*
*
* 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 interconnect.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInterconnectResult 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 interconnect.
*
*
* @param tags
* The tags associated with the interconnect.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInterconnectResult withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
*
* The name of the service provider associated with the interconnect.
*
*
* @param providerName
* The name of the service provider associated with the interconnect.
*/
public void setProviderName(String providerName) {
this.providerName = providerName;
}
/**
*
* The name of the service provider associated with the interconnect.
*
*
* @return The name of the service provider associated with the interconnect.
*/
public String getProviderName() {
return this.providerName;
}
/**
*
* The name of the service provider associated with the interconnect.
*
*
* @param providerName
* The name of the service provider associated with the interconnect.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateInterconnectResult 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 (getInterconnectId() != null)
sb.append("InterconnectId: ").append(getInterconnectId()).append(",");
if (getInterconnectName() != null)
sb.append("InterconnectName: ").append(getInterconnectName()).append(",");
if (getInterconnectState() != null)
sb.append("InterconnectState: ").append(getInterconnectState()).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 (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());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateInterconnectResult == false)
return false;
CreateInterconnectResult other = (CreateInterconnectResult) obj;
if (other.getInterconnectId() == null ^ this.getInterconnectId() == null)
return false;
if (other.getInterconnectId() != null && other.getInterconnectId().equals(this.getInterconnectId()) == false)
return false;
if (other.getInterconnectName() == null ^ this.getInterconnectName() == null)
return false;
if (other.getInterconnectName() != null && other.getInterconnectName().equals(this.getInterconnectName()) == false)
return false;
if (other.getInterconnectState() == null ^ this.getInterconnectState() == null)
return false;
if (other.getInterconnectState() != null && other.getInterconnectState().equals(this.getInterconnectState()) == 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.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;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getInterconnectId() == null) ? 0 : getInterconnectId().hashCode());
hashCode = prime * hashCode + ((getInterconnectName() == null) ? 0 : getInterconnectName().hashCode());
hashCode = prime * hashCode + ((getInterconnectState() == null) ? 0 : getInterconnectState().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 + ((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());
return hashCode;
}
@Override
public CreateInterconnectResult clone() {
try {
return (CreateInterconnectResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}