Class StepExecution
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<StepExecution.Builder,
StepExecution>
Detailed information about an the execution state of an Automation step.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
action()
The action this step performs.static StepExecution.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Instant
If a step has finished execution, this contains the time the execution ended.final Instant
If a step has begun execution, this contains the time the step started.final FailureDetails
Information about the Automation failure.final String
If a step failed, this message explains why the execution failed.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the Inputs property.final boolean
For responses, this returns true if the service returned a value for the Outputs property.final boolean
For responses, this returns true if the service returned a value for the OverriddenParameters property.final boolean
For responses, this returns true if the service returned a value for the Targets property.final boolean
For responses, this returns true if the service returned a value for the TriggeredAlarms property.final boolean
For responses, this returns true if the service returned a value for the ValidNextSteps property.inputs()
Fully-resolved values passed into the step before execution.final Boolean
The flag which can be used to help decide whether the failure of current step leads to the Automation failure.final Boolean
isEnd()
The flag which can be used to end automation no matter whether the step succeeds or fails.final Integer
The maximum number of tries to run the action of the step.final String
nextStep()
The next step after the step succeeds.final String
The action to take if the step fails.outputs()
Returned values from the execution of the step.A user-specified list of parameters to override when running a step.final ParentStepDetails
Information about the parent step.final String
response()
A message associated with the response code for an execution.final String
The response code returned by the execution of the step.static Class
<? extends StepExecution.Builder> final String
The unique ID of a step execution.final String
stepName()
The name of this execution step.The execution status for this step.final String
The execution status for this step.final TargetLocation
The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.targets()
The targets for the step execution.final Long
The timeout seconds of the step.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final List
<AlarmStateInformation> The CloudWatch alarms that were invoked by the automation.Strategies used when step fails, we support Continue and Abort.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
stepName
The name of this execution step.
- Returns:
- The name of this execution step.
-
action
The action this step performs. The action determines the behavior of the step.
- Returns:
- The action this step performs. The action determines the behavior of the step.
-
timeoutSeconds
The timeout seconds of the step.
- Returns:
- The timeout seconds of the step.
-
onFailure
The action to take if the step fails. The default value is
Abort
.- Returns:
- The action to take if the step fails. The default value is
Abort
.
-
maxAttempts
The maximum number of tries to run the action of the step. The default value is
1
.- Returns:
- The maximum number of tries to run the action of the step. The default value is
1
.
-
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.
- Returns:
- 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.
-
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.
- Returns:
- 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.
-
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 returnAutomationExecutionStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstepStatusAsString()
.- Returns:
- The execution status for this step.
- See Also:
-
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 returnAutomationExecutionStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstepStatusAsString()
.- Returns:
- The execution status for this step.
- See Also:
-
responseCode
The response code returned by the execution of the step.
- Returns:
- The response code returned by the execution of the step.
-
hasInputs
public final boolean hasInputs()For responses, this returns true if the service returned a value for the Inputs property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- Fully-resolved values passed into the step before execution.
-
hasOutputs
public final boolean hasOutputs()For responses, this returns true if the service returned a value for the Outputs property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- Returned values from the execution of the step.
-
response
A message associated with the response code for an execution.
- Returns:
- A message associated with the response code for an execution.
-
failureMessage
If a step failed, this message explains why the execution failed.
- Returns:
- If a step failed, this message explains why the execution failed.
-
failureDetails
Information about the Automation failure.
- Returns:
- Information about the Automation failure.
-
stepExecutionId
The unique ID of a step execution.
- Returns:
- The unique ID of a step execution.
-
hasOverriddenParameters
public final boolean hasOverriddenParameters()For responses, this returns true if the service returned a value for the OverriddenParameters property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- A user-specified list of parameters to override when running a step.
-
isEnd
The flag which can be used to end automation no matter whether the step succeeds or fails.
- Returns:
- The flag which can be used to end automation no matter whether the step succeeds or fails.
-
nextStep
The next step after the step succeeds.
- Returns:
- The next step after the step succeeds.
-
isCritical
The flag which can be used to help decide whether the failure of current step leads to the Automation failure.
- Returns:
- The flag which can be used to help decide whether the failure of current step leads to the Automation failure.
-
hasValidNextSteps
public final boolean hasValidNextSteps()For responses, this returns true if the service returned a value for the ValidNextSteps property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- 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.
-
hasTargets
public final boolean hasTargets()For responses, this returns true if the service returned a value for the Targets property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- The targets for the step execution.
-
targetLocation
The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.
- Returns:
- The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.
-
hasTriggeredAlarms
public final boolean hasTriggeredAlarms()For responses, this returns true if the service returned a value for the TriggeredAlarms property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- The CloudWatch alarms that were invoked by the automation.
-
parentStepDetails
Information about the parent step.
- Returns:
- Information about the parent step.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<StepExecution.Builder,
StepExecution> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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. -
getValueForField
-
sdkFields
-