#[non_exhaustive]
pub struct JobRunBuilder { /* private fields */ }
Expand description

A builder for JobRun.

Implementations§

source§

impl JobRunBuilder

source

pub fn application_id(self, input: impl Into<String>) -> Self

The ID of the application the job is running on.

This field is required.
source

pub fn set_application_id(self, input: Option<String>) -> Self

The ID of the application the job is running on.

source

pub fn get_application_id(&self) -> &Option<String>

The ID of the application the job is running on.

source

pub fn job_run_id(self, input: impl Into<String>) -> Self

The ID of the job run.

This field is required.
source

pub fn set_job_run_id(self, input: Option<String>) -> Self

The ID of the job run.

source

pub fn get_job_run_id(&self) -> &Option<String>

The ID of the job run.

source

pub fn name(self, input: impl Into<String>) -> Self

The optional job run name. This doesn't have to be unique.

source

pub fn set_name(self, input: Option<String>) -> Self

The optional job run name. This doesn't have to be unique.

source

pub fn get_name(&self) -> &Option<String>

The optional job run name. This doesn't have to be unique.

source

pub fn arn(self, input: impl Into<String>) -> Self

The execution role ARN of the job run.

This field is required.
source

pub fn set_arn(self, input: Option<String>) -> Self

The execution role ARN of the job run.

source

pub fn get_arn(&self) -> &Option<String>

The execution role ARN of the job run.

source

pub fn created_by(self, input: impl Into<String>) -> Self

The user who created the job run.

This field is required.
source

pub fn set_created_by(self, input: Option<String>) -> Self

The user who created the job run.

source

pub fn get_created_by(&self) -> &Option<String>

The user who created the job run.

source

pub fn created_at(self, input: DateTime) -> Self

The date and time when the job run was created.

This field is required.
source

pub fn set_created_at(self, input: Option<DateTime>) -> Self

The date and time when the job run was created.

source

pub fn get_created_at(&self) -> &Option<DateTime>

The date and time when the job run was created.

source

pub fn updated_at(self, input: DateTime) -> Self

The date and time when the job run was updated.

This field is required.
source

pub fn set_updated_at(self, input: Option<DateTime>) -> Self

The date and time when the job run was updated.

source

pub fn get_updated_at(&self) -> &Option<DateTime>

The date and time when the job run was updated.

source

pub fn execution_role(self, input: impl Into<String>) -> Self

The execution role ARN of the job run.

This field is required.
source

pub fn set_execution_role(self, input: Option<String>) -> Self

The execution role ARN of the job run.

source

pub fn get_execution_role(&self) -> &Option<String>

The execution role ARN of the job run.

source

pub fn state(self, input: JobRunState) -> Self

The state of the job run.

This field is required.
source

pub fn set_state(self, input: Option<JobRunState>) -> Self

The state of the job run.

source

pub fn get_state(&self) -> &Option<JobRunState>

The state of the job run.

source

pub fn state_details(self, input: impl Into<String>) -> Self

The state details of the job run.

This field is required.
source

pub fn set_state_details(self, input: Option<String>) -> Self

The state details of the job run.

source

pub fn get_state_details(&self) -> &Option<String>

The state details of the job run.

source

pub fn release_label(self, input: impl Into<String>) -> Self

The Amazon EMR release associated with the application your job is running on.

This field is required.
source

pub fn set_release_label(self, input: Option<String>) -> Self

The Amazon EMR release associated with the application your job is running on.

source

pub fn get_release_label(&self) -> &Option<String>

The Amazon EMR release associated with the application your job is running on.

source

pub fn configuration_overrides(self, input: ConfigurationOverrides) -> Self

The configuration settings that are used to override default configuration.

source

pub fn set_configuration_overrides( self, input: Option<ConfigurationOverrides> ) -> Self

The configuration settings that are used to override default configuration.

source

pub fn get_configuration_overrides(&self) -> &Option<ConfigurationOverrides>

The configuration settings that are used to override default configuration.

source

pub fn job_driver(self, input: JobDriver) -> Self

The job driver for the job run.

