Interface TestRunSourceEventDetail.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TestRunSourceEventDetail.Builder,,TestRunSourceEventDetail> SdkBuilder<TestRunSourceEventDetail.Builder,,TestRunSourceEventDetail> SdkPojo
- Enclosing class:
TestRunSourceEventDetail
@Mutable
@NotThreadSafe
public static interface TestRunSourceEventDetail.Builder
extends SdkPojo, CopyableBuilder<TestRunSourceEventDetail.Builder,TestRunSourceEventDetail>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TestRunSourceEventDetail.BuilderalarmStateChange(Consumer<AlarmStateChangeDetail.Builder> alarmStateChange) A CloudWatch alarm state change.alarmStateChange(AlarmStateChangeDetail alarmStateChange) A CloudWatch alarm state change.default TestRunSourceEventDetail.BuilderAn error that prevented event collection from the source.error(TestRunSourceEventError error) An error that prevented event collection from the source.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
-
alarmStateChange
A CloudWatch alarm state change.
- Parameters:
alarmStateChange- A CloudWatch alarm state change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmStateChange
default TestRunSourceEventDetail.Builder alarmStateChange(Consumer<AlarmStateChangeDetail.Builder> alarmStateChange) A CloudWatch alarm state change.
This is a convenience method that creates an instance of theAlarmStateChangeDetail.Builderavoiding the need to create one manually viaAlarmStateChangeDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toalarmStateChange(AlarmStateChangeDetail).- Parameters:
alarmStateChange- a consumer that will call methods onAlarmStateChangeDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
error
An error that prevented event collection from the source.
- Parameters:
error- An error that prevented event collection from the source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
An error that prevented event collection from the source.
This is a convenience method that creates an instance of theTestRunSourceEventError.Builderavoiding the need to create one manually viaTestRunSourceEventError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(TestRunSourceEventError).- Parameters:
error- a consumer that will call methods onTestRunSourceEventError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-