Interface ListHealthEventsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListHealthEventsResponse.Builder,ListHealthEventsResponse>,InternetMonitorResponse.Builder,SdkBuilder<ListHealthEventsResponse.Builder,ListHealthEventsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListHealthEventsResponse
public static interface ListHealthEventsResponse.Builder extends InternetMonitorResponse.Builder, SdkPojo, CopyableBuilder<ListHealthEventsResponse.Builder,ListHealthEventsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListHealthEventsResponse.BuilderhealthEvents(Collection<HealthEvent> healthEvents)A list of health events.ListHealthEventsResponse.BuilderhealthEvents(Consumer<HealthEvent.Builder>... healthEvents)A list of health events.ListHealthEventsResponse.BuilderhealthEvents(HealthEvent... healthEvents)A list of health events.ListHealthEventsResponse.BuildernextToken(String nextToken)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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
healthEvents
ListHealthEventsResponse.Builder healthEvents(Collection<HealthEvent> 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
ListHealthEventsResponse.Builder healthEvents(HealthEvent... 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
ListHealthEventsResponse.Builder healthEvents(Consumer<HealthEvent.Builder>... healthEvents)
A list of health events.
This is a convenience method that creates an instance of theHealthEvent.Builderavoiding the need to create one manually viaHealthEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#healthEvents(List.) - 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:
#healthEvents(java.util.Collection)
-
nextToken
ListHealthEventsResponse.Builder nextToken(String 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.
-
-