Class TestRun
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TestRun.Builder,TestRun>
Represents a single run of a test. Configuration is snapshotted from the test and service at the time the run is started.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AccountTargetingIndicates whether this test run targets a single account or multiple accounts.final StringIndicates whether this test run targets a single account or multiple accounts.static TestRun.Builderbuilder()final InstantendedAt()The timestamp when the test run ended.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringA human-readable reason for test run failure.final IntegerThe number of events recorded for the test run.final List<ExperimentDetails> The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the Experiments property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Parameters property.final booleanFor responses, this returns true if the service returned a value for the Regions property.final booleanFor responses, this returns true if the service returned a value for the StopConditions property.final LoggingConfigurationThe logging configuration snapshotted from the test when the run was started.The parameter values used for the test run.final PermissionModelThe permission model snapshotted from the service when the run was started.final TestRunPolicySnapshotpolicy()The resilience policy snapshotted from the service when the run was started.regions()The Regions snapshotted from the service when the run was started.final StringThe identifier of the ARC Region switch execution detected during the test run.final StringThe ARN of the ARC Region switch plan associated with the test run.The report configuration snapshotted from the service when the run was started.final ReportGenerationResultThe report generation result for the test run.final StringroleName()The IAM execution role name snapshotted from the test when the run was started.static Class<? extends TestRun.Builder> final StringThe ARN of the service the test run belongs to.final InstantThe timestamp when the test run started.final TestRunStatusstatus()The current status of the test run.final StringThe current status of the test run.final List<StopCondition> The stop conditions snapshotted from the test when the run was started.final StringtestId()The identifier of the test that was run.final StringThe unique identifier of the test run.final StringThe ARN of the test template snapshotted from the test when the run was started.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
testRunId
The unique identifier of the test run.
- Returns:
- The unique identifier of the test run.
-
testId
The identifier of the test that was run.
- Returns:
- The identifier of the test that was run.
-
status
The current status of the test run.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnTestRunStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the test run.
- See Also:
-
statusAsString
The current status of the test run.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnTestRunStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the test run.
- See Also:
-
serviceArn
The ARN of the service the test run belongs to.
- Returns:
- The ARN of the service the test run belongs to.
-
startedAt
The timestamp when the test run started.
- Returns:
- The timestamp when the test run started.
-
endedAt
The timestamp when the test run ended.
- Returns:
- The timestamp when the test run ended.
-
hasExperiments
public final boolean hasExperiments()For responses, this returns true if the service returned a value for the Experiments 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. -
experiments
The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.
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
hasExperiments()method.- Returns:
- The AWS Fault Injection Service (AWS FIS) experiments run as part of the test run.
-
eventCount
The number of events recorded for the test run. Use ListTestRunEvents to retrieve the details.
- Returns:
- The number of events recorded for the test run. Use ListTestRunEvents to retrieve the details.
-
hasParameters
public final boolean hasParameters()For responses, this returns true if the service returned a value for the Parameters 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. -
parameters
The parameter values used for the test run.
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
hasParameters()method.- Returns:
- The parameter values used for the test run.
-
errorMessage
A human-readable reason for test run failure. Only present when the status is FAILED or ERROR.
- Returns:
- A human-readable reason for test run failure. Only present when the status is FAILED or ERROR.
-
hasStopConditions
public final boolean hasStopConditions()For responses, this returns true if the service returned a value for the StopConditions 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. -
stopConditions
The stop conditions snapshotted from the test when the run was started.
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
hasStopConditions()method.- Returns:
- The stop conditions snapshotted from the test when the run was started.
-
loggingConfiguration
The logging configuration snapshotted from the test when the run was started.
- Returns:
- The logging configuration snapshotted from the test when the run was started.
-
roleName
The IAM execution role name snapshotted from the test when the run was started.
- Returns:
- The IAM execution role name snapshotted from the test when the run was started.
-
testTemplateArn
The ARN of the test template snapshotted from the test when the run was started.
- Returns:
- The ARN of the test template snapshotted from the test when the run was started.
-
reportConfiguration
The report configuration snapshotted from the service when the run was started.
- Returns:
- The report configuration snapshotted from the service when the run was started.
-
policy
The resilience policy snapshotted from the service when the run was started.
- Returns:
- The resilience policy snapshotted from the service when the run was started.
-
reportOutput
The report generation result for the test run. Present after report generation completes or fails.
- Returns:
- The report generation result for the test run. Present after report generation completes or fails.
-
regionSwitchPlanArn
The ARN of the ARC Region switch plan associated with the test run.
- Returns:
- The ARN of the ARC Region switch plan associated with the test run.
-
regionSwitchExecutionId
The identifier of the ARC Region switch execution detected during the test run.
- Returns:
- The identifier of the ARC Region switch execution detected during the test run.
-
permissionModel
The permission model snapshotted from the service when the run was started.
- Returns:
- The permission model snapshotted from the service when the run was started.
-
hasRegions
public final boolean hasRegions()For responses, this returns true if the service returned a value for the Regions 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. -
regions
The Regions snapshotted from the service when the run was started.
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
hasRegions()method.- Returns:
- The Regions snapshotted from the service when the run was started.
-
accountTargeting
Indicates whether this test run targets a single account or multiple accounts.
If the service returns an enum value that is not available in the current SDK version,
accountTargetingwill returnAccountTargeting.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccountTargetingAsString().- Returns:
- Indicates whether this test run targets a single account or multiple accounts.
- See Also:
-
accountTargetingAsString
Indicates whether this test run targets a single account or multiple accounts.
If the service returns an enum value that is not available in the current SDK version,
accountTargetingwill returnAccountTargeting.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccountTargetingAsString().- Returns:
- Indicates whether this test run targets a single account or multiple accounts.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TestRun.Builder,TestRun> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-