Interface Command.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Command.Builder,Command>,SdkBuilder<Command.Builder,Command>,SdkPojo
- Enclosing class:
- Command
public static interface Command.Builder extends SdkPojo, CopyableBuilder<Command.Builder,Command>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Command.Builderreboot(Consumer<Reboot.Builder> reboot)Reboots the device.Command.Builderreboot(Reboot reboot)Reboots the device.default Command.Builderunlock(Consumer<Unlock.Builder> unlock)Unlocks the device.Command.Builderunlock(Unlock unlock)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 Detail
-
reboot
Command.Builder reboot(Reboot 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
default Command.Builder reboot(Consumer<Reboot.Builder> 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:
reboot(Reboot)
-
unlock
Command.Builder unlock(Unlock 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
default Command.Builder unlock(Consumer<Unlock.Builder> 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:
unlock(Unlock)
-
-