Interface DeviceType.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DeviceType.Builder,
,DeviceType> SdkBuilder<DeviceType.Builder,
,DeviceType> SdkPojo
- Enclosing class:
DeviceType
public static interface DeviceType.Builder
extends SdkPojo, CopyableBuilder<DeviceType.Builder,DeviceType>
-
Method Summary
Modifier and TypeMethodDescriptiondeviceAttributes
(Collection<AttributeType> deviceAttributes) The device attributes.deviceAttributes
(Consumer<AttributeType.Builder>... deviceAttributes) The device attributes.deviceAttributes
(AttributeType... deviceAttributes) The device attributes.deviceCreateDate
(Instant deviceCreateDate) The creation date of the device.The device key.deviceLastAuthenticatedDate
(Instant deviceLastAuthenticatedDate) The date when the device was last authenticated.deviceLastModifiedDate
(Instant deviceLastModifiedDate) The date and time when the item was modified.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
deviceKey
The device key.
- Parameters:
deviceKey
- The device key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceAttributes
The device attributes.
- Parameters:
deviceAttributes
- The device attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceAttributes
The device attributes.
- Parameters:
deviceAttributes
- The device attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceAttributes
The device attributes.
This is a convenience method that creates an instance of theAttributeType.Builder
avoiding the need to create one manually viaAttributeType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeviceAttributes(List<AttributeType>)
.- Parameters:
deviceAttributes
- a consumer that will call methods onAttributeType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deviceCreateDate
The creation date of the device.
- Parameters:
deviceCreateDate
- The creation date of the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceLastModifiedDate
The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java
Date
object.- Parameters:
deviceLastModifiedDate
- The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a JavaDate
object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceLastAuthenticatedDate
The date when the device was last authenticated.
- Parameters:
deviceLastAuthenticatedDate
- The date when the device was last authenticated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-