software.amazon.awssdk.services.globalaccelerator.model.UpdateEndpointGroupRequest Maven / Gradle / Ivy
Show all versions of globalaccelerator Show documentation
/*
* Copyright 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 software.amazon.awssdk.services.globalaccelerator.model;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*/
@Generated("software.amazon.awssdk:codegen")
public final class UpdateEndpointGroupRequest extends GlobalAcceleratorRequest implements
ToCopyableBuilder {
private static final SdkField ENDPOINT_GROUP_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("EndpointGroupArn").getter(getter(UpdateEndpointGroupRequest::endpointGroupArn))
.setter(setter(Builder::endpointGroupArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EndpointGroupArn").build()).build();
private static final SdkField> ENDPOINT_CONFIGURATIONS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("EndpointConfigurations")
.getter(getter(UpdateEndpointGroupRequest::endpointConfigurations))
.setter(setter(Builder::endpointConfigurations))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EndpointConfigurations").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.SDK_POJO)
.constructor(EndpointConfiguration::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final SdkField TRAFFIC_DIAL_PERCENTAGE_FIELD = SdkField. builder(MarshallingType.FLOAT)
.memberName("TrafficDialPercentage").getter(getter(UpdateEndpointGroupRequest::trafficDialPercentage))
.setter(setter(Builder::trafficDialPercentage))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TrafficDialPercentage").build())
.build();
private static final SdkField HEALTH_CHECK_PORT_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("HealthCheckPort").getter(getter(UpdateEndpointGroupRequest::healthCheckPort))
.setter(setter(Builder::healthCheckPort))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("HealthCheckPort").build()).build();
private static final SdkField HEALTH_CHECK_PROTOCOL_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("HealthCheckProtocol").getter(getter(UpdateEndpointGroupRequest::healthCheckProtocolAsString))
.setter(setter(Builder::healthCheckProtocol))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("HealthCheckProtocol").build())
.build();
private static final SdkField HEALTH_CHECK_PATH_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("HealthCheckPath").getter(getter(UpdateEndpointGroupRequest::healthCheckPath))
.setter(setter(Builder::healthCheckPath))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("HealthCheckPath").build()).build();
private static final SdkField HEALTH_CHECK_INTERVAL_SECONDS_FIELD = SdkField
. builder(MarshallingType.INTEGER)
.memberName("HealthCheckIntervalSeconds")
.getter(getter(UpdateEndpointGroupRequest::healthCheckIntervalSeconds))
.setter(setter(Builder::healthCheckIntervalSeconds))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("HealthCheckIntervalSeconds").build())
.build();
private static final SdkField THRESHOLD_COUNT_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("ThresholdCount").getter(getter(UpdateEndpointGroupRequest::thresholdCount))
.setter(setter(Builder::thresholdCount))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ThresholdCount").build()).build();
private static final SdkField> PORT_OVERRIDES_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("PortOverrides")
.getter(getter(UpdateEndpointGroupRequest::portOverrides))
.setter(setter(Builder::portOverrides))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PortOverrides").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.SDK_POJO)
.constructor(PortOverride::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ENDPOINT_GROUP_ARN_FIELD,
ENDPOINT_CONFIGURATIONS_FIELD, TRAFFIC_DIAL_PERCENTAGE_FIELD, HEALTH_CHECK_PORT_FIELD, HEALTH_CHECK_PROTOCOL_FIELD,
HEALTH_CHECK_PATH_FIELD, HEALTH_CHECK_INTERVAL_SECONDS_FIELD, THRESHOLD_COUNT_FIELD, PORT_OVERRIDES_FIELD));
private final String endpointGroupArn;
private final List endpointConfigurations;
private final Float trafficDialPercentage;
private final Integer healthCheckPort;
private final String healthCheckProtocol;
private final String healthCheckPath;
private final Integer healthCheckIntervalSeconds;
private final Integer thresholdCount;
private final List portOverrides;
private UpdateEndpointGroupRequest(BuilderImpl builder) {
super(builder);
this.endpointGroupArn = builder.endpointGroupArn;
this.endpointConfigurations = builder.endpointConfigurations;
this.trafficDialPercentage = builder.trafficDialPercentage;
this.healthCheckPort = builder.healthCheckPort;
this.healthCheckProtocol = builder.healthCheckProtocol;
this.healthCheckPath = builder.healthCheckPath;
this.healthCheckIntervalSeconds = builder.healthCheckIntervalSeconds;
this.thresholdCount = builder.thresholdCount;
this.portOverrides = builder.portOverrides;
}
/**
*
* The Amazon Resource Name (ARN) of the endpoint group.
*
*
* @return The Amazon Resource Name (ARN) of the endpoint group.
*/
public final String endpointGroupArn() {
return endpointGroupArn;
}
/**
* For responses, this returns true if the service returned a value for the EndpointConfigurations property. This
* DOES NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the
* property). This is useful because the SDK will never return a null collection or map, but you may need to
* differentiate between the service returning nothing (or null) and the service returning an empty collection or
* map. For requests, this returns true if a value for the property was specified in the request builder, and false
* if a value was not specified.
*/
public final boolean hasEndpointConfigurations() {
return endpointConfigurations != null && !(endpointConfigurations instanceof SdkAutoConstructList);
}
/**
*
* The list of endpoint objects. A resource must be valid and active when you add it as an endpoint.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasEndpointConfigurations} method.
*
*
* @return The list of endpoint objects. A resource must be valid and active when you add it as an endpoint.
*/
public final List endpointConfigurations() {
return 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.
*
*
* @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 final Float trafficDialPercentage() {
return 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.
*
*
* @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 final Integer healthCheckPort() {
return 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.
*
*
* If the service returns an enum value that is not available in the current SDK version,
* {@link #healthCheckProtocol} will return {@link HealthCheckProtocol#UNKNOWN_TO_SDK_VERSION}. The raw value
* returned by the service is available from {@link #healthCheckProtocolAsString}.
*
*
* @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 final HealthCheckProtocol healthCheckProtocol() {
return HealthCheckProtocol.fromValue(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.
*
*
* If the service returns an enum value that is not available in the current SDK version,
* {@link #healthCheckProtocol} will return {@link HealthCheckProtocol#UNKNOWN_TO_SDK_VERSION}. The raw value
* returned by the service is available from {@link #healthCheckProtocolAsString}.
*
*
* @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 final String healthCheckProtocolAsString() {
return 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 (/).
*
*
* @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 final String healthCheckPath() {
return healthCheckPath;
}
/**
*
* 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 final Integer healthCheckIntervalSeconds() {
return 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.
*
*
* @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 final Integer thresholdCount() {
return thresholdCount;
}
/**
* For responses, this returns true if the service returned a value for the PortOverrides property. This DOES NOT
* check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
* This is useful because the SDK will never return a null collection or map, but you may need to differentiate
* between the service returning nothing (or null) and the service returning an empty collection or map. For
* requests, this returns true if a value for the property was specified in the request builder, and false if a
* value was not specified.
*/
public final boolean hasPortOverrides() {
return portOverrides != null && !(portOverrides instanceof SdkAutoConstructList);
}
/**
*
* 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.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasPortOverrides} method.
*
*
* @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 final List portOverrides() {
return portOverrides;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + super.hashCode();
hashCode = 31 * hashCode + Objects.hashCode(endpointGroupArn());
hashCode = 31 * hashCode + Objects.hashCode(hasEndpointConfigurations() ? endpointConfigurations() : null);
hashCode = 31 * hashCode + Objects.hashCode(trafficDialPercentage());
hashCode = 31 * hashCode + Objects.hashCode(healthCheckPort());
hashCode = 31 * hashCode + Objects.hashCode(healthCheckProtocolAsString());
hashCode = 31 * hashCode + Objects.hashCode(healthCheckPath());
hashCode = 31 * hashCode + Objects.hashCode(healthCheckIntervalSeconds());
hashCode = 31 * hashCode + Objects.hashCode(thresholdCount());
hashCode = 31 * hashCode + Objects.hashCode(hasPortOverrides() ? portOverrides() : null);
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return super.equals(obj) && equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof UpdateEndpointGroupRequest)) {
return false;
}
UpdateEndpointGroupRequest other = (UpdateEndpointGroupRequest) obj;
return Objects.equals(endpointGroupArn(), other.endpointGroupArn())
&& hasEndpointConfigurations() == other.hasEndpointConfigurations()
&& Objects.equals(endpointConfigurations(), other.endpointConfigurations())
&& Objects.equals(trafficDialPercentage(), other.trafficDialPercentage())
&& Objects.equals(healthCheckPort(), other.healthCheckPort())
&& Objects.equals(healthCheckProtocolAsString(), other.healthCheckProtocolAsString())
&& Objects.equals(healthCheckPath(), other.healthCheckPath())
&& Objects.equals(healthCheckIntervalSeconds(), other.healthCheckIntervalSeconds())
&& Objects.equals(thresholdCount(), other.thresholdCount()) && hasPortOverrides() == other.hasPortOverrides()
&& Objects.equals(portOverrides(), other.portOverrides());
}
/**
* 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.
*/
@Override
public final String toString() {
return ToString.builder("UpdateEndpointGroupRequest").add("EndpointGroupArn", endpointGroupArn())
.add("EndpointConfigurations", hasEndpointConfigurations() ? endpointConfigurations() : null)
.add("TrafficDialPercentage", trafficDialPercentage()).add("HealthCheckPort", healthCheckPort())
.add("HealthCheckProtocol", healthCheckProtocolAsString()).add("HealthCheckPath", healthCheckPath())
.add("HealthCheckIntervalSeconds", healthCheckIntervalSeconds()).add("ThresholdCount", thresholdCount())
.add("PortOverrides", hasPortOverrides() ? portOverrides() : null).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "EndpointGroupArn":
return Optional.ofNullable(clazz.cast(endpointGroupArn()));
case "EndpointConfigurations":
return Optional.ofNullable(clazz.cast(endpointConfigurations()));
case "TrafficDialPercentage":
return Optional.ofNullable(clazz.cast(trafficDialPercentage()));
case "HealthCheckPort":
return Optional.ofNullable(clazz.cast(healthCheckPort()));
case "HealthCheckProtocol":
return Optional.ofNullable(clazz.cast(healthCheckProtocolAsString()));
case "HealthCheckPath":
return Optional.ofNullable(clazz.cast(healthCheckPath()));
case "HealthCheckIntervalSeconds":
return Optional.ofNullable(clazz.cast(healthCheckIntervalSeconds()));
case "ThresholdCount":
return Optional.ofNullable(clazz.cast(thresholdCount()));
case "PortOverrides":
return Optional.ofNullable(clazz.cast(portOverrides()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function
*
* 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.
*/
Builder portOverrides(Collection 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder portOverrides(PortOverride... 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.
*
* This is a convenience method that creates an instance of the
* {@link software.amazon.awssdk.services.globalaccelerator.model.PortOverride.Builder} avoiding the need to
* create one manually via
* {@link software.amazon.awssdk.services.globalaccelerator.model.PortOverride#builder()}.
*
*
* When the {@link Consumer} completes,
* {@link software.amazon.awssdk.services.globalaccelerator.model.PortOverride.Builder#build()} is called
* immediately and its result is passed to {@link #portOverrides(List)}.
*
* @param portOverrides
* a consumer that will call methods on
* {@link software.amazon.awssdk.services.globalaccelerator.model.PortOverride.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #portOverrides(java.util.Collection)
*/
Builder portOverrides(Consumer... portOverrides);
@Override
Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
@Override
Builder overrideConfiguration(Consumer builderConsumer);
}
static final class BuilderImpl extends GlobalAcceleratorRequest.BuilderImpl implements Builder {
private String endpointGroupArn;
private List endpointConfigurations = DefaultSdkAutoConstructList.getInstance();
private Float trafficDialPercentage;
private Integer healthCheckPort;
private String healthCheckProtocol;
private String healthCheckPath;
private Integer healthCheckIntervalSeconds;
private Integer thresholdCount;
private List portOverrides = DefaultSdkAutoConstructList.getInstance();
private BuilderImpl() {
}
private BuilderImpl(UpdateEndpointGroupRequest model) {
super(model);
endpointGroupArn(model.endpointGroupArn);
endpointConfigurations(model.endpointConfigurations);
trafficDialPercentage(model.trafficDialPercentage);
healthCheckPort(model.healthCheckPort);
healthCheckProtocol(model.healthCheckProtocol);
healthCheckPath(model.healthCheckPath);
healthCheckIntervalSeconds(model.healthCheckIntervalSeconds);
thresholdCount(model.thresholdCount);
portOverrides(model.portOverrides);
}
public final String getEndpointGroupArn() {
return endpointGroupArn;
}
public final void setEndpointGroupArn(String endpointGroupArn) {
this.endpointGroupArn = endpointGroupArn;
}
@Override
public final Builder endpointGroupArn(String endpointGroupArn) {
this.endpointGroupArn = endpointGroupArn;
return this;
}
public final List getEndpointConfigurations() {
List result = EndpointConfigurationsCopier.copyToBuilder(this.endpointConfigurations);
if (result instanceof SdkAutoConstructList) {
return null;
}
return result;
}
public final void setEndpointConfigurations(Collection endpointConfigurations) {
this.endpointConfigurations = EndpointConfigurationsCopier.copyFromBuilder(endpointConfigurations);
}
@Override
public final Builder endpointConfigurations(Collection endpointConfigurations) {
this.endpointConfigurations = EndpointConfigurationsCopier.copy(endpointConfigurations);
return this;
}
@Override
@SafeVarargs
public final Builder endpointConfigurations(EndpointConfiguration... endpointConfigurations) {
endpointConfigurations(Arrays.asList(endpointConfigurations));
return this;
}
@Override
@SafeVarargs
public final Builder endpointConfigurations(Consumer... endpointConfigurations) {
endpointConfigurations(Stream.of(endpointConfigurations)
.map(c -> EndpointConfiguration.builder().applyMutation(c).build()).collect(Collectors.toList()));
return this;
}
public final Float getTrafficDialPercentage() {
return trafficDialPercentage;
}
public final void setTrafficDialPercentage(Float trafficDialPercentage) {
this.trafficDialPercentage = trafficDialPercentage;
}
@Override
public final Builder trafficDialPercentage(Float trafficDialPercentage) {
this.trafficDialPercentage = trafficDialPercentage;
return this;
}
public final Integer getHealthCheckPort() {
return healthCheckPort;
}
public final void setHealthCheckPort(Integer healthCheckPort) {
this.healthCheckPort = healthCheckPort;
}
@Override
public final Builder healthCheckPort(Integer healthCheckPort) {
this.healthCheckPort = healthCheckPort;
return this;
}
public final String getHealthCheckProtocol() {
return healthCheckProtocol;
}
public final void setHealthCheckProtocol(String healthCheckProtocol) {
this.healthCheckProtocol = healthCheckProtocol;
}
@Override
public final Builder healthCheckProtocol(String healthCheckProtocol) {
this.healthCheckProtocol = healthCheckProtocol;
return this;
}
@Override
public final Builder healthCheckProtocol(HealthCheckProtocol healthCheckProtocol) {
this.healthCheckProtocol(healthCheckProtocol == null ? null : healthCheckProtocol.toString());
return this;
}
public final String getHealthCheckPath() {
return healthCheckPath;
}
public final void setHealthCheckPath(String healthCheckPath) {
this.healthCheckPath = healthCheckPath;
}
@Override
public final Builder healthCheckPath(String healthCheckPath) {
this.healthCheckPath = healthCheckPath;
return this;
}
public final Integer getHealthCheckIntervalSeconds() {
return healthCheckIntervalSeconds;
}
public final void setHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds) {
this.healthCheckIntervalSeconds = healthCheckIntervalSeconds;
}
@Override
public final Builder healthCheckIntervalSeconds(Integer healthCheckIntervalSeconds) {
this.healthCheckIntervalSeconds = healthCheckIntervalSeconds;
return this;
}
public final Integer getThresholdCount() {
return thresholdCount;
}
public final void setThresholdCount(Integer thresholdCount) {
this.thresholdCount = thresholdCount;
}
@Override
public final Builder thresholdCount(Integer thresholdCount) {
this.thresholdCount = thresholdCount;
return this;
}
public final List getPortOverrides() {
List result = PortOverridesCopier.copyToBuilder(this.portOverrides);
if (result instanceof SdkAutoConstructList) {
return null;
}
return result;
}
public final void setPortOverrides(Collection portOverrides) {
this.portOverrides = PortOverridesCopier.copyFromBuilder(portOverrides);
}
@Override
public final Builder portOverrides(Collection portOverrides) {
this.portOverrides = PortOverridesCopier.copy(portOverrides);
return this;
}
@Override
@SafeVarargs
public final Builder portOverrides(PortOverride... portOverrides) {
portOverrides(Arrays.asList(portOverrides));
return this;
}
@Override
@SafeVarargs
public final Builder portOverrides(Consumer... portOverrides) {
portOverrides(Stream.of(portOverrides).map(c -> PortOverride.builder().applyMutation(c).build())
.collect(Collectors.toList()));
return this;
}
@Override
public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
super.overrideConfiguration(overrideConfiguration);
return this;
}
@Override
public Builder overrideConfiguration(Consumer builderConsumer) {
super.overrideConfiguration(builderConsumer);
return this;
}
@Override
public UpdateEndpointGroupRequest build() {
return new UpdateEndpointGroupRequest(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
}
}