Interface ListHealthEventsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListHealthEventsResponse.Builder,
,ListHealthEventsResponse> InternetMonitorResponse.Builder
,SdkBuilder<ListHealthEventsResponse.Builder,
,ListHealthEventsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListHealthEventsResponse
@Mutable
@NotThreadSafe
public static interface ListHealthEventsResponse.Builder
extends InternetMonitorResponse.Builder, SdkPojo, CopyableBuilder<ListHealthEventsResponse.Builder,ListHealthEventsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionhealthEvents
(Collection<HealthEvent> healthEvents) A list of health events.healthEvents
(Consumer<HealthEvent.Builder>... healthEvents) A list of health events.healthEvents
(HealthEvent... healthEvents) A list of health events.The token for the next set of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.internetmonitor.model.InternetMonitorResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
healthEvents
A list of health events.
- Parameters:
healthEvents
- A list of health events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthEvents
A list of health events.
- Parameters:
healthEvents
- A list of health events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthEvents
A list of health events.
This is a convenience method that creates an instance of theHealthEvent.Builder
avoiding the need to create one manually viaHealthEvent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohealthEvents(List<HealthEvent>)
.- Parameters:
healthEvents
- a consumer that will call methods onHealthEvent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token for the next set of results. You receive this token from a previous call.
- Parameters:
nextToken
- The token for the next set of results. You receive this token from a previous call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-