Interface ApplicationStatusReason.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ApplicationStatusReason.Builder,,ApplicationStatusReason> SdkBuilder<ApplicationStatusReason.Builder,,ApplicationStatusReason> SdkPojo
- Enclosing class:
ApplicationStatusReason
-
Method Summary
Modifier and TypeMethodDescriptionThe reason code for the application status check result.The protocol used for the health check.statusCode(Integer statusCode) The HTTP status code returned by the health check.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
code
The reason code for the application status check result. Possible values:
-
ResponseCodeMatched– The HTTP status code returned by the health check matched the configuredStatusCodeMatcher. -
ResponseCodeMismatch– The HTTP status code returned by the health check did not match the configuredStatusCodeMatcher. -
ConnectionTimeout– The connection to the target timed out. -
ResponseTimeout– The health check timed out while waiting for a response from the target. -
ConnectionRefused– The target refused the health check connection. -
ConnectionReset– The target reset the health check connection before returning a response.
Current health check results use the values in the preceding list. Legacy results that do not contain structured reason metadata can instead contain a producer error type, such as
Http Status CodeorHttpConnectTimeoutException.For
ResponseCodeMatchedandResponseCodeMismatch, thestatusCodefield contains the returned HTTP status code. Theprotocolfield contains the protocol used for the health check.- Parameters:
code- The reason code for the application status check result. Possible values:-
ResponseCodeMatched– The HTTP status code returned by the health check matched the configuredStatusCodeMatcher. -
ResponseCodeMismatch– The HTTP status code returned by the health check did not match the configuredStatusCodeMatcher. -
ConnectionTimeout– The connection to the target timed out. -
ResponseTimeout– The health check timed out while waiting for a response from the target. -
ConnectionRefused– The target refused the health check connection. -
ConnectionReset– The target reset the health check connection before returning a response.
Current health check results use the values in the preceding list. Legacy results that do not contain structured reason metadata can instead contain a producer error type, such as
Http Status CodeorHttpConnectTimeoutException.For
ResponseCodeMatchedandResponseCodeMismatch, thestatusCodefield contains the returned HTTP status code. Theprotocolfield contains the protocol used for the health check.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
statusCode
The HTTP status code returned by the health check.
- Parameters:
statusCode- The HTTP status code returned by the health check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocol
The protocol used for the health check. Possible values:
HTTPandHTTPS.- Parameters:
protocol- The protocol used for the health check. Possible values:HTTPandHTTPS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-