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

com.amazonaws.services.globalaccelerator.model.CreateCustomRoutingAcceleratorRequest 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

The 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.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 CreateCustomRoutingAcceleratorRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

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

*/ private String name; /** *

* The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4. *

*/ private String ipAddressType; /** *

* Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 * address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator. *

*

* After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you * create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a * second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web * Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global * Accelerator assigns each address range to a different network zone, for high availability. *

*

* You can specify one or two addresses, separated by a space. Do not include the /32 suffix. *

*

* Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new * accelerator with the new addresses. *

*

* For more information, see Bring your own IP addresses * (BYOIP) in the Global Accelerator Developer Guide. *

*/ private java.util.List ipAddresses; /** *

* 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 the * request. *

*/ private String idempotencyToken; /** *

* Create tags for an accelerator. *

*

* For more information, see Tagging in * Global Accelerator in the Global Accelerator Developer Guide. *

*/ private java.util.List tags; /** *

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

* * @param name * The name of a custom routing accelerator. The name can have a maximum of 64 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 a custom routing accelerator. The name can have a maximum of 64 characters, must contain only * alphanumeric characters or hyphens (-), and must not begin or end with a hyphen. *

* * @return The name of a custom routing accelerator. The name can have a maximum of 64 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 a custom routing accelerator. The name can have a maximum of 64 characters, must contain only * alphanumeric characters or hyphens (-), and must not begin or end with a hyphen. *

* * @param name * The name of a custom routing accelerator. The name can have a maximum of 64 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 CreateCustomRoutingAcceleratorRequest withName(String name) { setName(name); return this; } /** *

* The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4. *

* * @param ipAddressType * The IP address type that an accelerator supports. For a custom routing accelerator, the value must be * IPV4. * @see IpAddressType */ public void setIpAddressType(String ipAddressType) { this.ipAddressType = ipAddressType; } /** *

* The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4. *

* * @return The IP address type that an accelerator supports. For a custom routing accelerator, the value must be * IPV4. * @see IpAddressType */ public String getIpAddressType() { return this.ipAddressType; } /** *

* The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4. *

* * @param ipAddressType * The IP address type that an accelerator supports. For a custom routing accelerator, the value must be * IPV4. * @return Returns a reference to this object so that method calls can be chained together. * @see IpAddressType */ public CreateCustomRoutingAcceleratorRequest withIpAddressType(String ipAddressType) { setIpAddressType(ipAddressType); return this; } /** *

* The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4. *

* * @param ipAddressType * The IP address type that an accelerator supports. For a custom routing accelerator, the value must be * IPV4. * @return Returns a reference to this object so that method calls can be chained together. * @see IpAddressType */ public CreateCustomRoutingAcceleratorRequest withIpAddressType(IpAddressType ipAddressType) { this.ipAddressType = ipAddressType.toString(); return this; } /** *

* Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 * address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator. *

*

* After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you * create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a * second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web * Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global * Accelerator assigns each address range to a different network zone, for high availability. *

*

* You can specify one or two addresses, separated by a space. Do not include the /32 suffix. *

*

* Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new * accelerator with the new addresses. *

*

* For more information, see Bring your own IP addresses * (BYOIP) in the Global Accelerator Developer Guide. *

* * @return Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an * IPv4 address from your own pool to use for the accelerator's static IPv4 address when you create an * accelerator.

*

* After you bring an address range to Amazon Web Services, it appears in your account as an address pool. * When you create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator * assigns you a second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address * ranges to Amazon Web Services, you can assign one IPv4 address from each range to your accelerator. This * restriction is because Global Accelerator assigns each address range to a different network zone, for * high availability. *

*

* You can specify one or two addresses, separated by a space. Do not include the /32 suffix. *

*

* Note that you can't update IP addresses for an existing accelerator. To change them, you must create a * new accelerator with the new addresses. *

*

* For more information, see Bring your own IP * addresses (BYOIP) in the Global Accelerator Developer Guide. */ public java.util.List getIpAddresses() { return ipAddresses; } /** *

* Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 * address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator. *

*

* After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you * create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a * second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web * Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global * Accelerator assigns each address range to a different network zone, for high availability. *

*

* You can specify one or two addresses, separated by a space. Do not include the /32 suffix. *

*

* Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new * accelerator with the new addresses. *

*

* For more information, see Bring your own IP addresses * (BYOIP) in the Global Accelerator Developer Guide. *

* * @param ipAddresses * Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 * address from your own pool to use for the accelerator's static IPv4 address when you create an * accelerator.

*

* After you bring an address range to Amazon Web Services, it appears in your account as an address pool. * When you create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator * assigns you a second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address * ranges to Amazon Web Services, you can assign one IPv4 address from each range to your accelerator. This * restriction is because Global Accelerator assigns each address range to a different network zone, for high * availability. *

*

* You can specify one or two addresses, separated by a space. Do not include the /32 suffix. *

*

* Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new * accelerator with the new addresses. *

*

* For more information, see Bring your own IP * addresses (BYOIP) in the Global Accelerator Developer Guide. */ public void setIpAddresses(java.util.Collection ipAddresses) { if (ipAddresses == null) { this.ipAddresses = null; return; } this.ipAddresses = new java.util.ArrayList(ipAddresses); } /** *

* Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 * address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator. *

*

* After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you * create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a * second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web * Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global * Accelerator assigns each address range to a different network zone, for high availability. *

*

* You can specify one or two addresses, separated by a space. Do not include the /32 suffix. *

*

* Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new * accelerator with the new addresses. *

*

* For more information, see Bring your own IP addresses * (BYOIP) in the Global Accelerator Developer Guide. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setIpAddresses(java.util.Collection)} or {@link #withIpAddresses(java.util.Collection)} if you want to * override the existing values. *

* * @param ipAddresses * Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 * address from your own pool to use for the accelerator's static IPv4 address when you create an * accelerator.

*

* After you bring an address range to Amazon Web Services, it appears in your account as an address pool. * When you create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator * assigns you a second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address * ranges to Amazon Web Services, you can assign one IPv4 address from each range to your accelerator. This * restriction is because Global Accelerator assigns each address range to a different network zone, for high * availability. *

*

* You can specify one or two addresses, separated by a space. Do not include the /32 suffix. *

*

* Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new * accelerator with the new addresses. *

*

* For more information, see Bring your own IP * addresses (BYOIP) in the Global Accelerator Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomRoutingAcceleratorRequest withIpAddresses(String... ipAddresses) { if (this.ipAddresses == null) { setIpAddresses(new java.util.ArrayList(ipAddresses.length)); } for (String ele : ipAddresses) { this.ipAddresses.add(ele); } return this; } /** *

* Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 * address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator. *

*

* After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you * create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a * second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web * Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global * Accelerator assigns each address range to a different network zone, for high availability. *

*

* You can specify one or two addresses, separated by a space. Do not include the /32 suffix. *

*

* Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new * accelerator with the new addresses. *

*

* For more information, see Bring your own IP addresses * (BYOIP) in the Global Accelerator Developer Guide. *

* * @param ipAddresses * Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 * address from your own pool to use for the accelerator's static IPv4 address when you create an * accelerator.

*

* After you bring an address range to Amazon Web Services, it appears in your account as an address pool. * When you create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator * assigns you a second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address * ranges to Amazon Web Services, you can assign one IPv4 address from each range to your accelerator. This * restriction is because Global Accelerator assigns each address range to a different network zone, for high * availability. *

*

* You can specify one or two addresses, separated by a space. Do not include the /32 suffix. *

*

* Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new * accelerator with the new addresses. *

*

* For more information, see Bring your own IP * addresses (BYOIP) in the Global Accelerator Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomRoutingAcceleratorRequest withIpAddresses(java.util.Collection ipAddresses) { setIpAddresses(ipAddresses); 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 CreateCustomRoutingAcceleratorRequest 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 the * request. *

* * @param idempotencyToken * A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of * the request. */ 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 the * request. *

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

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

