/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.directconnect.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about an Direct Connect location. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Location implements Serializable, Cloneable, StructuredPojo { /** ** The code for the location. *
*/ private String locationCode; /** ** The name of the location. This includes the name of the colocation partner and the physical site of the building. *
*/ private String locationName; /** ** The Amazon Web Services Region for the location. *
*/ private String region; /** ** The available port speeds for the location. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the service provider for the location. *
*/ private com.amazonaws.internal.SdkInternalList* The available MAC Security (MACsec) port speeds for the location. *
*/ private com.amazonaws.internal.SdkInternalList* The code for the location. *
* * @param locationCode * The code for the location. */ public void setLocationCode(String locationCode) { this.locationCode = locationCode; } /** ** The code for the location. *
* * @return The code for the location. */ public String getLocationCode() { return this.locationCode; } /** ** The code for the location. *
* * @param locationCode * The code for the location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withLocationCode(String locationCode) { setLocationCode(locationCode); return this; } /** ** The name of the location. This includes the name of the colocation partner and the physical site of the building. *
* * @param locationName * The name of the location. This includes the name of the colocation partner and the physical site of the * building. */ public void setLocationName(String locationName) { this.locationName = locationName; } /** ** The name of the location. This includes the name of the colocation partner and the physical site of the building. *
* * @return The name of the location. This includes the name of the colocation partner and the physical site of the * building. */ public String getLocationName() { return this.locationName; } /** ** The name of the location. This includes the name of the colocation partner and the physical site of the building. *
* * @param locationName * The name of the location. This includes the name of the colocation partner and the physical site of the * building. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withLocationName(String locationName) { setLocationName(locationName); return this; } /** ** The Amazon Web Services Region for the location. *
* * @param region * The Amazon Web Services Region for the location. */ public void setRegion(String region) { this.region = region; } /** ** The Amazon Web Services Region for the location. *
* * @return The Amazon Web Services Region for the location. */ public String getRegion() { return this.region; } /** ** The Amazon Web Services Region for the location. *
* * @param region * The Amazon Web Services Region for the location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withRegion(String region) { setRegion(region); return this; } /** ** The available port speeds for the location. *
* * @return The available port speeds for the location. */ public java.util.List* The available port speeds for the location. *
* * @param availablePortSpeeds * The available port speeds for the location. */ public void setAvailablePortSpeeds(java.util.Collection* The available port speeds for the location. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAvailablePortSpeeds(java.util.Collection)} or {@link #withAvailablePortSpeeds(java.util.Collection)} * if you want to override the existing values. *
* * @param availablePortSpeeds * The available port speeds for the location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withAvailablePortSpeeds(String... availablePortSpeeds) { if (this.availablePortSpeeds == null) { setAvailablePortSpeeds(new com.amazonaws.internal.SdkInternalList* The available port speeds for the location. *
* * @param availablePortSpeeds * The available port speeds for the location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withAvailablePortSpeeds(java.util.Collection* The name of the service provider for the location. *
* * @return The name of the service provider for the location. */ public java.util.List* The name of the service provider for the location. *
* * @param availableProviders * The name of the service provider for the location. */ public void setAvailableProviders(java.util.Collection* The name of the service provider for the location. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAvailableProviders(java.util.Collection)} or {@link #withAvailableProviders(java.util.Collection)} if * you want to override the existing values. *
* * @param availableProviders * The name of the service provider for the location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withAvailableProviders(String... availableProviders) { if (this.availableProviders == null) { setAvailableProviders(new com.amazonaws.internal.SdkInternalList* The name of the service provider for the location. *
* * @param availableProviders * The name of the service provider for the location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withAvailableProviders(java.util.Collection* The available MAC Security (MACsec) port speeds for the location. *
* * @return The available MAC Security (MACsec) port speeds for the location. */ public java.util.List* The available MAC Security (MACsec) port speeds for the location. *
* * @param availableMacSecPortSpeeds * The available MAC Security (MACsec) port speeds for the location. */ public void setAvailableMacSecPortSpeeds(java.util.Collection* The available MAC Security (MACsec) port speeds for the location. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAvailableMacSecPortSpeeds(java.util.Collection)} or * {@link #withAvailableMacSecPortSpeeds(java.util.Collection)} if you want to override the existing values. *
* * @param availableMacSecPortSpeeds * The available MAC Security (MACsec) port speeds for the location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withAvailableMacSecPortSpeeds(String... availableMacSecPortSpeeds) { if (this.availableMacSecPortSpeeds == null) { setAvailableMacSecPortSpeeds(new com.amazonaws.internal.SdkInternalList* The available MAC Security (MACsec) port speeds for the location. *
* * @param availableMacSecPortSpeeds * The available MAC Security (MACsec) port speeds for the location. * @return Returns a reference to this object so that method calls can be chained together. */ public Location withAvailableMacSecPortSpeeds(java.util.Collection