Interface ListDeviceEventsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListDeviceEventsResponse.Builder,
,ListDeviceEventsResponse> Iot1ClickDevicesResponse.Builder
,SdkBuilder<ListDeviceEventsResponse.Builder,
,ListDeviceEventsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListDeviceEventsResponse
public static interface ListDeviceEventsResponse.Builder
extends Iot1ClickDevicesResponse.Builder, SdkPojo, CopyableBuilder<ListDeviceEventsResponse.Builder,ListDeviceEventsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionevents
(Collection<DeviceEvent> events) An array of zero or more elements describing the event(s) associated with the device.events
(Consumer<DeviceEvent.Builder>... events) An array of zero or more elements describing the event(s) associated with the device.events
(DeviceEvent... events) An array of zero or more elements describing the event(s) associated with the device.The token to retrieve the next set of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iot1clickdevices.model.Iot1ClickDevicesResponse.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
-
events
An array of zero or more elements describing the event(s) associated with the device.
- Parameters:
events
- An array of zero or more elements describing the event(s) associated with the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
An array of zero or more elements describing the event(s) associated with the device.
- Parameters:
events
- An array of zero or more elements describing the event(s) associated with the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
An array of zero or more elements describing the event(s) associated with the device.
This is a convenience method that creates an instance of theDeviceEvent.Builder
avoiding the need to create one manually viaDeviceEvent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toevents(List<DeviceEvent>)
.- Parameters:
events
- a consumer that will call methods onDeviceEvent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to retrieve the next set of results.
- Parameters:
nextToken
- The token to retrieve the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-