Interface Command.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Command.Builder,,Command> SdkBuilder<Command.Builder,,Command> SdkPojo
- Enclosing class:
Command
-
Method Summary
Modifier and TypeMethodDescriptiondefault Command.Builderreboot(Consumer<Reboot.Builder> reboot) Reboots the device.Reboots the device.default Command.Builderunlock(Consumer<Unlock.Builder> unlock) Unlocks the device.Unlocks the device.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaReboot.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaUnlock.builder().When the
Consumercompletes,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:
-