Interface Device.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Device.Builder,
,Device> SdkBuilder<Device.Builder,
,Device> SdkPojo
- Enclosing class:
Device
-
Method Summary
Modifier and TypeMethodDescriptiondefault Device.Builder
awsLocation
(Consumer<AWSLocation.Builder> awsLocation) The Amazon Web Services location of the device.awsLocation
(AWSLocation awsLocation) The Amazon Web Services location of the device.The date and time that the site was created.description
(String description) The description of the device.The Amazon Resource Name (ARN) of the device.The ID of the device.globalNetworkId
(String globalNetworkId) The ID of the global network.default Device.Builder
location
(Consumer<Location.Builder> location) The site location.The site location.The device model.serialNumber
(String serialNumber) The device serial number.The site ID.The device state.state
(DeviceState state) The device state.tags
(Collection<Tag> tags) The tags for the device.tags
(Consumer<Tag.Builder>... tags) The tags for the device.The tags for the device.The device type.The device vendor.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, sdkFieldNameToField, sdkFields
-
Method Details
-
deviceId
The ID of the device.
- Parameters:
deviceId
- The ID of the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceArn
The Amazon Resource Name (ARN) of the device.
- Parameters:
deviceArn
- The Amazon Resource Name (ARN) of the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
globalNetworkId
The ID of the global network.
- Parameters:
globalNetworkId
- The ID of the global network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsLocation
The Amazon Web Services location of the device.
- Parameters:
awsLocation
- The Amazon Web Services location of the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsLocation
The Amazon Web Services location of the device.
This is a convenience method that creates an instance of theAWSLocation.Builder
avoiding the need to create one manually viaAWSLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toawsLocation(AWSLocation)
.- Parameters:
awsLocation
- a consumer that will call methods onAWSLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The description of the device.
- Parameters:
description
- The description of the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The device type.
- Parameters:
type
- The device type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vendor
The device vendor.
- Parameters:
vendor
- The device vendor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
model
The device model.
- Parameters:
model
- The device model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serialNumber
The device serial number.
- Parameters:
serialNumber
- The device serial number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The site location.
- Parameters:
location
- The site location.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The site location.
This is a convenience method that creates an instance of theLocation.Builder
avoiding the need to create one manually viaLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocation(Location)
.- Parameters:
location
- a consumer that will call methods onLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
siteId
The site ID.
- Parameters:
siteId
- The site ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The date and time that the site was created.
- Parameters:
createdAt
- The date and time that the site was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The device state.
- Parameters:
state
- The device state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The device state.
- Parameters:
state
- The device state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags for the device.
- Parameters:
tags
- The tags for the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the device.
- Parameters:
tags
- The tags for the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the device.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-