@Generated(value="software.amazon.awssdk:codegen") public final class ListDeviceEventsRequest extends AlexaForBusinessRequest implements ToCopyableBuilder<ListDeviceEventsRequest.Builder,ListDeviceEventsRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
ListDeviceEventsRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static ListDeviceEventsRequest.Builder |
builder() |
String |
deviceArn()
The ARN of a device.
|
boolean |
equals(Object obj) |
DeviceEventType |
eventType()
The event type to filter device events.
|
String |
eventTypeAsString()
The event type to filter device events.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
Integer |
maxResults()
The maximum number of results to include in the response.
|
String |
nextToken()
An optional token returned from a prior request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ListDeviceEventsRequest.Builder> |
serializableBuilderClass() |
ListDeviceEventsRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String deviceArn()
The ARN of a device.
public DeviceEventType eventType()
The event type to filter device events. If EventType isn't specified, this returns a list of all device events in reverse chronological order. If EventType is specified, this returns a list of device events for that EventType in reverse chronological order.
If the service returns an enum value that is not available in the current SDK version, eventType
will
return DeviceEventType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
eventTypeAsString()
.
DeviceEventType
public String eventTypeAsString()
The event type to filter device events. If EventType isn't specified, this returns a list of all device events in reverse chronological order. If EventType is specified, this returns a list of device events for that EventType in reverse chronological order.
If the service returns an enum value that is not available in the current SDK version, eventType
will
return DeviceEventType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
eventTypeAsString()
.
DeviceEventType
public String nextToken()
An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response only includes results beyond the token, up to the value specified by MaxResults. When the end of results is reached, the response has a value of null.
public Integer maxResults()
The maximum number of results to include in the response. The default value is 50. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
public ListDeviceEventsRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ListDeviceEventsRequest.Builder,ListDeviceEventsRequest>
toBuilder
in class AlexaForBusinessRequest
public static ListDeviceEventsRequest.Builder builder()
public static Class<? extends ListDeviceEventsRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.