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

com.amazonaws.services.networkmanager.model.UpdateLinkRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 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.networkmanager.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 UpdateLinkRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The ID of the global network. *

*/ private String globalNetworkId; /** *

* The ID of the link. *

*/ private String linkId; /** *

* A description of the link. *

*

* Constraints: Maximum length of 256 characters. *

*/ private String description; /** *

* The type of the link. *

*

* Constraints: Maximum length of 128 characters. *

*/ private String type; /** *

* The upload and download speed in Mbps. *

*/ private Bandwidth bandwidth; /** *

* The provider of the link. *

*

* Constraints: Maximum length of 128 characters. *

*/ private String provider; /** *

* The ID of the global network. *

* * @param globalNetworkId * The ID of the global network. */ public void setGlobalNetworkId(String globalNetworkId) { this.globalNetworkId = globalNetworkId; } /** *

* The ID of the global network. *

* * @return The ID of the global network. */ public String getGlobalNetworkId() { return this.globalNetworkId; } /** *

* The ID of the global network. *

* * @param globalNetworkId * The ID of the global network. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLinkRequest withGlobalNetworkId(String globalNetworkId) { setGlobalNetworkId(globalNetworkId); return this; } /** *

* The ID of the link. *

* * @param linkId * The ID of the link. */ public void setLinkId(String linkId) { this.linkId = linkId; } /** *

* The ID of the link. *

* * @return The ID of the link. */ public String getLinkId() { return this.linkId; } /** *

* The ID of the link. *

* * @param linkId * The ID of the link. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLinkRequest withLinkId(String linkId) { setLinkId(linkId); return this; } /** *

* A description of the link. *

*

* Constraints: Maximum length of 256 characters. *

* * @param description * A description of the link.

*

* Constraints: Maximum length of 256 characters. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the link. *

*

* Constraints: Maximum length of 256 characters. *

* * @return A description of the link.

*

* Constraints: Maximum length of 256 characters. */ public String getDescription() { return this.description; } /** *

* A description of the link. *

*

* Constraints: Maximum length of 256 characters. *

* * @param description * A description of the link.

*

* Constraints: Maximum length of 256 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLinkRequest withDescription(String description) { setDescription(description); return this; } /** *

* The type of the link. *

*

* Constraints: Maximum length of 128 characters. *

* * @param type * The type of the link.

*

* Constraints: Maximum length of 128 characters. */ public void setType(String type) { this.type = type; } /** *

* The type of the link. *

*

* Constraints: Maximum length of 128 characters. *

* * @return The type of the link.

*

* Constraints: Maximum length of 128 characters. */ public String getType() { return this.type; } /** *

* The type of the link. *

*

* Constraints: Maximum length of 128 characters. *

* * @param type * The type of the link.

*

* Constraints: Maximum length of 128 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLinkRequest withType(String type) { setType(type); return this; } /** *

* The upload and download speed in Mbps. *

* * @param bandwidth * The upload and download speed in Mbps. */ public void setBandwidth(Bandwidth bandwidth) { this.bandwidth = bandwidth; } /** *

* The upload and download speed in Mbps. *

* * @return The upload and download speed in Mbps. */ public Bandwidth getBandwidth() { return this.bandwidth; } /** *

* The upload and download speed in Mbps. *

* * @param bandwidth * The upload and download speed in Mbps. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLinkRequest withBandwidth(Bandwidth bandwidth) { setBandwidth(bandwidth); return this; } /** *

* The provider of the link. *

*

* Constraints: Maximum length of 128 characters. *

* * @param provider * The provider of the link.

*

* Constraints: Maximum length of 128 characters. */ public void setProvider(String provider) { this.provider = provider; } /** *

* The provider of the link. *

*

* Constraints: Maximum length of 128 characters. *

* * @return The provider of the link.

*

* Constraints: Maximum length of 128 characters. */ public String getProvider() { return this.provider; } /** *

* The provider of the link. *

*

* Constraints: Maximum length of 128 characters. *

* * @param provider * The provider of the link.

*

* Constraints: Maximum length of 128 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLinkRequest withProvider(String provider) { setProvider(provider); 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 (getGlobalNetworkId() != null) sb.append("GlobalNetworkId: ").append(getGlobalNetworkId()).append(","); if (getLinkId() != null) sb.append("LinkId: ").append(getLinkId()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getBandwidth() != null) sb.append("Bandwidth: ").append(getBandwidth()).append(","); if (getProvider() != null) sb.append("Provider: ").append(getProvider()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateLinkRequest == false) return false; UpdateLinkRequest other = (UpdateLinkRequest) obj; if (other.getGlobalNetworkId() == null ^ this.getGlobalNetworkId() == null) return false; if (other.getGlobalNetworkId() != null && other.getGlobalNetworkId().equals(this.getGlobalNetworkId()) == false) return false; if (other.getLinkId() == null ^ this.getLinkId() == null) return false; if (other.getLinkId() != null && other.getLinkId().equals(this.getLinkId()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == 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.getProvider() == null ^ this.getProvider() == null) return false; if (other.getProvider() != null && other.getProvider().equals(this.getProvider()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGlobalNetworkId() == null) ? 0 : getGlobalNetworkId().hashCode()); hashCode = prime * hashCode + ((getLinkId() == null) ? 0 : getLinkId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getBandwidth() == null) ? 0 : getBandwidth().hashCode()); hashCode = prime * hashCode + ((getProvider() == null) ? 0 : getProvider().hashCode()); return hashCode; } @Override public UpdateLinkRequest clone() { return (UpdateLinkRequest) super.clone(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy