Interface CreateApplicationStatusCheckRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateApplicationStatusCheckRequest.Builder,,CreateApplicationStatusCheckRequest> Ec2Request.Builder,SdkBuilder<CreateApplicationStatusCheckRequest.Builder,,CreateApplicationStatusCheckRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateApplicationStatusCheckRequest
-
Method Summary
Modifier and TypeMethodDescriptionaggregation(String aggregation) The aggregation setting for the application status check.aggregation(AggregationStatusEnum aggregation) The aggregation setting for the application status check.clientToken(String clientToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.deviceIndex(Integer deviceIndex) The index of the network device to use for the health check.Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response.failureThreshold(Integer failureThreshold) The number of consecutive failed health checks before the application status is considered impaired.healthCheckPaths(Collection<HealthCheckPathRequestObject> healthCheckPaths) The health check paths to use for the application status check.healthCheckPaths(Consumer<HealthCheckPathRequestObject.Builder>... healthCheckPaths) The health check paths to use for the application status check.healthCheckPaths(HealthCheckPathRequestObject... healthCheckPaths) The health check paths to use for the application status check.initializationGracePeriodSeconds(Integer initializationGracePeriodSeconds) The number of seconds to wait before starting health checks after an instance is launched.The interval, in seconds, between health checks.The IP scope to use for the health check.ipScope(IpScopeEnum ipScope) The IP scope to use for the health check.The IP version to use for the health check.ipVersion(IpVersionEnum ipVersion) The IP version to use for the health check.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The URL path to use for the health check HTTP request (for example,/healthor/status).The port to use for the health check.The protocol to use for the health check.protocol(NetworkProtocolEnum protocol) The protocol to use for the health check.statusCodeMatcher(String statusCodeMatcher) The HTTP status codes that indicate a successful health check response.successThreshold(Integer successThreshold) The number of consecutive successful health checks before the application status is considered healthy.tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to apply to the application status check.tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the application status check.tagSpecifications(TagSpecification... tagSpecifications) The tags to apply to the application status check.The amount of time, in seconds, to wait for a health check response before considering it failed.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
healthCheckPaths
CreateApplicationStatusCheckRequest.Builder healthCheckPaths(Collection<HealthCheckPathRequestObject> healthCheckPaths) The health check paths to use for the application status check. Health check paths define the network path from a source subnet to one or more destination subnets for cross-Availability Zone or Availability Zone to Local Zone health checking. If omitted, health checks are performed in the same subnet as the instance.
- Parameters:
healthCheckPaths- The health check paths to use for the application status check. Health check paths define the network path from a source subnet to one or more destination subnets for cross-Availability Zone or Availability Zone to Local Zone health checking. If omitted, health checks are performed in the same subnet as the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheckPaths
CreateApplicationStatusCheckRequest.Builder healthCheckPaths(HealthCheckPathRequestObject... healthCheckPaths) The health check paths to use for the application status check. Health check paths define the network path from a source subnet to one or more destination subnets for cross-Availability Zone or Availability Zone to Local Zone health checking. If omitted, health checks are performed in the same subnet as the instance.
- Parameters:
healthCheckPaths- The health check paths to use for the application status check. Health check paths define the network path from a source subnet to one or more destination subnets for cross-Availability Zone or Availability Zone to Local Zone health checking. If omitted, health checks are performed in the same subnet as the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheckPaths
CreateApplicationStatusCheckRequest.Builder healthCheckPaths(Consumer<HealthCheckPathRequestObject.Builder>... healthCheckPaths) The health check paths to use for the application status check. Health check paths define the network path from a source subnet to one or more destination subnets for cross-Availability Zone or Availability Zone to Local Zone health checking. If omitted, health checks are performed in the same subnet as the instance.
This is a convenience method that creates an instance of theHealthCheckPathRequestObject.Builderavoiding the need to create one manually viaHealthCheckPathRequestObject.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohealthCheckPaths(List<HealthCheckPathRequestObject>).- Parameters:
healthCheckPaths- a consumer that will call methods onHealthCheckPathRequestObject.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
aggregation
The aggregation setting for the application status check. When set to
included, the result of this check contributes to the instance-level application status reported byDescribeApplicationStatus. When set toexcluded, the check runs independently and does not affect the instance-level status. Valid values:included|excluded.- Parameters:
aggregation- The aggregation setting for the application status check. When set toincluded, the result of this check contributes to the instance-level application status reported byDescribeApplicationStatus. When set toexcluded, the check runs independently and does not affect the instance-level status. Valid values:included|excluded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
aggregation
The aggregation setting for the application status check. When set to
included, the result of this check contributes to the instance-level application status reported byDescribeApplicationStatus. When set toexcluded, the check runs independently and does not affect the instance-level status. Valid values:included|excluded.- Parameters:
aggregation- The aggregation setting for the application status check. When set toincluded, the result of this check contributes to the instance-level application status reported byDescribeApplicationStatus. When set toexcluded, the check runs independently and does not affect the instance-level status. Valid values:included|excluded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protocol
The protocol to use for the health check. Valid values:
http|https.- Parameters:
protocol- The protocol to use for the health check. Valid values:http|https.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protocol
The protocol to use for the health check. Valid values:
http|https.- Parameters:
protocol- The protocol to use for the health check. Valid values:http|https.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
port
The port to use for the health check. Valid values: 1 to 65535.
- Parameters:
port- The port to use for the health check. Valid values: 1 to 65535.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
path
The URL path to use for the health check HTTP request (for example,
/healthor/status).- Parameters:
path- The URL path to use for the health check HTTP request (for example,/healthor/status).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceIndex
The index of the network device to use for the health check. The value must be greater than or equal to 0.
- Parameters:
deviceIndex- The index of the network device to use for the health check. The value must be greater than or equal to 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipVersion
The IP version to use for the health check. Valid values:
ipv4andipv6.- Parameters:
ipVersion- The IP version to use for the health check. Valid values:ipv4andipv6.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipVersion
The IP version to use for the health check. Valid values:
ipv4andipv6.- Parameters:
ipVersion- The IP version to use for the health check. Valid values:ipv4andipv6.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipScope
The IP scope to use for the health check. Valid value:
private.- Parameters:
ipScope- The IP scope to use for the health check. Valid value:private.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipScope
The IP scope to use for the health check. Valid value:
private.- Parameters:
ipScope- The IP scope to use for the health check. Valid value:private.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
interval
The interval, in seconds, between health checks. Valid value: 60.
- Parameters:
interval- The interval, in seconds, between health checks. Valid value: 60.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeout
The amount of time, in seconds, to wait for a health check response before considering it failed. Valid values: 1 to 30. The value must be less than
Interval.- Parameters:
timeout- The amount of time, in seconds, to wait for a health check response before considering it failed. Valid values: 1 to 30. The value must be less thanInterval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureThreshold
The number of consecutive failed health checks before the application status is considered impaired. The value must be greater than 0.
- Parameters:
failureThreshold- The number of consecutive failed health checks before the application status is considered impaired. The value must be greater than 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successThreshold
The number of consecutive successful health checks before the application status is considered healthy. The value must be greater than 0.
- Parameters:
successThreshold- The number of consecutive successful health checks before the application status is considered healthy. The value must be greater than 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusCodeMatcher
The HTTP status codes that indicate a successful health check response. Specify a comma-separated list of individual status codes or ranges, for example,
200,202,300-399. For a range, the first value must be less than the second value. Maximum length: 64 characters. Default:200.- Parameters:
statusCodeMatcher- The HTTP status codes that indicate a successful health check response. Specify a comma-separated list of individual status codes or ranges, for example,200,202,300-399. For a range, the first value must be less than the second value. Maximum length: 64 characters. Default:200.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initializationGracePeriodSeconds
CreateApplicationStatusCheckRequest.Builder initializationGracePeriodSeconds(Integer initializationGracePeriodSeconds) The number of seconds to wait before starting health checks after an instance is launched. Valid values: 1 to 600.
- Parameters:
initializationGracePeriodSeconds- The number of seconds to wait before starting health checks after an instance is launched. Valid values: 1 to 600.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateApplicationStatusCheckRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to apply to the application status check.
- Parameters:
tagSpecifications- The tags to apply to the application status check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateApplicationStatusCheckRequest.Builder tagSpecifications(TagSpecification... tagSpecifications) The tags to apply to the application status check.
- Parameters:
tagSpecifications- The tags to apply to the application status check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateApplicationStatusCheckRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the application status check.
This is a convenience method that creates an instance of theTagSpecification.Builderavoiding the need to create one manually viaTagSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totagSpecifications(List<TagSpecification>).- Parameters:
tagSpecifications- a consumer that will call methods onTagSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
- Parameters:
clientToken- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.- Parameters:
dryRun- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateApplicationStatusCheckRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateApplicationStatusCheckRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-