Interface Job.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Job.Builder,Job>,SdkBuilder<Job.Builder,Job>,SdkPojo
- Enclosing class:
- Job
public static interface Job.Builder extends SdkPojo, CopyableBuilder<Job.Builder,Job>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Job.Builderarn(String arn)The job's ARN.default Job.Buildercounters(Consumer<Counters.Builder> counters)The job's result counters.Job.Buildercounters(Counters counters)The job's result counters.Job.Buildercreated(Instant created)When the job was created.default Job.Builderdevice(Consumer<Device.Builder> device)The device (phone or tablet).Job.Builderdevice(Device device)The device (phone or tablet).default Job.BuilderdeviceMinutes(Consumer<DeviceMinutes.Builder> deviceMinutes)Represents the total (metered or unmetered) minutes used by the job.Job.BuilderdeviceMinutes(DeviceMinutes deviceMinutes)Represents the total (metered or unmetered) minutes used by the job.Job.BuilderinstanceArn(String instanceArn)The ARN of the instance.Job.Buildermessage(String message)A message about the job's result.Job.Buildername(String name)The job's name.Job.Builderresult(String result)The job's result.Job.Builderresult(ExecutionResult result)The job's result.Job.Builderstarted(Instant started)The job's start time.Job.Builderstatus(String status)The job's status.Job.Builderstatus(ExecutionStatus status)The job's status.Job.Builderstopped(Instant stopped)The job's stop time.Job.Buildertype(String type)The job's type.Job.Buildertype(TestType type)The job's type.Job.BuildervideoCapture(Boolean videoCapture)This value is set to true if video capture is enabled.Job.BuildervideoEndpoint(String videoEndpoint)The endpoint for streaming device video.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
arn
Job.Builder arn(String arn)
The job's ARN.
- Parameters:
arn- The job's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Job.Builder name(String name)
The job's name.
- Parameters:
name- The job's name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
Job.Builder type(String type)
The job's type.
Allowed values include the following:
-
BUILTIN_FUZZ
-
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
-
INSTRUMENTATION
-
XCTEST
-
XCTEST_UI
- Parameters:
type- The job's type.Allowed values include the following:
-
BUILTIN_FUZZ
-
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
-
INSTRUMENTATION
-
XCTEST
-
XCTEST_UI
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TestType,TestType
-
-
type
Job.Builder type(TestType type)
The job's type.
Allowed values include the following:
-
BUILTIN_FUZZ
-
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
-
INSTRUMENTATION
-
XCTEST
-
XCTEST_UI
- Parameters:
type- The job's type.Allowed values include the following:
-
BUILTIN_FUZZ
-
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
-
INSTRUMENTATION
-
XCTEST
-
XCTEST_UI
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TestType,TestType
-
-
created
Job.Builder created(Instant created)
When the job was created.
- Parameters:
created- When the job was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Job.Builder status(String status)
The job's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
- Parameters:
status- The job's status.Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExecutionStatus,ExecutionStatus
-
-
status
Job.Builder status(ExecutionStatus status)
The job's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
- Parameters:
status- The job's status.Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExecutionStatus,ExecutionStatus
-
-
result
Job.Builder result(String result)
The job's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
- Parameters:
result- The job's result.Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExecutionResult,ExecutionResult
-
-
result
Job.Builder result(ExecutionResult result)
The job's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
- Parameters:
result- The job's result.Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExecutionResult,ExecutionResult
-
-
started
Job.Builder started(Instant started)
The job's start time.
- Parameters:
started- The job's start time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stopped
Job.Builder stopped(Instant stopped)
The job's stop time.
- Parameters:
stopped- The job's stop time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
counters
Job.Builder counters(Counters counters)
The job's result counters.
- Parameters:
counters- The job's result counters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
counters
default Job.Builder counters(Consumer<Counters.Builder> counters)
The job's result counters.
This is a convenience method that creates an instance of theCounters.Builderavoiding the need to create one manually viaCounters.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocounters(Counters).- Parameters:
counters- a consumer that will call methods onCounters.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
counters(Counters)
-
message
Job.Builder message(String message)
A message about the job's result.
- Parameters:
message- A message about the job's result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
device
Job.Builder device(Device device)
The device (phone or tablet).
- Parameters:
device- The device (phone or tablet).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
device
default Job.Builder device(Consumer<Device.Builder> device)
The device (phone or tablet).
This is a convenience method that creates an instance of theDevice.Builderavoiding the need to create one manually viaDevice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todevice(Device).- Parameters:
device- a consumer that will call methods onDevice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
device(Device)
-
instanceArn
Job.Builder instanceArn(String instanceArn)
The ARN of the instance.
- Parameters:
instanceArn- The ARN of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceMinutes
Job.Builder deviceMinutes(DeviceMinutes deviceMinutes)
Represents the total (metered or unmetered) minutes used by the job.
- Parameters:
deviceMinutes- Represents the total (metered or unmetered) minutes used by the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceMinutes
default Job.Builder deviceMinutes(Consumer<DeviceMinutes.Builder> deviceMinutes)
Represents the total (metered or unmetered) minutes used by the job.
This is a convenience method that creates an instance of theDeviceMinutes.Builderavoiding the need to create one manually viaDeviceMinutes.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeviceMinutes(DeviceMinutes).- Parameters:
deviceMinutes- a consumer that will call methods onDeviceMinutes.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
deviceMinutes(DeviceMinutes)
-
videoEndpoint
Job.Builder videoEndpoint(String videoEndpoint)
The endpoint for streaming device video.
- Parameters:
videoEndpoint- The endpoint for streaming device video.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
videoCapture
Job.Builder videoCapture(Boolean videoCapture)
This value is set to true if video capture is enabled. Otherwise, it is set to false.
- Parameters:
videoCapture- This value is set to true if video capture is enabled. Otherwise, it is set to false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-