* * @param idempotencyToken * A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of * the request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomRoutingAcceleratorRequest withIdempotencyToken(String idempotencyToken) { setIdempotencyToken(idempotencyToken); return this; } /** *

* Create tags for an accelerator. *

*

* For more information, see Tagging in * Global Accelerator in the Global Accelerator Developer Guide. *

* * @return Create tags for an accelerator.

*

* For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide. */ public java.util.List getTags() { return tags; } /** *

* Create tags for an accelerator. *

*

* For more information, see Tagging in * Global Accelerator in the Global Accelerator Developer Guide. *

* * @param tags * Create tags for an accelerator.

*

* For more information, see Tagging * in Global Accelerator in the Global Accelerator Developer Guide. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* Create tags for an accelerator. *

*

* For more information, see Tagging in * Global Accelerator in the Global Accelerator Developer Guide. *

*

* 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 * Create tags for an accelerator.

*

* For more information, see Tagging * in Global Accelerator in the Global Accelerator Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomRoutingAcceleratorRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* Create tags for an accelerator. *

*

* For more information, see Tagging in * Global Accelerator in the Global Accelerator Developer Guide. *

* * @param tags * Create tags for an accelerator.

*

* For more information, see Tagging * in Global Accelerator in the Global Accelerator Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCustomRoutingAcceleratorRequest withTags(java.util.Collection tags) { setTags(tags); 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 (getIpAddresses() != null) sb.append("IpAddresses: ").append(getIpAddresses()).append(","); if (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()).append(","); if (getIdempotencyToken() != null) sb.append("IdempotencyToken: ").append(getIdempotencyToken()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateCustomRoutingAcceleratorRequest == false) return false; CreateCustomRoutingAcceleratorRequest other = (CreateCustomRoutingAcceleratorRequest) 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.getIpAddresses() == null ^ this.getIpAddresses() == null) return false; if (other.getIpAddresses() != null && other.getIpAddresses().equals(this.getIpAddresses()) == 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; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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 + ((getIpAddresses() == null) ? 0 : getIpAddresses().hashCode()); hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getIdempotencyToken() == null) ? 0 : getIdempotencyToken().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateCustomRoutingAcceleratorRequest clone() { return (CreateCustomRoutingAcceleratorRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy