@Generated(value="software.amazon.awssdk:codegen") public final class Command extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Command.Builder,Command>
Describes a command.
Modifier and Type | Class and Description |
---|---|
static interface |
Command.Builder |
Modifier and Type | Method and Description |
---|---|
String |
acknowledgedAt()
Date and time when the command was acknowledged.
|
static Command.Builder |
builder() |
String |
commandId()
The command ID.
|
String |
completedAt()
Date when the command completed.
|
String |
createdAt()
Date and time when the command was run.
|
String |
deploymentId()
The command deployment ID.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
Integer |
exitCode()
The command exit code.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceId()
The ID of the instance where the command was executed.
|
String |
logUrl()
The URL of the command log.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Command.Builder> |
serializableBuilderClass() |
String |
status()
The command status:
|
Command.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
String |
type()
The command type:
|
copy
public final String commandId()
The command ID.
public final String instanceId()
The ID of the instance where the command was executed.
public final String deploymentId()
The command deployment ID.
public final String createdAt()
Date and time when the command was run.
public final String acknowledgedAt()
Date and time when the command was acknowledged.
public final String completedAt()
Date when the command completed.
public final String status()
The command status:
failed
successful
skipped
pending
failed
successful
skipped
pending
public final Integer exitCode()
The command exit code.
public final String logUrl()
The URL of the command log.
public final String type()
The command type:
configure
deploy
execute_recipes
install_dependencies
restart
rollback
setup
start
stop
undeploy
update_custom_cookbooks
update_dependencies
configure
deploy
execute_recipes
install_dependencies
restart
rollback
setup
start
stop
undeploy
update_custom_cookbooks
update_dependencies
public Command.Builder toBuilder()
ToCopyableBuilder
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)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.