This field is required.
source

pub fn set_job_driver(self, input: Option<JobDriver>) -> Self

The job driver for the job run.

source

pub fn get_job_driver(&self) -> &Option<JobDriver>

The job driver for the job run.

source

pub fn tags(self, k: impl Into<String>, v: impl Into<String>) -> Self

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

The tags assigned to the job run.

source

pub fn set_tags(self, input: Option<HashMap<String, String>>) -> Self

The tags assigned to the job run.

source

pub fn get_tags(&self) -> &Option<HashMap<String, String>>

The tags assigned to the job run.

source

pub fn total_resource_utilization(self, input: TotalResourceUtilization) -> Self

The aggregate vCPU, memory, and storage resources used from the time the job starts to execute, until the time the job terminates, rounded up to the nearest second.

source

pub fn set_total_resource_utilization( self, input: Option<TotalResourceUtilization> ) -> Self

The aggregate vCPU, memory, and storage resources used from the time the job starts to execute, until the time the job terminates, rounded up to the nearest second.

source

pub fn get_total_resource_utilization( &self ) -> &Option<TotalResourceUtilization>

The aggregate vCPU, memory, and storage resources used from the time the job starts to execute, until the time the job terminates, rounded up to the nearest second.

source

pub fn network_configuration(self, input: NetworkConfiguration) -> Self

The network configuration for customer VPC connectivity.

source

pub fn set_network_configuration( self, input: Option<NetworkConfiguration> ) -> Self

The network configuration for customer VPC connectivity.

source

pub fn get_network_configuration(&self) -> &Option<NetworkConfiguration>

The network configuration for customer VPC connectivity.

source

pub fn total_execution_duration_seconds(self, input: i32) -> Self

The job run total execution duration in seconds. This field is only available for job runs in a COMPLETED, FAILED, or CANCELLED state.

source

pub fn set_total_execution_duration_seconds(self, input: Option<i32>) -> Self

The job run total execution duration in seconds. This field is only available for job runs in a COMPLETED, FAILED, or CANCELLED state.

source

pub fn get_total_execution_duration_seconds(&self) -> &Option<i32>

The job run total execution duration in seconds. This field is only available for job runs in a COMPLETED, FAILED, or CANCELLED state.

source

pub fn execution_timeout_minutes(self, input: i64) -> Self

Returns the job run timeout value from the StartJobRun call. If no timeout was specified, then it returns the default timeout of 720 minutes.

source

pub fn set_execution_timeout_minutes(self, input: Option<i64>) -> Self

Returns the job run timeout value from the StartJobRun call. If no timeout was specified, then it returns the default timeout of 720 minutes.

source

pub fn get_execution_timeout_minutes(&self) -> &Option<i64>

Returns the job run timeout value from the StartJobRun call. If no timeout was specified, then it returns the default timeout of 720 minutes.

source

pub fn billed_resource_utilization(self, input: ResourceUtilization) -> Self

The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the job run. The billed resources include a 1-minute minimum usage for workers, plus additional storage over 20 GB per worker. Note that billed resources do not include usage for idle pre-initialized workers.

source

pub fn set_billed_resource_utilization( self, input: Option<ResourceUtilization> ) -> Self

The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the job run. The billed resources include a 1-minute minimum usage for workers, plus additional storage over 20 GB per worker. Note that billed resources do not include usage for idle pre-initialized workers.

source

pub fn get_billed_resource_utilization(&self) -> &Option<ResourceUtilization>

The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the job run. The billed resources include a 1-minute minimum usage for workers, plus additional storage over 20 GB per worker. Note that billed resources do not include usage for idle pre-initialized workers.

source

pub fn build(self) -> Result<JobRun, BuildError>

Consumes the builder and constructs a JobRun. This method will fail if any of the following fields are not set:

Trait Implementations§

source§

impl Clone for JobRunBuilder

source§

fn clone(&self) -> JobRunBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for JobRunBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for JobRunBuilder

source§

fn default() -> JobRunBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for JobRunBuilder

source§

fn eq(&self, other: &JobRunBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for JobRunBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more