Struct aws_sdk_devicefarm::types::builders::JobBuilder
source · #[non_exhaustive]pub struct JobBuilder { /* private fields */ }Expand description
A builder for Job.
Implementations§
source§impl JobBuilder
impl JobBuilder
sourcepub fn type(self, input: TestType) -> Self
pub fn type(self, input: TestType) -> Self
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
sourcepub fn set_type(self, input: Option<TestType>) -> Self
pub fn set_type(self, input: Option<TestType>) -> Self
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
sourcepub fn get_type(&self) -> &Option<TestType>
pub fn get_type(&self) -> &Option<TestType>
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
sourcepub fn set_created(self, input: Option<DateTime>) -> Self
pub fn set_created(self, input: Option<DateTime>) -> Self
When the job was created.
sourcepub fn get_created(&self) -> &Option<DateTime>
pub fn get_created(&self) -> &Option<DateTime>
When the job was created.
sourcepub fn status(self, input: ExecutionStatus) -> Self
pub fn status(self, input: ExecutionStatus) -> Self
The job's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
sourcepub fn set_status(self, input: Option<ExecutionStatus>) -> Self
pub fn set_status(self, input: Option<ExecutionStatus>) -> Self
The job's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
sourcepub fn get_status(&self) -> &Option<ExecutionStatus>
pub fn get_status(&self) -> &Option<ExecutionStatus>
The job's status.
Allowed values include:
-
PENDING
-
PENDING_CONCURRENCY
-
PENDING_DEVICE
-
PROCESSING
-
SCHEDULING
-
PREPARING
-
RUNNING
-
COMPLETED
-
STOPPING
sourcepub fn result(self, input: ExecutionResult) -> Self
pub fn result(self, input: ExecutionResult) -> Self
The job's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
sourcepub fn set_result(self, input: Option<ExecutionResult>) -> Self
pub fn set_result(self, input: Option<ExecutionResult>) -> Self
The job's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
sourcepub fn get_result(&self) -> &Option<ExecutionResult>
pub fn get_result(&self) -> &Option<ExecutionResult>
The job's result.
Allowed values include:
-
PENDING
-
PASSED
-
WARNED
-
FAILED
-
SKIPPED
-
ERRORED
-
STOPPED
sourcepub fn set_started(self, input: Option<DateTime>) -> Self
pub fn set_started(self, input: Option<DateTime>) -> Self
The job's start time.
sourcepub fn get_started(&self) -> &Option<DateTime>
pub fn get_started(&self) -> &Option<DateTime>
The job's start time.
sourcepub fn set_stopped(self, input: Option<DateTime>) -> Self
pub fn set_stopped(self, input: Option<DateTime>) -> Self
The job's stop time.
sourcepub fn get_stopped(&self) -> &Option<DateTime>
pub fn get_stopped(&self) -> &Option<DateTime>
The job's stop time.
sourcepub fn set_counters(self, input: Option<Counters>) -> Self
pub fn set_counters(self, input: Option<Counters>) -> Self
The job's result counters.
sourcepub fn get_counters(&self) -> &Option<Counters>
pub fn get_counters(&self) -> &Option<Counters>
The job's result counters.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
A message about the job's result.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
A message about the job's result.
sourcepub fn set_device(self, input: Option<Device>) -> Self
pub fn set_device(self, input: Option<Device>) -> Self
The device (phone or tablet).
sourcepub fn get_device(&self) -> &Option<Device>
pub fn get_device(&self) -> &Option<Device>
The device (phone or tablet).
sourcepub fn instance_arn(self, input: impl Into<String>) -> Self
pub fn instance_arn(self, input: impl Into<String>) -> Self
The ARN of the instance.
sourcepub fn set_instance_arn(self, input: Option<String>) -> Self
pub fn set_instance_arn(self, input: Option<String>) -> Self
The ARN of the instance.
sourcepub fn get_instance_arn(&self) -> &Option<String>
pub fn get_instance_arn(&self) -> &Option<String>
The ARN of the instance.
sourcepub fn device_minutes(self, input: DeviceMinutes) -> Self
pub fn device_minutes(self, input: DeviceMinutes) -> Self
Represents the total (metered or unmetered) minutes used by the job.
sourcepub fn set_device_minutes(self, input: Option<DeviceMinutes>) -> Self
pub fn set_device_minutes(self, input: Option<DeviceMinutes>) -> Self
Represents the total (metered or unmetered) minutes used by the job.
sourcepub fn get_device_minutes(&self) -> &Option<DeviceMinutes>
pub fn get_device_minutes(&self) -> &Option<DeviceMinutes>
Represents the total (metered or unmetered) minutes used by the job.
sourcepub fn video_endpoint(self, input: impl Into<String>) -> Self
pub fn video_endpoint(self, input: impl Into<String>) -> Self
The endpoint for streaming device video.
sourcepub fn set_video_endpoint(self, input: Option<String>) -> Self
pub fn set_video_endpoint(self, input: Option<String>) -> Self
The endpoint for streaming device video.
sourcepub fn get_video_endpoint(&self) -> &Option<String>
pub fn get_video_endpoint(&self) -> &Option<String>
The endpoint for streaming device video.
sourcepub fn video_capture(self, input: bool) -> Self
pub fn video_capture(self, input: bool) -> Self
This value is set to true if video capture is enabled. Otherwise, it is set to false.
sourcepub fn set_video_capture(self, input: Option<bool>) -> Self
pub fn set_video_capture(self, input: Option<bool>) -> Self
This value is set to true if video capture is enabled. Otherwise, it is set to false.
sourcepub fn get_video_capture(&self) -> &Option<bool>
pub fn get_video_capture(&self) -> &Option<bool>
This value is set to true if video capture is enabled. Otherwise, it is set to false.
Trait Implementations§
source§impl Clone for JobBuilder
impl Clone for JobBuilder
source§fn clone(&self) -> JobBuilder
fn clone(&self) -> JobBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for JobBuilder
impl Debug for JobBuilder
source§impl Default for JobBuilder
impl Default for JobBuilder
source§fn default() -> JobBuilder
fn default() -> JobBuilder
source§impl PartialEq for JobBuilder
impl PartialEq for JobBuilder
source§fn eq(&self, other: &JobBuilder) -> bool
fn eq(&self, other: &JobBuilder) -> bool
self and other values to be equal, and is used
by ==.