Interface CanaryRunStatus.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<CanaryRunStatus.Builder,,- CanaryRunStatus> - SdkBuilder<CanaryRunStatus.Builder,,- CanaryRunStatus> - SdkPojo
- Enclosing class:
- CanaryRunStatus
- 
Method SummaryModifier and TypeMethodDescriptionThe current state of the run.state(CanaryRunState state) The current state of the run.stateReason(String stateReason) If run of the canary failed, this field contains the reason for the error.stateReasonCode(String stateReasonCode) If this value isCANARY_FAILURE, either the canary script failed or Synthetics ran into a fatal error when running the canary.stateReasonCode(CanaryRunStateReasonCode stateReasonCode) If this value isCANARY_FAILURE, either the canary script failed or Synthetics ran into a fatal error when running the canary.testResult(String testResult) Specifies the status of canary script for this run.testResult(CanaryRunTestResult testResult) Specifies the status of canary script for this run.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
stateThe current state of the run. - Parameters:
- state- The current state of the run.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
stateThe current state of the run. - Parameters:
- state- The current state of the run.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
stateReasonIf run of the canary failed, this field contains the reason for the error. - Parameters:
- stateReason- If run of the canary failed, this field contains the reason for the error.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
stateReasonCodeIf this value is CANARY_FAILURE, either the canary script failed or Synthetics ran into a fatal error when running the canary. For example, a canary timeout misconfiguration setting can cause the canary to timeout before Synthetics can evaluate its status.If this value is EXECUTION_FAILURE, a non-critical failure occurred such as failing to save generated debug artifacts (for example, screenshots or har files).If both types of failures occurred, the CANARY_FAILUREtakes precedence. To understand the exact error, use the StateReason API.- Parameters:
- stateReasonCode- If this value is- CANARY_FAILURE, either the canary script failed or Synthetics ran into a fatal error when running the canary. For example, a canary timeout misconfiguration setting can cause the canary to timeout before Synthetics can evaluate its status.- If this value is - EXECUTION_FAILURE, a non-critical failure occurred such as failing to save generated debug artifacts (for example, screenshots or har files).- If both types of failures occurred, the - CANARY_FAILUREtakes precedence. To understand the exact error, use the StateReason API.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
stateReasonCodeIf this value is CANARY_FAILURE, either the canary script failed or Synthetics ran into a fatal error when running the canary. For example, a canary timeout misconfiguration setting can cause the canary to timeout before Synthetics can evaluate its status.If this value is EXECUTION_FAILURE, a non-critical failure occurred such as failing to save generated debug artifacts (for example, screenshots or har files).If both types of failures occurred, the CANARY_FAILUREtakes precedence. To understand the exact error, use the StateReason API.- Parameters:
- stateReasonCode- If this value is- CANARY_FAILURE, either the canary script failed or Synthetics ran into a fatal error when running the canary. For example, a canary timeout misconfiguration setting can cause the canary to timeout before Synthetics can evaluate its status.- If this value is - EXECUTION_FAILURE, a non-critical failure occurred such as failing to save generated debug artifacts (for example, screenshots or har files).- If both types of failures occurred, the - CANARY_FAILUREtakes precedence. To understand the exact error, use the StateReason API.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
testResultSpecifies the status of canary script for this run. When Synthetics tries to determine the status but fails, the result is marked as UNKNOWN. For the overall status of canary run, see State.- Parameters:
- testResult- Specifies the status of canary script for this run. When Synthetics tries to determine the status but fails, the result is marked as- UNKNOWN. For the overall status of canary run, see State.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
testResultSpecifies the status of canary script for this run. When Synthetics tries to determine the status but fails, the result is marked as UNKNOWN. For the overall status of canary run, see State.- Parameters:
- testResult- Specifies the status of canary script for this run. When Synthetics tries to determine the status but fails, the result is marked as- UNKNOWN. For the overall status of canary run, see State.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-