Interface TestRunSourceEvent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TestRunSourceEvent.Builder,,TestRunSourceEvent> SdkBuilder<TestRunSourceEvent.Builder,,TestRunSourceEvent> SdkPojo
- Enclosing class:
TestRunSourceEvent
@Mutable
@NotThreadSafe
public static interface TestRunSourceEvent.Builder
extends SdkPojo, CopyableBuilder<TestRunSourceEvent.Builder,TestRunSourceEvent>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TestRunSourceEvent.BuilderThe event payload.detail(TestRunSourceEventDetail detail) The event payload.The type of the event.eventType(TestRunSourceEventType eventType) The type of the event.The ARN of the monitoring source the event belongs to.The timestamp when the event occurred.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
-
timestamp
The timestamp when the event occurred.
- Parameters:
timestamp- The timestamp when the event occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceArn
The ARN of the monitoring source the event belongs to.
- Parameters:
sourceArn- The ARN of the monitoring source the event belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventType
The type of the event. ALARM indicates an event from a CloudWatch alarm source; the detail member carries either the alarm state change or a collection error.
- Parameters:
eventType- The type of the event. ALARM indicates an event from a CloudWatch alarm source; the detail member carries either the alarm state change or a collection error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventType
The type of the event. ALARM indicates an event from a CloudWatch alarm source; the detail member carries either the alarm state change or a collection error.
- Parameters:
eventType- The type of the event. ALARM indicates an event from a CloudWatch alarm source; the detail member carries either the alarm state change or a collection error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
detail
The event payload.
- Parameters:
detail- The event payload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
detail
The event payload.
This is a convenience method that creates an instance of theTestRunSourceEventDetail.Builderavoiding the need to create one manually viaTestRunSourceEventDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todetail(TestRunSourceEventDetail).- Parameters:
detail- a consumer that will call methods onTestRunSourceEventDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-