All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.directconnect.model.CreateConnectionRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Direct Connect module holds the client classes that are used for communicating with AWS Direct Connect Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The location of the connection. *

*/ private String location; /** *

* The bandwidth of the connection. *

*/ private String bandwidth; /** *

* The name of the connection. *

*/ private String connectionName; /** *

* The ID of the LAG. *

*/ private String lagId; /** *

* The tags to associate with the lag. *

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

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

*/ private String providerName; /** *

* Indicates whether you want the connection to support MAC Security (MACsec). *

*

* MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security (MACsec) * prerequisties, see MACsec prerequisties in the Direct Connect User Guide. *

*/ private Boolean requestMACSec; /** *

* 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 CreateConnectionRequest 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 CreateConnectionRequest withBandwidth(String bandwidth) { setBandwidth(bandwidth); 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 CreateConnectionRequest withConnectionName(String connectionName) { setConnectionName(connectionName); 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 CreateConnectionRequest withLagId(String lagId) { setLagId(lagId); return this; } /** *

* The tags to associate with the lag. *

* * @return The tags to associate with the lag. */ public java.util.List getTags() { if (tags == null) { tags = new com.amazonaws.internal.SdkInternalList(); } return tags; } /** *

* The tags to associate with the lag. *

* * @param tags * The tags to associate with the lag. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new com.amazonaws.internal.SdkInternalList(tags); } /** *

* The tags to associate with the lag. *

*

* 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 to associate with the lag. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionRequest 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 to associate with the lag. *

* * @param tags * The tags to associate with the lag. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

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

* * @param providerName * The name of the service provider associated with the requested connection. */ public void setProviderName(String providerName) { this.providerName = providerName; } /** *

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

* * @return The name of the service provider associated with the requested connection. */ public String getProviderName() { return this.providerName; } /** *

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

* * @param providerName * The name of the service provider associated with the requested connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionRequest withProviderName(String providerName) { setProviderName(providerName); return this; } /** *

* Indicates whether you want the connection to support MAC Security (MACsec). *

*

* MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security (MACsec) * prerequisties, see MACsec prerequisties in the Direct Connect User Guide. *

* * @param requestMACSec * Indicates whether you want the connection to support MAC Security (MACsec).

*

* MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security * (MACsec) prerequisties, see MACsec prerequisties in the Direct Connect User Guide. */ public void setRequestMACSec(Boolean requestMACSec) { this.requestMACSec = requestMACSec; } /** *

* Indicates whether you want the connection to support MAC Security (MACsec). *

*

* MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security (MACsec) * prerequisties, see MACsec prerequisties in the Direct Connect User Guide. *

* * @return Indicates whether you want the connection to support MAC Security (MACsec).

*

* MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security * (MACsec) prerequisties, see MACsec prerequisties in the Direct Connect User Guide. */ public Boolean getRequestMACSec() { return this.requestMACSec; } /** *

* Indicates whether you want the connection to support MAC Security (MACsec). *

*

* MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security (MACsec) * prerequisties, see MACsec prerequisties in the Direct Connect User Guide. *

* * @param requestMACSec * Indicates whether you want the connection to support MAC Security (MACsec).

*

* MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security * (MACsec) prerequisties, see MACsec prerequisties in the Direct Connect User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionRequest withRequestMACSec(Boolean requestMACSec) { setRequestMACSec(requestMACSec); return this; } /** *

* Indicates whether you want the connection to support MAC Security (MACsec). *

*

* MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security (MACsec) * prerequisties, see MACsec prerequisties in the Direct Connect User Guide. *

* * @return Indicates whether you want the connection to support MAC Security (MACsec).

*

* MAC Security (MACsec) is only available on dedicated connections. For information about MAC Security * (MACsec) prerequisties, see MACsec prerequisties in the Direct Connect User Guide. */ public Boolean isRequestMACSec() { return this.requestMACSec; } /** * 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 (getLocation() != null) sb.append("Location: ").append(getLocation()).append(","); if (getBandwidth() != null) sb.append("Bandwidth: ").append(getBandwidth()).append(","); if (getConnectionName() != null) sb.append("ConnectionName: ").append(getConnectionName()).append(","); if (getLagId() != null) sb.append("LagId: ").append(getLagId()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getProviderName() != null) sb.append("ProviderName: ").append(getProviderName()).append(","); if (getRequestMACSec() != null) sb.append("RequestMACSec: ").append(getRequestMACSec()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateConnectionRequest == false) return false; CreateConnectionRequest other = (CreateConnectionRequest) obj; 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.getConnectionName() == null ^ this.getConnectionName() == null) return false; if (other.getConnectionName() != null && other.getConnectionName().equals(this.getConnectionName()) == 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.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.getRequestMACSec() == null ^ this.getRequestMACSec() == null) return false; if (other.getRequestMACSec() != null && other.getRequestMACSec().equals(this.getRequestMACSec()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); hashCode = prime * hashCode + ((getBandwidth() == null) ? 0 : getBandwidth().hashCode()); hashCode = prime * hashCode + ((getConnectionName() == null) ? 0 : getConnectionName().hashCode()); hashCode = prime * hashCode + ((getLagId() == null) ? 0 : getLagId().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getProviderName() == null) ? 0 : getProviderName().hashCode()); hashCode = prime * hashCode + ((getRequestMACSec() == null) ? 0 : getRequestMACSec().hashCode()); return hashCode; } @Override public CreateConnectionRequest clone() { return (CreateConnectionRequest) super.clone(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy