com.amazonaws.services.elasticloadbalancingv2.model.ModifyTargetGroupRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-elasticloadbalancingv2 Show documentation
/*
* 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.elasticloadbalancingv2.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 ModifyTargetGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the target group.
*
*/
private String targetGroupArn;
/**
*
* The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the
* default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is
* not supported for health checks if the protocol of the target group is HTTP or HTTPS. It is supported for health
* checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The GENEVE, TLS, UDP, and TCP_UDP
* protocols are not supported for health checks.
*
*/
private String healthCheckProtocol;
/**
*
* The port the load balancer uses when performing health checks on targets.
*
*/
private String healthCheckPort;
/**
*
* [HTTP/HTTPS health checks] The destination for health checks on the targets.
*
*
* [HTTP1 or HTTP2 protocol version] The ping path. The default is /.
*
*
* [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The
* default is /Amazon Web Services.ALB/healthcheck.
*
*/
private String healthCheckPath;
/**
*
* Indicates whether health checks are enabled.
*
*/
private Boolean healthCheckEnabled;
/**
*
* The approximate amount of time, in seconds, between health checks of an individual target.
*
*/
private Integer healthCheckIntervalSeconds;
/**
*
* [HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed health check.
*
*/
private Integer healthCheckTimeoutSeconds;
/**
*
* The number of consecutive health checks successes required before considering an unhealthy target healthy.
*
*/
private Integer healthyThresholdCount;
/**
*
* The number of consecutive health check failures required before considering the target unhealthy.
*
*/
private Integer unhealthyThresholdCount;
/**
*
* [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.
* For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a
* protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is
* 200-399.
*
*/
private Matcher matcher;
/**
*
* The Amazon Resource Name (ARN) of the target group.
*
*
* @param targetGroupArn
* The Amazon Resource Name (ARN) of the target group.
*/
public void setTargetGroupArn(String targetGroupArn) {
this.targetGroupArn = targetGroupArn;
}
/**
*
* The Amazon Resource Name (ARN) of the target group.
*
*
* @return The Amazon Resource Name (ARN) of the target group.
*/
public String getTargetGroupArn() {
return this.targetGroupArn;
}
/**
*
* The Amazon Resource Name (ARN) of the target group.
*
*
* @param targetGroupArn
* The Amazon Resource Name (ARN) of the target group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTargetGroupRequest withTargetGroupArn(String targetGroupArn) {
setTargetGroupArn(targetGroupArn);
return this;
}
/**
*
* The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the
* default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is
* not supported for health checks if the protocol of the target group is HTTP or HTTPS. It is supported for health
* checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The GENEVE, TLS, UDP, and TCP_UDP
* protocols are not supported for health checks.
*
*
* @param healthCheckProtocol
* The protocol the load balancer uses when performing health checks on targets. For Application Load
* Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP.
* The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS.
* It is supported for health checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP.
* The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.
* @see ProtocolEnum
*/
public void setHealthCheckProtocol(String healthCheckProtocol) {
this.healthCheckProtocol = healthCheckProtocol;
}
/**
*
* The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the
* default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is
* not supported for health checks if the protocol of the target group is HTTP or HTTPS. It is supported for health
* checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The GENEVE, TLS, UDP, and TCP_UDP
* protocols are not supported for health checks.
*
*
* @return The protocol the load balancer uses when performing health checks on targets. For Application Load
* Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is
* TCP. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or
* HTTPS. It is supported for health checks only if the protocol of the target group is TCP, TLS, UDP, or
* TCP_UDP. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.
* @see ProtocolEnum
*/
public String getHealthCheckProtocol() {
return this.healthCheckProtocol;
}
/**
*
* The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the
* default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is
* not supported for health checks if the protocol of the target group is HTTP or HTTPS. It is supported for health
* checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The GENEVE, TLS, UDP, and TCP_UDP
* protocols are not supported for health checks.
*
*
* @param healthCheckProtocol
* The protocol the load balancer uses when performing health checks on targets. For Application Load
* Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP.
* The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS.
* It is supported for health checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP.
* The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ProtocolEnum
*/
public ModifyTargetGroupRequest withHealthCheckProtocol(String healthCheckProtocol) {
setHealthCheckProtocol(healthCheckProtocol);
return this;
}
/**
*
* The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the
* default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is
* not supported for health checks if the protocol of the target group is HTTP or HTTPS. It is supported for health
* checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The GENEVE, TLS, UDP, and TCP_UDP
* protocols are not supported for health checks.
*
*
* @param healthCheckProtocol
* The protocol the load balancer uses when performing health checks on targets. For Application Load
* Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP.
* The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS.
* It is supported for health checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP.
* The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.
* @see ProtocolEnum
*/
public void setHealthCheckProtocol(ProtocolEnum healthCheckProtocol) {
withHealthCheckProtocol(healthCheckProtocol);
}
/**
*
* The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the
* default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is
* not supported for health checks if the protocol of the target group is HTTP or HTTPS. It is supported for health
* checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The GENEVE, TLS, UDP, and TCP_UDP
* protocols are not supported for health checks.
*
*
* @param healthCheckProtocol
* The protocol the load balancer uses when performing health checks on targets. For Application Load
* Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP.
* The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS.
* It is supported for health checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP.
* The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ProtocolEnum
*/
public ModifyTargetGroupRequest withHealthCheckProtocol(ProtocolEnum healthCheckProtocol) {
this.healthCheckProtocol = healthCheckProtocol.toString();
return this;
}
/**
*
* The port the load balancer uses when performing health checks on targets.
*
*
* @param healthCheckPort
* The port the load balancer uses when performing health checks on targets.
*/
public void setHealthCheckPort(String healthCheckPort) {
this.healthCheckPort = healthCheckPort;
}
/**
*
* The port the load balancer uses when performing health checks on targets.
*
*
* @return The port the load balancer uses when performing health checks on targets.
*/
public String getHealthCheckPort() {
return this.healthCheckPort;
}
/**
*
* The port the load balancer uses when performing health checks on targets.
*
*
* @param healthCheckPort
* The port the load balancer uses when performing health checks on targets.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTargetGroupRequest withHealthCheckPort(String healthCheckPort) {
setHealthCheckPort(healthCheckPort);
return this;
}
/**
*
* [HTTP/HTTPS health checks] The destination for health checks on the targets.
*
*
* [HTTP1 or HTTP2 protocol version] The ping path. The default is /.
*
*
* [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The
* default is /Amazon Web Services.ALB/healthcheck.
*
*
* @param healthCheckPath
* [HTTP/HTTPS health checks] The destination for health checks on the targets.
*
* [HTTP1 or HTTP2 protocol version] The ping path. The default is /.
*
*
* [GRPC protocol version] The path of a custom health check method with the format /package.service/method.
* The default is /Amazon Web Services.ALB/healthcheck.
*/
public void setHealthCheckPath(String healthCheckPath) {
this.healthCheckPath = healthCheckPath;
}
/**
*
* [HTTP/HTTPS health checks] The destination for health checks on the targets.
*
*
* [HTTP1 or HTTP2 protocol version] The ping path. The default is /.
*
*
* [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The
* default is /Amazon Web Services.ALB/healthcheck.
*
*
* @return [HTTP/HTTPS health checks] The destination for health checks on the targets.
*
* [HTTP1 or HTTP2 protocol version] The ping path. The default is /.
*
*
* [GRPC protocol version] The path of a custom health check method with the format /package.service/method.
* The default is /Amazon Web Services.ALB/healthcheck.
*/
public String getHealthCheckPath() {
return this.healthCheckPath;
}
/**
*
* [HTTP/HTTPS health checks] The destination for health checks on the targets.
*
*
* [HTTP1 or HTTP2 protocol version] The ping path. The default is /.
*
*
* [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The
* default is /Amazon Web Services.ALB/healthcheck.
*
*
* @param healthCheckPath
* [HTTP/HTTPS health checks] The destination for health checks on the targets.
*
* [HTTP1 or HTTP2 protocol version] The ping path. The default is /.
*
*
* [GRPC protocol version] The path of a custom health check method with the format /package.service/method.
* The default is /Amazon Web Services.ALB/healthcheck.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTargetGroupRequest withHealthCheckPath(String healthCheckPath) {
setHealthCheckPath(healthCheckPath);
return this;
}
/**
*
* Indicates whether health checks are enabled.
*
*
* @param healthCheckEnabled
* Indicates whether health checks are enabled.
*/
public void setHealthCheckEnabled(Boolean healthCheckEnabled) {
this.healthCheckEnabled = healthCheckEnabled;
}
/**
*
* Indicates whether health checks are enabled.
*
*
* @return Indicates whether health checks are enabled.
*/
public Boolean getHealthCheckEnabled() {
return this.healthCheckEnabled;
}
/**
*
* Indicates whether health checks are enabled.
*
*
* @param healthCheckEnabled
* Indicates whether health checks are enabled.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTargetGroupRequest withHealthCheckEnabled(Boolean healthCheckEnabled) {
setHealthCheckEnabled(healthCheckEnabled);
return this;
}
/**
*
* Indicates whether health checks are enabled.
*
*
* @return Indicates whether health checks are enabled.
*/
public Boolean isHealthCheckEnabled() {
return this.healthCheckEnabled;
}
/**
*
* The approximate amount of time, in seconds, between health checks of an individual target.
*
*
* @param healthCheckIntervalSeconds
* The approximate amount of time, in seconds, between health checks of an individual target.
*/
public void setHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds) {
this.healthCheckIntervalSeconds = healthCheckIntervalSeconds;
}
/**
*
* The approximate amount of time, in seconds, between health checks of an individual target.
*
*
* @return The approximate amount of time, in seconds, between health checks of an individual target.
*/
public Integer getHealthCheckIntervalSeconds() {
return this.healthCheckIntervalSeconds;
}
/**
*
* The approximate amount of time, in seconds, between health checks of an individual target.
*
*
* @param healthCheckIntervalSeconds
* The approximate amount of time, in seconds, between health checks of an individual target.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTargetGroupRequest withHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds) {
setHealthCheckIntervalSeconds(healthCheckIntervalSeconds);
return this;
}
/**
*
* [HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed health check.
*
*
* @param healthCheckTimeoutSeconds
* [HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed health
* check.
*/
public void setHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds) {
this.healthCheckTimeoutSeconds = healthCheckTimeoutSeconds;
}
/**
*
* [HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed health check.
*
*
* @return [HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed health
* check.
*/
public Integer getHealthCheckTimeoutSeconds() {
return this.healthCheckTimeoutSeconds;
}
/**
*
* [HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed health check.
*
*
* @param healthCheckTimeoutSeconds
* [HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed health
* check.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTargetGroupRequest withHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds) {
setHealthCheckTimeoutSeconds(healthCheckTimeoutSeconds);
return this;
}
/**
*
* The number of consecutive health checks successes required before considering an unhealthy target healthy.
*
*
* @param healthyThresholdCount
* The number of consecutive health checks successes required before considering an unhealthy target healthy.
*/
public void setHealthyThresholdCount(Integer healthyThresholdCount) {
this.healthyThresholdCount = healthyThresholdCount;
}
/**
*
* The number of consecutive health checks successes required before considering an unhealthy target healthy.
*
*
* @return The number of consecutive health checks successes required before considering an unhealthy target
* healthy.
*/
public Integer getHealthyThresholdCount() {
return this.healthyThresholdCount;
}
/**
*
* The number of consecutive health checks successes required before considering an unhealthy target healthy.
*
*
* @param healthyThresholdCount
* The number of consecutive health checks successes required before considering an unhealthy target healthy.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTargetGroupRequest withHealthyThresholdCount(Integer healthyThresholdCount) {
setHealthyThresholdCount(healthyThresholdCount);
return this;
}
/**
*
* The number of consecutive health check failures required before considering the target unhealthy.
*
*
* @param unhealthyThresholdCount
* The number of consecutive health check failures required before considering the target unhealthy.
*/
public void setUnhealthyThresholdCount(Integer unhealthyThresholdCount) {
this.unhealthyThresholdCount = unhealthyThresholdCount;
}
/**
*
* The number of consecutive health check failures required before considering the target unhealthy.
*
*
* @return The number of consecutive health check failures required before considering the target unhealthy.
*/
public Integer getUnhealthyThresholdCount() {
return this.unhealthyThresholdCount;
}
/**
*
* The number of consecutive health check failures required before considering the target unhealthy.
*
*
* @param unhealthyThresholdCount
* The number of consecutive health check failures required before considering the target unhealthy.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTargetGroupRequest withUnhealthyThresholdCount(Integer unhealthyThresholdCount) {
setUnhealthyThresholdCount(unhealthyThresholdCount);
return this;
}
/**
*
* [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.
* For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a
* protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is
* 200-399.
*
*
* @param matcher
* [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a
* target. For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target
* groups with a protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of
* GENEVE, the range is 200-399.
*/
public void setMatcher(Matcher matcher) {
this.matcher = matcher;
}
/**
*
* [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.
* For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a
* protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is
* 200-399.
*
*
* @return [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a
* target. For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target
* groups with a protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of
* GENEVE, the range is 200-399.
*/
public Matcher getMatcher() {
return this.matcher;
}
/**
*
* [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.
* For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a
* protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is
* 200-399.
*
*
* @param matcher
* [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a
* target. For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target
* groups with a protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of
* GENEVE, the range is 200-399.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyTargetGroupRequest withMatcher(Matcher matcher) {
setMatcher(matcher);
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 (getTargetGroupArn() != null)
sb.append("TargetGroupArn: ").append(getTargetGroupArn()).append(",");
if (getHealthCheckProtocol() != null)
sb.append("HealthCheckProtocol: ").append(getHealthCheckProtocol()).append(",");
if (getHealthCheckPort() != null)
sb.append("HealthCheckPort: ").append(getHealthCheckPort()).append(",");
if (getHealthCheckPath() != null)
sb.append("HealthCheckPath: ").append(getHealthCheckPath()).append(",");
if (getHealthCheckEnabled() != null)
sb.append("HealthCheckEnabled: ").append(getHealthCheckEnabled()).append(",");
if (getHealthCheckIntervalSeconds() != null)
sb.append("HealthCheckIntervalSeconds: ").append(getHealthCheckIntervalSeconds()).append(",");
if (getHealthCheckTimeoutSeconds() != null)
sb.append("HealthCheckTimeoutSeconds: ").append(getHealthCheckTimeoutSeconds()).append(",");
if (getHealthyThresholdCount() != null)
sb.append("HealthyThresholdCount: ").append(getHealthyThresholdCount()).append(",");
if (getUnhealthyThresholdCount() != null)
sb.append("UnhealthyThresholdCount: ").append(getUnhealthyThresholdCount()).append(",");
if (getMatcher() != null)
sb.append("Matcher: ").append(getMatcher());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ModifyTargetGroupRequest == false)
return false;
ModifyTargetGroupRequest other = (ModifyTargetGroupRequest) obj;
if (other.getTargetGroupArn() == null ^ this.getTargetGroupArn() == null)
return false;
if (other.getTargetGroupArn() != null && other.getTargetGroupArn().equals(this.getTargetGroupArn()) == 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.getHealthCheckPort() == null ^ this.getHealthCheckPort() == null)
return false;
if (other.getHealthCheckPort() != null && other.getHealthCheckPort().equals(this.getHealthCheckPort()) == 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.getHealthCheckEnabled() == null ^ this.getHealthCheckEnabled() == null)
return false;
if (other.getHealthCheckEnabled() != null && other.getHealthCheckEnabled().equals(this.getHealthCheckEnabled()) == 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.getHealthCheckTimeoutSeconds() == null ^ this.getHealthCheckTimeoutSeconds() == null)
return false;
if (other.getHealthCheckTimeoutSeconds() != null && other.getHealthCheckTimeoutSeconds().equals(this.getHealthCheckTimeoutSeconds()) == false)
return false;
if (other.getHealthyThresholdCount() == null ^ this.getHealthyThresholdCount() == null)
return false;
if (other.getHealthyThresholdCount() != null && other.getHealthyThresholdCount().equals(this.getHealthyThresholdCount()) == false)
return false;
if (other.getUnhealthyThresholdCount() == null ^ this.getUnhealthyThresholdCount() == null)
return false;
if (other.getUnhealthyThresholdCount() != null && other.getUnhealthyThresholdCount().equals(this.getUnhealthyThresholdCount()) == false)
return false;
if (other.getMatcher() == null ^ this.getMatcher() == null)
return false;
if (other.getMatcher() != null && other.getMatcher().equals(this.getMatcher()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getTargetGroupArn() == null) ? 0 : getTargetGroupArn().hashCode());
hashCode = prime * hashCode + ((getHealthCheckProtocol() == null) ? 0 : getHealthCheckProtocol().hashCode());
hashCode = prime * hashCode + ((getHealthCheckPort() == null) ? 0 : getHealthCheckPort().hashCode());
hashCode = prime * hashCode + ((getHealthCheckPath() == null) ? 0 : getHealthCheckPath().hashCode());
hashCode = prime * hashCode + ((getHealthCheckEnabled() == null) ? 0 : getHealthCheckEnabled().hashCode());
hashCode = prime * hashCode + ((getHealthCheckIntervalSeconds() == null) ? 0 : getHealthCheckIntervalSeconds().hashCode());
hashCode = prime * hashCode + ((getHealthCheckTimeoutSeconds() == null) ? 0 : getHealthCheckTimeoutSeconds().hashCode());
hashCode = prime * hashCode + ((getHealthyThresholdCount() == null) ? 0 : getHealthyThresholdCount().hashCode());
hashCode = prime * hashCode + ((getUnhealthyThresholdCount() == null) ? 0 : getUnhealthyThresholdCount().hashCode());
hashCode = prime * hashCode + ((getMatcher() == null) ? 0 : getMatcher().hashCode());
return hashCode;
}
@Override
public ModifyTargetGroupRequest clone() {
return (ModifyTargetGroupRequest) super.clone();
}
}