Interface ListMonitorsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListMonitorsResponse.Builder,
,ListMonitorsResponse> InternetMonitorResponse.Builder
,SdkBuilder<ListMonitorsResponse.Builder,
,ListMonitorsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListMonitorsResponse
public static interface ListMonitorsResponse.Builder
extends InternetMonitorResponse.Builder, SdkPojo, CopyableBuilder<ListMonitorsResponse.Builder,ListMonitorsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmonitors
(Collection<Monitor> monitors) A list of monitors.monitors
(Consumer<Monitor.Builder>... monitors) A list of monitors.A list of monitors.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 Details
-
monitors
A list of monitors.
- Parameters:
monitors
- A list of monitors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitors
A list of monitors.
- Parameters:
monitors
- A list of monitors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitors
A list of monitors.
This is a convenience method that creates an instance of theMonitor.Builder
avoiding the need to create one manually viaMonitor.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomonitors(List<Monitor>)
.- Parameters:
monitors
- a consumer that will call methods onMonitor.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.
-