Class Command
- java.lang.Object
-
- software.amazon.awssdk.services.opsworks.model.Command
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Command.Builder,Command>
@Generated("software.amazon.awssdk:codegen") public final class Command extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Command.Builder,Command>
Describes a command.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCommand.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringacknowledgedAt()Date and time when the command was acknowledged.static Command.Builderbuilder()StringcommandId()The command ID.StringcompletedAt()Date when the command completed.StringcreatedAt()Date and time when the command was run.StringdeploymentId()The command deployment ID.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)IntegerexitCode()The command exit code.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceId()The ID of the instance where the command was executed.StringlogUrl()The URL of the command log.List<SdkField<?>>sdkFields()static Class<? extends Command.Builder>serializableBuilderClass()Stringstatus()The command status:Command.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringtype()The command type:-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
commandId
public final String commandId()
The command ID.
- Returns:
- The command ID.
-
instanceId
public final String instanceId()
The ID of the instance where the command was executed.
- Returns:
- The ID of the instance where the command was executed.
-
deploymentId
public final String deploymentId()
The command deployment ID.
- Returns:
- The command deployment ID.
-
createdAt
public final String createdAt()
Date and time when the command was run.
- Returns:
- Date and time when the command was run.
-
acknowledgedAt
public final String acknowledgedAt()
Date and time when the command was acknowledged.
- Returns:
- Date and time when the command was acknowledged.
-
completedAt
public final String completedAt()
Date when the command completed.
- Returns:
- Date when the command completed.
-
status
public final String status()
The command status:
-
failed
-
successful
-
skipped
-
pending
- Returns:
- The command status:
-
failed
-
successful
-
skipped
-
pending
-
-
-
exitCode
public final Integer exitCode()
The command exit code.
- Returns:
- The command exit code.
-
logUrl
public final String logUrl()
The URL of the command log.
- Returns:
- The URL of the command log.
-
type
public final String type()
The command type:
-
configure -
deploy -
execute_recipes -
install_dependencies -
restart -
rollback -
setup -
start -
stop -
undeploy -
update_custom_cookbooks -
update_dependencies
- Returns:
- The command type:
-
configure -
deploy -
execute_recipes -
install_dependencies -
restart -
rollback -
setup -
start -
stop -
undeploy -
update_custom_cookbooks -
update_dependencies
-
-
-
toBuilder
public Command.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Command.Builder,Command>
-
builder
public static Command.Builder builder()
-
serializableBuilderClass
public static Class<? extends Command.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-