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

com.amazonaws.services.globalaccelerator.model.UpdateEndpointGroupRequest 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 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.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 UpdateEndpointGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Name (ARN) of the endpoint group. *

*/ private String endpointGroupArn; /** *

* The list of endpoint objects. A resource must be valid and active when you add it as an endpoint. *

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

* The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to other * endpoint groups for this listener. *

*

* Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is * applied to the traffic that would otherwise have been routed to the Region based on optimal routing. *

*

* The default value is 100. *

*/ private Float trafficDialPercentage; /** *

* The port that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The * default port is the listener port that this endpoint group is associated with. If the listener port is a list of * ports, Global Accelerator uses the first port in the list. *

*/ private Integer healthCheckPort; /** *

* The protocol that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. * The default value is TCP. *

*/ private String healthCheckProtocol; /** *

* If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The * default value is slash (/). *

*/ private String healthCheckPath; /** *

* The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30. *

*/ private Integer healthCheckIntervalSeconds; /** *

* The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set * an unhealthy endpoint to healthy. The default value is 3. *

*/ private Integer thresholdCount; /** *

* Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. For * example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your * accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints. *

*

* For more information, see * Overriding listener ports in the Global Accelerator Developer Guide. *

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

* The Amazon Resource Name (ARN) of the endpoint group. *

* * @param endpointGroupArn * The Amazon Resource Name (ARN) of the endpoint group. */ public void setEndpointGroupArn(String endpointGroupArn) { this.endpointGroupArn = endpointGroupArn; } /** *

* The Amazon Resource Name (ARN) of the endpoint group. *

* * @return The Amazon Resource Name (ARN) of the endpoint group. */ public String getEndpointGroupArn() { return this.endpointGroupArn; } /** *

* The Amazon Resource Name (ARN) of the endpoint group. *

* * @param endpointGroupArn * The Amazon Resource Name (ARN) of the endpoint group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointGroupRequest withEndpointGroupArn(String endpointGroupArn) { setEndpointGroupArn(endpointGroupArn); return this; } /** *

* The list of endpoint objects. A resource must be valid and active when you add it as an endpoint. *

* * @return The list of endpoint objects. A resource must be valid and active when you add it as an endpoint. */ public java.util.List getEndpointConfigurations() { return endpointConfigurations; } /** *

* The list of endpoint objects. A resource must be valid and active when you add it as an endpoint. *

* * @param endpointConfigurations * The list of endpoint objects. A resource must be valid and active when you add it as an endpoint. */ public void setEndpointConfigurations(java.util.Collection endpointConfigurations) { if (endpointConfigurations == null) { this.endpointConfigurations = null; return; } this.endpointConfigurations = new java.util.ArrayList(endpointConfigurations); } /** *

* The list of endpoint objects. A resource must be valid and active when you add it as an endpoint. *

*

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

* * @param endpointConfigurations * The list of endpoint objects. A resource must be valid and active when you add it as an endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointGroupRequest withEndpointConfigurations(EndpointConfiguration... endpointConfigurations) { if (this.endpointConfigurations == null) { setEndpointConfigurations(new java.util.ArrayList(endpointConfigurations.length)); } for (EndpointConfiguration ele : endpointConfigurations) { this.endpointConfigurations.add(ele); } return this; } /** *

* The list of endpoint objects. A resource must be valid and active when you add it as an endpoint. *

* * @param endpointConfigurations * The list of endpoint objects. A resource must be valid and active when you add it as an endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointGroupRequest withEndpointConfigurations(java.util.Collection endpointConfigurations) { setEndpointConfigurations(endpointConfigurations); return this; } /** *

* The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to other * endpoint groups for this listener. *

*

* Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is * applied to the traffic that would otherwise have been routed to the Region based on optimal routing. *

*

* The default value is 100. *

* * @param trafficDialPercentage * The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to * other endpoint groups for this listener.

*

* Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage * is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. *

*

* The default value is 100. */ public void setTrafficDialPercentage(Float trafficDialPercentage) { this.trafficDialPercentage = trafficDialPercentage; } /** *

* The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to other * endpoint groups for this listener. *

*

* Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is * applied to the traffic that would otherwise have been routed to the Region based on optimal routing. *

*

* The default value is 100. *

* * @return The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to * other endpoint groups for this listener.

*

* Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The * percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal * routing. *

*

* The default value is 100. */ public Float getTrafficDialPercentage() { return this.trafficDialPercentage; } /** *

* The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to other * endpoint groups for this listener. *

*

* Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is * applied to the traffic that would otherwise have been routed to the Region based on optimal routing. *

*

* The default value is 100. *

* * @param trafficDialPercentage * The percentage of traffic to send to an Amazon Web Services Region. Additional traffic is distributed to * other endpoint groups for this listener.

*

* Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage * is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. *

*

* The default value is 100. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointGroupRequest withTrafficDialPercentage(Float trafficDialPercentage) { setTrafficDialPercentage(trafficDialPercentage); return this; } /** *

* The port that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The * default port is the listener port that this endpoint group is associated with. If the listener port is a list of * ports, Global Accelerator uses the first port in the list. *

* * @param healthCheckPort * The port that Global Accelerator uses to check the health of endpoints that are part of this endpoint * group. The default port is the listener port that this endpoint group is associated with. If the listener * port is a list of ports, Global Accelerator uses the first port in the list. */ public void setHealthCheckPort(Integer healthCheckPort) { this.healthCheckPort = healthCheckPort; } /** *

* The port that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The * default port is the listener port that this endpoint group is associated with. If the listener port is a list of * ports, Global Accelerator uses the first port in the list. *

* * @return The port that Global Accelerator uses to check the health of endpoints that are part of this endpoint * group. The default port is the listener port that this endpoint group is associated with. If the listener * port is a list of ports, Global Accelerator uses the first port in the list. */ public Integer getHealthCheckPort() { return this.healthCheckPort; } /** *

* The port that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The * default port is the listener port that this endpoint group is associated with. If the listener port is a list of * ports, Global Accelerator uses the first port in the list. *

* * @param healthCheckPort * The port that Global Accelerator uses to check the health of endpoints that are part of this endpoint * group. The default port is the listener port that this endpoint group is associated with. If the listener * port is a list of ports, Global Accelerator uses the first port in the list. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointGroupRequest withHealthCheckPort(Integer healthCheckPort) { setHealthCheckPort(healthCheckPort); return this; } /** *

* The protocol that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. * The default value is TCP. *

* * @param healthCheckProtocol * The protocol that Global Accelerator uses to check the health of endpoints that are part of this endpoint * group. The default value is TCP. * @see HealthCheckProtocol */ public void setHealthCheckProtocol(String healthCheckProtocol) { this.healthCheckProtocol = healthCheckProtocol; } /** *

* The protocol that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. * The default value is TCP. *

* * @return The protocol that Global Accelerator uses to check the health of endpoints that are part of this endpoint * group. The default value is TCP. * @see HealthCheckProtocol */ public String getHealthCheckProtocol() { return this.healthCheckProtocol; } /** *

* The protocol that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. * The default value is TCP. *

* * @param healthCheckProtocol * The protocol that Global Accelerator uses to check the health of endpoints that are part of this endpoint * group. The default value is TCP. * @return Returns a reference to this object so that method calls can be chained together. * @see HealthCheckProtocol */ public UpdateEndpointGroupRequest withHealthCheckProtocol(String healthCheckProtocol) { setHealthCheckProtocol(healthCheckProtocol); return this; } /** *

* The protocol that Global Accelerator uses to check the health of endpoints that are part of this endpoint group. * The default value is TCP. *

* * @param healthCheckProtocol * The protocol that Global Accelerator uses to check the health of endpoints that are part of this endpoint * group. The default value is TCP. * @return Returns a reference to this object so that method calls can be chained together. * @see HealthCheckProtocol */ public UpdateEndpointGroupRequest withHealthCheckProtocol(HealthCheckProtocol healthCheckProtocol) { this.healthCheckProtocol = healthCheckProtocol.toString(); return this; } /** *

* If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The * default value is slash (/). *

* * @param healthCheckPath * If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. * The default value is slash (/). */ public void setHealthCheckPath(String healthCheckPath) { this.healthCheckPath = healthCheckPath; } /** *

* If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The * default value is slash (/). *

* * @return If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. * The default value is slash (/). */ public String getHealthCheckPath() { return this.healthCheckPath; } /** *

* If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The * default value is slash (/). *

* * @param healthCheckPath * If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. * The default value is slash (/). * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointGroupRequest withHealthCheckPath(String healthCheckPath) { setHealthCheckPath(healthCheckPath); return this; } /** *

* The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30. *

* * @param healthCheckIntervalSeconds * The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30. */ public void setHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds) { this.healthCheckIntervalSeconds = healthCheckIntervalSeconds; } /** *

* The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30. *

* * @return The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30. */ public Integer getHealthCheckIntervalSeconds() { return this.healthCheckIntervalSeconds; } /** *

* The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30. *

* * @param healthCheckIntervalSeconds * The time—10 seconds or 30 seconds—between each health check for an endpoint. The default value is 30. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointGroupRequest withHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds) { setHealthCheckIntervalSeconds(healthCheckIntervalSeconds); return this; } /** *

* The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set * an unhealthy endpoint to healthy. The default value is 3. *

* * @param thresholdCount * The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or * to set an unhealthy endpoint to healthy. The default value is 3. */ public void setThresholdCount(Integer thresholdCount) { this.thresholdCount = thresholdCount; } /** *

* The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set * an unhealthy endpoint to healthy. The default value is 3. *

* * @return The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or * to set an unhealthy endpoint to healthy. The default value is 3. */ public Integer getThresholdCount() { return this.thresholdCount; } /** *

* The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set * an unhealthy endpoint to healthy. The default value is 3. *

* * @param thresholdCount * The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or * to set an unhealthy endpoint to healthy. The default value is 3. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointGroupRequest withThresholdCount(Integer thresholdCount) { setThresholdCount(thresholdCount); return this; } /** *

* Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. For * example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your * accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints. *

*

* For more information, see * Overriding listener ports in the Global Accelerator Developer Guide. *

* * @return Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. * For example, you can create a port override in which the listener receives user traffic on ports 80 and * 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.

*

* For more information, see * Overriding listener ports in the Global Accelerator Developer Guide. */ public java.util.List getPortOverrides() { return portOverrides; } /** *

* Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. For * example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your * accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints. *

*

* For more information, see * Overriding listener ports in the Global Accelerator Developer Guide. *

* * @param portOverrides * Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. * For example, you can create a port override in which the listener receives user traffic on ports 80 and * 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.

*

* For more information, see * Overriding listener ports in the Global Accelerator Developer Guide. */ public void setPortOverrides(java.util.Collection portOverrides) { if (portOverrides == null) { this.portOverrides = null; return; } this.portOverrides = new java.util.ArrayList(portOverrides); } /** *

* Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. For * example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your * accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints. *

*

* For more information, see * Overriding listener ports in the Global Accelerator Developer Guide. *

*

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

* * @param portOverrides * Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. * For example, you can create a port override in which the listener receives user traffic on ports 80 and * 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.

*

* For more information, see * Overriding listener ports in the Global Accelerator Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointGroupRequest withPortOverrides(PortOverride... portOverrides) { if (this.portOverrides == null) { setPortOverrides(new java.util.ArrayList(portOverrides.length)); } for (PortOverride ele : portOverrides) { this.portOverrides.add(ele); } return this; } /** *

* Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. For * example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your * accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints. *

*

* For more information, see * Overriding listener ports in the Global Accelerator Developer Guide. *

* * @param portOverrides * Override specific listener ports used to route traffic to endpoints that are part of this endpoint group. * For example, you can create a port override in which the listener receives user traffic on ports 80 and * 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.

*

* For more information, see * Overriding listener ports in the Global Accelerator Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointGroupRequest withPortOverrides(java.util.Collection portOverrides) { setPortOverrides(portOverrides); 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 (getEndpointGroupArn() != null) sb.append("EndpointGroupArn: ").append(getEndpointGroupArn()).append(","); if (getEndpointConfigurations() != null) sb.append("EndpointConfigurations: ").append(getEndpointConfigurations()).append(","); if (getTrafficDialPercentage() != null) sb.append("TrafficDialPercentage: ").append(getTrafficDialPercentage()).append(","); if (getHealthCheckPort() != null) sb.append("HealthCheckPort: ").append(getHealthCheckPort()).append(","); if (getHealthCheckProtocol() != null) sb.append("HealthCheckProtocol: ").append(getHealthCheckProtocol()).append(","); if (getHealthCheckPath() != null) sb.append("HealthCheckPath: ").append(getHealthCheckPath()).append(","); if (getHealthCheckIntervalSeconds() != null) sb.append("HealthCheckIntervalSeconds: ").append(getHealthCheckIntervalSeconds()).append(","); if (getThresholdCount() != null) sb.append("ThresholdCount: ").append(getThresholdCount()).append(","); if (getPortOverrides() != null) sb.append("PortOverrides: ").append(getPortOverrides()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateEndpointGroupRequest == false) return false; UpdateEndpointGroupRequest other = (UpdateEndpointGroupRequest) obj; if (other.getEndpointGroupArn() == null ^ this.getEndpointGroupArn() == null) return false; if (other.getEndpointGroupArn() != null && other.getEndpointGroupArn().equals(this.getEndpointGroupArn()) == false) return false; if (other.getEndpointConfigurations() == null ^ this.getEndpointConfigurations() == null) return false; if (other.getEndpointConfigurations() != null && other.getEndpointConfigurations().equals(this.getEndpointConfigurations()) == false) return false; if (other.getTrafficDialPercentage() == null ^ this.getTrafficDialPercentage() == null) return false; if (other.getTrafficDialPercentage() != null && other.getTrafficDialPercentage().equals(this.getTrafficDialPercentage()) == false) return false; if (other.getHealthCheckPort() == null ^ this.getHealthCheckPort() == null) return false; if (other.getHealthCheckPort() != null && other.getHealthCheckPort().equals(this.getHealthCheckPort()) == false) return false; if (other.getHealthCheckProtocol() == null ^ this.getHealthCheckProtocol() == null) return false; if (other.getHealthCheckProtocol() != null && other.getHealthCheckProtocol().equals(this.getHealthCheckProtocol()) == false) return false; if (other.getHealthCheckPath() == null ^ this.getHealthCheckPath() == null) return false; if (other.getHealthCheckPath() != null && other.getHealthCheckPath().equals(this.getHealthCheckPath()) == false) return false; if (other.getHealthCheckIntervalSeconds() == null ^ this.getHealthCheckIntervalSeconds() == null) return false; if (other.getHealthCheckIntervalSeconds() != null && other.getHealthCheckIntervalSeconds().equals(this.getHealthCheckIntervalSeconds()) == false) return false; if (other.getThresholdCount() == null ^ this.getThresholdCount() == null) return false; if (other.getThresholdCount() != null && other.getThresholdCount().equals(this.getThresholdCount()) == false) return false; if (other.getPortOverrides() == null ^ this.getPortOverrides() == null) return false; if (other.getPortOverrides() != null && other.getPortOverrides().equals(this.getPortOverrides()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndpointGroupArn() == null) ? 0 : getEndpointGroupArn().hashCode()); hashCode = prime * hashCode + ((getEndpointConfigurations() == null) ? 0 : getEndpointConfigurations().hashCode()); hashCode = prime * hashCode + ((getTrafficDialPercentage() == null) ? 0 : getTrafficDialPercentage().hashCode()); hashCode = prime * hashCode + ((getHealthCheckPort() == null) ? 0 : getHealthCheckPort().hashCode()); hashCode = prime * hashCode + ((getHealthCheckProtocol() == null) ? 0 : getHealthCheckProtocol().hashCode()); hashCode = prime * hashCode + ((getHealthCheckPath() == null) ? 0 : getHealthCheckPath().hashCode()); hashCode = prime * hashCode + ((getHealthCheckIntervalSeconds() == null) ? 0 : getHealthCheckIntervalSeconds().hashCode()); hashCode = prime * hashCode + ((getThresholdCount() == null) ? 0 : getThresholdCount().hashCode()); hashCode = prime * hashCode + ((getPortOverrides() == null) ? 0 : getPortOverrides().hashCode()); return hashCode; } @Override public UpdateEndpointGroupRequest clone() { return (UpdateEndpointGroupRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy