@Generated(value="software.amazon.awssdk:codegen") public final class Command extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Command.Builder,Command>
The command given to the device to execute.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Command.Builder |
static class |
Command.Type |
| Modifier and Type | Method and Description |
|---|---|
static Command.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static Command |
fromReboot(Consumer<Reboot.Builder> reboot)
Create an instance of this class with
reboot() initialized to the given value. |
static Command |
fromReboot(Reboot reboot)
Create an instance of this class with
reboot() initialized to the given value. |
static Command |
fromUnlock(Consumer<Unlock.Builder> unlock)
Create an instance of this class with
unlock() initialized to the given value. |
static Command |
fromUnlock(Unlock unlock)
Create an instance of this class with
unlock() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Reboot |
reboot()
Reboots the device.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Command.Builder> |
serializableBuilderClass() |
Command.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Command.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
Unlock |
unlock()
Unlocks the device.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Reboot reboot()
Reboots the device.
public final Unlock unlock()
Unlocks the device.
public Command.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Command.Builder,Command>public static Command.Builder builder()
public static Class<? extends Command.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static Command fromReboot(Reboot reboot)
reboot() initialized to the given value.
Reboots the device.
reboot - Reboots the device.public static Command fromReboot(Consumer<Reboot.Builder> reboot)
reboot() initialized to the given value.
Reboots the device.
reboot - Reboots the device.public static Command fromUnlock(Unlock unlock)
unlock() initialized to the given value.
Unlocks the device.
unlock - Unlocks the device.public static Command fromUnlock(Consumer<Unlock.Builder> unlock)
unlock() initialized to the given value.
Unlocks the device.
unlock - Unlocks the device.public Command.Type type()
Command.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be Command.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.