Class Job
- java.lang.Object
-
- software.amazon.awssdk.services.devicefarm.model.Job
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Job.Builder,Job>
@Generated("software.amazon.awssdk:codegen") public final class Job extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Job.Builder,Job>
Represents a device.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceJob.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The job's ARN.static Job.Builderbuilder()Counterscounters()The job's result counters.Instantcreated()When the job was created.Devicedevice()The device (phone or tablet).DeviceMinutesdeviceMinutes()Represents the total (metered or unmetered) minutes used by the job.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceArn()The ARN of the instance.Stringmessage()A message about the job's result.Stringname()The job's name.ExecutionResultresult()The job's result.StringresultAsString()The job's result.List<SdkField<?>>sdkFields()static Class<? extends Job.Builder>serializableBuilderClass()Instantstarted()The job's start time.ExecutionStatusstatus()The job's status.StringstatusAsString()The job's status.Instantstopped()The job's stop time.Job.BuildertoBuilder()StringtoString()Returns a string representation of this object.TestTypetype()The job's type.StringtypeAsString()The job's type.BooleanvideoCapture()This value is set to true if video capture is enabled.StringvideoEndpoint()The endpoint for streaming device video.-
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
-
arn
public final String arn()
The job's ARN.
- Returns:
- The job's ARN.
-
name
public final String name()
The job's name.
- Returns:
- The job's name.
-
type
public final TestType type()
The job's type.
Allowed values include the following:
-
BUILTIN_FUZZ
-
BUILTIN_EXPLORER. For Android, an app explorer that traverses an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT
-
APPIUM_JAVA_TESTNG
-
APPIUM_PYTHON
-
APPIUM_NODE
-
APPIUM_RUBY
-
APPIUM_WEB_JAVA_JUNIT
-
APPIUM_WEB_JAVA_TESTNG
-
APPIUM_WEB_PYTHON
-
APPIUM_WEB_NODE
-
APPIUM_WEB_RUBY
-
CALABASH
-
INSTRUMENTATION
-
UIAUTOMATION
-
UIAUTOMATOR
-
XCTEST
-
XCTEST_UI
If the service returns an enum value that is not available in the current SDK version,
typewill returnTestType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The job's type.
Allowed values include the following:
-
BUILTIN_FUZZ
-
BUILTIN_EXPLORER. For Android, an app explorer that traverses an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT
-
APPIUM_JAVA_TESTNG
-
APPIUM_PYTHON
-
APPIUM_NODE
-
APPIUM_RUBY
-
APPIUM_WEB_JAVA_JUNIT
-
APPIUM_WEB_JAVA_TESTNG
-
APPIUM_WEB_PYTHON
-
APPIUM_WEB_NODE
-
APPIUM_WEB_RUBY
-
CALABASH
-
INSTRUMENTATION
-
UIAUTOMATION
-
UIAUTOMATOR
-
XCTEST
-
XCTEST_UI
-
- See Also:
TestType
-
-
typeAsString
public final String typeAsString()
The job's type.
Allowed values include the following:
-
BUILTIN_FUZZ
-
BUILTIN_EXPLORER. For Android, an app explorer that traverses an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT
-
APPIUM_JAVA_TESTNG
-
APPIUM_PYTHON
-
APPIUM_NODE
-
APPIUM_RUBY
-
APPIUM_WEB_JAVA_JUNIT
-
APPIUM_WEB_JAVA_TESTNG
-
APPIUM_WEB_PYTHON
-
APPIUM_WEB_NODE
-
APPIUM_WEB_RUBY
-
CALABASH
-
INSTRUMENTATION
-
UIAUTOMATION
-
UIAUTOMATOR
-
XCTEST
-
XCTEST_UI
If the service returns an enum value that is not available in the current SDK version,
typewill returnTestType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The job's type.
Allowed values include the following:
-
BUILTIN_FUZZ
-
BUILTIN_EXPLORER. For Android, an app explorer that traverses an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT
-
APPIUM_JAVA_TESTNG
-
APPIUM_PYTHON
-
APPIUM_NODE
-
APPIUM_RUBY
-
APPIUM_WEB_JAVA_JUNIT
-
APPIUM_WEB_JAVA_TESTNG
-
APPIUM_WEB_PYTHON
-
APPIUM_WEB_NODE
-
APPIUM_WEB_RUBY
-
CALABASH
-
INSTRUMENTATION
-
UIAUTOMATION
-
UIAUTOMATOR
-
XCTEST
-
XCTEST_UI
-
- See Also:
TestType
-
-
created
public final Instant created()
When the job was created.
- Returns:
- When the job was created.
-
status
public final ExecutionStatus status()
The job's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
If the service returns an enum value that is not available in the current SDK version,
statuswill returnExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The job's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
-
- See Also:
ExecutionStatus
-
-
statusAsString
public final String statusAsString()
The job's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
If the service returns an enum value that is not available in the current SDK version,
statuswill returnExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The job's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
-
- See Also:
ExecutionStatus
-
-
result
public final ExecutionResult result()
The job's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
If the service returns an enum value that is not available in the current SDK version,
resultwill returnExecutionResult.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresultAsString().- Returns:
- The job's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
-
- See Also:
ExecutionResult
-
-
resultAsString
public final String resultAsString()
The job's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
If the service returns an enum value that is not available in the current SDK version,
resultwill returnExecutionResult.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresultAsString().- Returns:
- The job's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
-
- See Also:
ExecutionResult
-
-
started
public final Instant started()
The job's start time.
- Returns:
- The job's start time.
-
stopped
public final Instant stopped()
The job's stop time.
- Returns:
- The job's stop time.
-
counters
public final Counters counters()
The job's result counters.
- Returns:
- The job's result counters.
-
message
public final String message()
A message about the job's result.
- Returns:
- A message about the job's result.
-
device
public final Device device()
The device (phone or tablet).
- Returns:
- The device (phone or tablet).
-
instanceArn
public final String instanceArn()
The ARN of the instance.
- Returns:
- The ARN of the instance.
-
deviceMinutes
public final DeviceMinutes deviceMinutes()
Represents the total (metered or unmetered) minutes used by the job.
- Returns:
- Represents the total (metered or unmetered) minutes used by the job.
-
videoEndpoint
public final String videoEndpoint()
The endpoint for streaming device video.
- Returns:
- The endpoint for streaming device video.
-
videoCapture
public final Boolean videoCapture()
This value is set to true if video capture is enabled. Otherwise, it is set to false.
- Returns:
- This value is set to true if video capture is enabled. Otherwise, it is set to false.
-
toBuilder
public Job.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Job.Builder,Job>
-
builder
public static Job.Builder builder()
-
serializableBuilderClass
public static Class<? extends Job.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.
-
-