Interface DeviceState.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DeviceState.Builder,DeviceState>,SdkBuilder<DeviceState.Builder,DeviceState>,SdkPojo
- Enclosing class:
- DeviceState
public static interface DeviceState.Builder extends SdkPojo, CopyableBuilder<DeviceState.Builder,DeviceState>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DeviceState.Builderaccuracy(Consumer<PositionalAccuracy.Builder> accuracy)Sets the value of the Accuracy property for this object.DeviceState.Builderaccuracy(PositionalAccuracy accuracy)Sets the value of the Accuracy property for this object.default DeviceState.BuildercellSignals(Consumer<CellSignals.Builder> cellSignals)The cellular network infrastructure that the device is connected to.DeviceState.BuildercellSignals(CellSignals cellSignals)The cellular network infrastructure that the device is connected to.DeviceState.BuilderdeviceId(String deviceId)The device identifier.DeviceState.Builderipv4Address(String ipv4Address)The device's Ipv4 address.DeviceState.Builderposition(Double... position)The last known device position.DeviceState.Builderposition(Collection<Double> position)The last known device position.DeviceState.BuildersampleTime(Instant sampleTime)The timestamp at which the device's position was determined.DeviceState.BuilderwiFiAccessPoints(Collection<WiFiAccessPoint> wiFiAccessPoints)The Wi-Fi access points the device is using.DeviceState.BuilderwiFiAccessPoints(Consumer<WiFiAccessPoint.Builder>... wiFiAccessPoints)The Wi-Fi access points the device is using.DeviceState.BuilderwiFiAccessPoints(WiFiAccessPoint... wiFiAccessPoints)The Wi-Fi access points the device is using.-
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 Detail
-
deviceId
DeviceState.Builder deviceId(String deviceId)
The device identifier.
- Parameters:
deviceId- The device identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleTime
DeviceState.Builder sampleTime(Instant sampleTime)
The timestamp at which the device's position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.- Parameters:
sampleTime- The timestamp at which the device's position was determined. Uses ISO 8601 format:YYYY-MM-DDThh:mm:ss.sssZ.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
position
DeviceState.Builder position(Collection<Double> position)
The last known device position.
- Parameters:
position- The last known device position.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
position
DeviceState.Builder position(Double... position)
The last known device position.
- Parameters:
position- The last known device position.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accuracy
DeviceState.Builder accuracy(PositionalAccuracy accuracy)
Sets the value of the Accuracy property for this object.- Parameters:
accuracy- The new value for the Accuracy property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accuracy
default DeviceState.Builder accuracy(Consumer<PositionalAccuracy.Builder> accuracy)
Sets the value of the Accuracy property for this object. This is a convenience method that creates an instance of thePositionalAccuracy.Builderavoiding the need to create one manually viaPositionalAccuracy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccuracy(PositionalAccuracy).- Parameters:
accuracy- a consumer that will call methods onPositionalAccuracy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
accuracy(PositionalAccuracy)
-
ipv4Address
DeviceState.Builder ipv4Address(String ipv4Address)
The device's Ipv4 address.
- Parameters:
ipv4Address- The device's Ipv4 address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wiFiAccessPoints
DeviceState.Builder wiFiAccessPoints(Collection<WiFiAccessPoint> wiFiAccessPoints)
The Wi-Fi access points the device is using.
- Parameters:
wiFiAccessPoints- The Wi-Fi access points the device is using.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wiFiAccessPoints
DeviceState.Builder wiFiAccessPoints(WiFiAccessPoint... wiFiAccessPoints)
The Wi-Fi access points the device is using.
- Parameters:
wiFiAccessPoints- The Wi-Fi access points the device is using.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wiFiAccessPoints
DeviceState.Builder wiFiAccessPoints(Consumer<WiFiAccessPoint.Builder>... wiFiAccessPoints)
The Wi-Fi access points the device is using.
This is a convenience method that creates an instance of theWiFiAccessPoint.Builderavoiding the need to create one manually viaWiFiAccessPoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#wiFiAccessPoints(List.) - Parameters:
wiFiAccessPoints- a consumer that will call methods onWiFiAccessPoint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#wiFiAccessPoints(java.util.Collection)
-
cellSignals
DeviceState.Builder cellSignals(CellSignals cellSignals)
The cellular network infrastructure that the device is connected to.
- Parameters:
cellSignals- The cellular network infrastructure that the device is connected to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cellSignals
default DeviceState.Builder cellSignals(Consumer<CellSignals.Builder> cellSignals)
The cellular network infrastructure that the device is connected to.
This is a convenience method that creates an instance of theCellSignals.Builderavoiding the need to create one manually viaCellSignals.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocellSignals(CellSignals).- Parameters:
cellSignals- a consumer that will call methods onCellSignals.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
cellSignals(CellSignals)
-
-