Interface Command.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Command.Builder,
,Command> SdkBuilder<Command.Builder,
,Command> SdkPojo
- Enclosing class:
Command
-
Method Summary
Modifier and TypeMethodDescriptiondefault Command.Builder
reboot
(Consumer<Reboot.Builder> reboot) Reboots the device.Reboots the device.default Command.Builder
unlock
(Consumer<Unlock.Builder> unlock) Unlocks the device.Unlocks the device.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
-
reboot
Reboots the device.
- Parameters:
reboot
- Reboots the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reboot
Reboots the device.
This is a convenience method that creates an instance of theReboot.Builder
avoiding the need to create one manually viaReboot.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreboot(Reboot)
.- Parameters:
reboot
- a consumer that will call methods onReboot.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unlock
Unlocks the device.
- Parameters:
unlock
- Unlocks the device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unlock
Unlocks the device.
This is a convenience method that creates an instance of theUnlock.Builder
avoiding the need to create one manually viaUnlock.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tounlock(Unlock)
.- Parameters:
unlock
- a consumer that will call methods onUnlock.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-