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

com.amazonaws.services.globalaccelerator.model.CreateAcceleratorRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2014-2019 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.globalaccelerator.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 CreateAcceleratorRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of an accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric * characters or hyphens (-), and must not begin or end with a hyphen. *

*/ private String name; /** *

* The value for the address type must be IPv4. *

*/ private String ipAddressType; /** *

* Indicates whether an accelerator is enabled. The value is true or false. The default value is true. *

*

* If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be deleted. *

*/ private Boolean enabled; /** *

* A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an * accelerator. *

*/ private String idempotencyToken; /** *

* The name of an accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric * characters or hyphens (-), and must not begin or end with a hyphen. *

* * @param name * The name of an accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric * characters or hyphens (-), and must not begin or end with a hyphen. */ public void setName(String name) { this.name = name; } /** *

* The name of an accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric * characters or hyphens (-), and must not begin or end with a hyphen. *

* * @return The name of an accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric * characters or hyphens (-), and must not begin or end with a hyphen. */ public String getName() { return this.name; } /** *

* The name of an accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric * characters or hyphens (-), and must not begin or end with a hyphen. *

* * @param name * The name of an accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric * characters or hyphens (-), and must not begin or end with a hyphen. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAcceleratorRequest withName(String name) { setName(name); return this; } /** *

* The value for the address type must be IPv4. *

* * @param ipAddressType * The value for the address type must be IPv4. * @see IpAddressType */ public void setIpAddressType(String ipAddressType) { this.ipAddressType = ipAddressType; } /** *

* The value for the address type must be IPv4. *

* * @return The value for the address type must be IPv4. * @see IpAddressType */ public String getIpAddressType() { return this.ipAddressType; } /** *

* The value for the address type must be IPv4. *

* * @param ipAddressType * The value for the address type must be IPv4. * @return Returns a reference to this object so that method calls can be chained together. * @see IpAddressType */ public CreateAcceleratorRequest withIpAddressType(String ipAddressType) { setIpAddressType(ipAddressType); return this; } /** *

* The value for the address type must be IPv4. *

* * @param ipAddressType * The value for the address type must be IPv4. * @return Returns a reference to this object so that method calls can be chained together. * @see IpAddressType */ public CreateAcceleratorRequest withIpAddressType(IpAddressType ipAddressType) { this.ipAddressType = ipAddressType.toString(); return this; } /** *

* Indicates whether an accelerator is enabled. The value is true or false. The default value is true. *

*

* If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be deleted. *

* * @param enabled * Indicates whether an accelerator is enabled. The value is true or false. The default value is true.

*

* If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be * deleted. */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** *

* Indicates whether an accelerator is enabled. The value is true or false. The default value is true. *

*

* If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be deleted. *

* * @return Indicates whether an accelerator is enabled. The value is true or false. The default value is true.

*

* If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be * deleted. */ public Boolean getEnabled() { return this.enabled; } /** *

* Indicates whether an accelerator is enabled. The value is true or false. The default value is true. *

*

* If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be deleted. *

* * @param enabled * Indicates whether an accelerator is enabled. The value is true or false. The default value is true.

*

* If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be * deleted. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAcceleratorRequest withEnabled(Boolean enabled) { setEnabled(enabled); return this; } /** *

* Indicates whether an accelerator is enabled. The value is true or false. The default value is true. *

*

* If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be deleted. *

* * @return Indicates whether an accelerator is enabled. The value is true or false. The default value is true.

*

* If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be * deleted. */ public Boolean isEnabled() { return this.enabled; } /** *

* A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an * accelerator. *

* * @param idempotencyToken * A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of * an accelerator. */ public void setIdempotencyToken(String idempotencyToken) { this.idempotencyToken = idempotencyToken; } /** *

* A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an * accelerator. *

* * @return A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of * an accelerator. */ public String getIdempotencyToken() { return this.idempotencyToken; } /** *

* A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an * accelerator. *

* * @param idempotencyToken * A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of * an accelerator. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAcceleratorRequest withIdempotencyToken(String idempotencyToken) { setIdempotencyToken(idempotencyToken); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getIpAddressType() != null) sb.append("IpAddressType: ").append(getIpAddressType()).append(","); if (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()).append(","); if (getIdempotencyToken() != null) sb.append("IdempotencyToken: ").append(getIdempotencyToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateAcceleratorRequest == false) return false; CreateAcceleratorRequest other = (CreateAcceleratorRequest) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getIpAddressType() == null ^ this.getIpAddressType() == null) return false; if (other.getIpAddressType() != null && other.getIpAddressType().equals(this.getIpAddressType()) == false) return false; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == false) return false; if (other.getIdempotencyToken() == null ^ this.getIdempotencyToken() == null) return false; if (other.getIdempotencyToken() != null && other.getIdempotencyToken().equals(this.getIdempotencyToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getIpAddressType() == null) ? 0 : getIpAddressType().hashCode()); hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getIdempotencyToken() == null) ? 0 : getIdempotencyToken().hashCode()); return hashCode; } @Override public CreateAcceleratorRequest clone() { return (CreateAcceleratorRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy