@Generated(value="software.amazon.awssdk:codegen") public final class StepExecution extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StepExecution.Builder,StepExecution>
Detailed information about an the execution state of an Automation step.
| Modifier and Type | Class and Description |
|---|---|
static interface |
StepExecution.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
action()
The action this step performs.
|
static StepExecution.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Instant |
executionEndTime()
If a step has finished execution, this contains the time the execution ended.
|
Instant |
executionStartTime()
If a step has begun execution, this contains the time the step started.
|
FailureDetails |
failureDetails()
Information about the Automation failure.
|
String |
failureMessage()
If a step failed, this message explains why the execution failed.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInputs()
For responses, this returns true if the service returned a value for the Inputs property.
|
boolean |
hasOutputs()
For responses, this returns true if the service returned a value for the Outputs property.
|
boolean |
hasOverriddenParameters()
For responses, this returns true if the service returned a value for the OverriddenParameters property.
|
boolean |
hasTargets()
For responses, this returns true if the service returned a value for the Targets property.
|
boolean |
hasTriggeredAlarms()
For responses, this returns true if the service returned a value for the TriggeredAlarms property.
|
boolean |
hasValidNextSteps()
For responses, this returns true if the service returned a value for the ValidNextSteps property.
|
Map<String,String> |
inputs()
Fully-resolved values passed into the step before execution.
|
Boolean |
isCritical()
The flag which can be used to help decide whether the failure of current step leads to the Automation failure.
|
Boolean |
isEnd()
The flag which can be used to end automation no matter whether the step succeeds or fails.
|
Integer |
maxAttempts()
The maximum number of tries to run the action of the step.
|
String |
nextStep()
The next step after the step succeeds.
|
String |
onFailure()
The action to take if the step fails.
|
Map<String,List<String>> |
outputs()
Returned values from the execution of the step.
|
Map<String,List<String>> |
overriddenParameters()
A user-specified list of parameters to override when running a step.
|
String |
response()
A message associated with the response code for an execution.
|
String |
responseCode()
The response code returned by the execution of the step.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends StepExecution.Builder> |
serializableBuilderClass() |
String |
stepExecutionId()
The unique ID of a step execution.
|
String |
stepName()
The name of this execution step.
|
AutomationExecutionStatus |
stepStatus()
The execution status for this step.
|
String |
stepStatusAsString()
The execution status for this step.
|
TargetLocation |
targetLocation()
The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current
Automation execution.
|
List<Target> |
targets()
The targets for the step execution.
|
Long |
timeoutSeconds()
The timeout seconds of the step.
|
StepExecution.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<AlarmStateInformation> |
triggeredAlarms()
The CloudWatch alarms that were invoked by the automation.
|
List<String> |
validNextSteps()
Strategies used when step fails, we support Continue and Abort.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String stepName()
The name of this execution step.
public final String action()
The action this step performs. The action determines the behavior of the step.
public final Long timeoutSeconds()
The timeout seconds of the step.
public final String onFailure()
The action to take if the step fails. The default value is Abort.
Abort.public final Integer maxAttempts()
The maximum number of tries to run the action of the step. The default value is 1.
1.public final Instant executionStartTime()
If a step has begun execution, this contains the time the step started. If the step is in Pending status, this field isn't populated.
public final Instant executionEndTime()
If a step has finished execution, this contains the time the execution ended. If the step hasn't yet concluded, this field isn't populated.
public final AutomationExecutionStatus stepStatus()
The execution status for this step.
If the service returns an enum value that is not available in the current SDK version, stepStatus will
return AutomationExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from stepStatusAsString().
AutomationExecutionStatuspublic final String stepStatusAsString()
The execution status for this step.
If the service returns an enum value that is not available in the current SDK version, stepStatus will
return AutomationExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from stepStatusAsString().
AutomationExecutionStatuspublic final String responseCode()
The response code returned by the execution of the step.
public final boolean hasInputs()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> inputs()
Fully-resolved values passed into the step before execution.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInputs() method.
public final boolean hasOutputs()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,List<String>> outputs()
Returned values from the execution of the step.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasOutputs() method.
public final String response()
A message associated with the response code for an execution.
public final String failureMessage()
If a step failed, this message explains why the execution failed.
public final FailureDetails failureDetails()
Information about the Automation failure.
public final String stepExecutionId()
The unique ID of a step execution.
public final boolean hasOverriddenParameters()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final Map<String,List<String>> overriddenParameters()
A user-specified list of parameters to override when running a step.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasOverriddenParameters() method.
public final Boolean isEnd()
The flag which can be used to end automation no matter whether the step succeeds or fails.
public final String nextStep()
The next step after the step succeeds.
public final Boolean isCritical()
The flag which can be used to help decide whether the failure of current step leads to the Automation failure.
public final boolean hasValidNextSteps()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> validNextSteps()
Strategies used when step fails, we support Continue and Abort. Abort will fail the automation when the step fails. Continue will ignore the failure of current step and allow automation to run the next step. With conditional branching, we add step:stepName to support the automation to go to another specific step.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasValidNextSteps() method.
public final boolean hasTargets()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Target> targets()
The targets for the step execution.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTargets() method.
public final TargetLocation targetLocation()
The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.
public final boolean hasTriggeredAlarms()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AlarmStateInformation> triggeredAlarms()
The CloudWatch alarms that were invoked by the automation.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTriggeredAlarms() method.
public StepExecution.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<StepExecution.Builder,StepExecution>public static StepExecution.Builder builder()
public static Class<? extends StepExecution.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.