pub struct CreateJobFluentBuilder { /* private fields */ }
Expand description

Fluent builder constructing a request to CreateJob.

Creates an Amazon Braket job.

Implementations§

source§

impl CreateJobFluentBuilder

source

pub fn as_input(&self) -> &CreateJobInputBuilder

Access the CreateJob as a reference.

source

pub async fn send( self ) -> Result<CreateJobOutput, SdkError<CreateJobError, HttpResponse>>

Sends the request and returns the response.

If an error occurs, an SdkError will be returned with additional details that can be matched against.

By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.

source

pub fn customize( self ) -> CustomizableOperation<CreateJobOutput, CreateJobError, Self>

Consumes this builder, creating a customizable operation that can be modified before being sent.

source

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

A unique token that guarantees that the call to this API is idempotent.

source

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

A unique token that guarantees that the call to this API is idempotent.

source

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

A unique token that guarantees that the call to this API is idempotent.

source

pub fn algorithm_specification(self, input: AlgorithmSpecification) -> Self

Definition of the Amazon Braket job to be created. Specifies the container image the job uses and information about the Python scripts used for entry and training.

source

pub fn set_algorithm_specification( self, input: Option<AlgorithmSpecification> ) -> Self

Definition of the Amazon Braket job to be created. Specifies the container image the job uses and information about the Python scripts used for entry and training.

source

pub fn get_algorithm_specification(&self) -> &Option<AlgorithmSpecification>

Definition of the Amazon Braket job to be created. Specifies the container image the job uses and information about the Python scripts used for entry and training.

source

pub fn input_data_config(self, input: InputFileConfig) -> Self

Appends an item to inputDataConfig.

To override the contents of this collection use set_input_data_config.

A list of parameters that specify the name and type of input data and where it is located.

source

pub fn set_input_data_config(self, input: Option<Vec<InputFileConfig>>) -> Self

A list of parameters that specify the name and type of input data and where it is located.

source

pub fn get_input_data_config(&self) -> &Option<Vec<InputFileConfig>>

A list of parameters that specify the name and type of input data and where it is located.

source

pub fn output_data_config(self, input: JobOutputDataConfig) -> Self

The path to the S3 location where you want to store job artifacts and the encryption key used to store them.

source

pub fn set_output_data_config(self, input: Option<JobOutputDataConfig>) -> Self

The path to the S3 location where you want to store job artifacts and the encryption key used to store them.

source

pub fn get_output_data_config(&self) -> &Option<JobOutputDataConfig>

The path to the S3 location where you want to store job artifacts and the encryption key used to store them.

source

pub fn checkpoint_config(self, input: JobCheckpointConfig) -> Self

Information about the output locations for job checkpoint data.

source

pub fn set_checkpoint_config(self, input: Option<JobCheckpointConfig>) -> Self

Information about the output locations for job checkpoint data.

source

pub fn get_checkpoint_config(&self) -> &Option<JobCheckpointConfig>

Information about the output locations for job checkpoint data.

source

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

The name of the Amazon Braket job.

source

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

The name of the Amazon Braket job.

source

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

The name of the Amazon Braket job.

source

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

The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform tasks on behalf of a user. It can access user resources, run an Amazon Braket job container on behalf of user, and output resources to the users' s3 buckets.

source

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

The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform tasks on behalf of a user. It can access user resources, run an Amazon Braket job container on behalf of user, and output resources to the users' s3 buckets.

source

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

The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform tasks on behalf of a user. It can access user resources, run an Amazon Braket job container on behalf of user, and output resources to the users' s3 buckets.

source

pub fn stopping_condition(self, input: JobStoppingCondition) -> Self

The user-defined criteria that specifies when a job stops running.

source

pub fn set_stopping_condition(self, input: Option<JobStoppingCondition>) -> Self

The user-defined criteria that specifies when a job stops running.

source

pub fn get_stopping_condition(&self) -> &Option<JobStoppingCondition>

The user-defined criteria that specifies when a job stops running.

source

pub fn instance_config(self, input: InstanceConfig) -> Self

Configuration of the resource instances to use while running the hybrid job on Amazon Braket.

source

pub fn set_instance_config(self, input: Option<InstanceConfig>) -> Self

Configuration of the resource instances to use while running the hybrid job on Amazon Braket.

source

pub fn get_instance_config(&self) -> &Option<InstanceConfig>

Configuration of the resource instances to use while running the hybrid job on Amazon Braket.

source

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

Adds a key-value pair to hyperParameters.

To override the contents of this collection use set_hyper_parameters.

Algorithm-specific parameters used by an Amazon Braket job that influence the quality of the training job. The values are set with a string of JSON key:value pairs, where the key is the name of the hyperparameter and the value is the value of th hyperparameter.

source

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

Algorithm-specific parameters used by an Amazon Braket job that influence the quality of the training job. The values are set with a string of JSON key:value pairs, where the key is the name of the hyperparameter and the value is the value of th hyperparameter.

source

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

Algorithm-specific parameters used by an Amazon Braket job that influence the quality of the training job. The values are set with a string of JSON key:value pairs, where the key is the name of the hyperparameter and the value is the value of th hyperparameter.

source

pub fn device_config(self, input: DeviceConfig) -> Self

The quantum processing unit (QPU) or simulator used to create an Amazon Braket job.

source

pub fn set_device_config(self, input: Option<DeviceConfig>) -> Self

The quantum processing unit (QPU) or simulator used to create an Amazon Braket job.

source

pub fn get_device_config(&self) -> &Option<DeviceConfig>

The quantum processing unit (QPU) or simulator used to create an Amazon Braket job.

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.

A tag object that consists of a key and an optional value, used to manage metadata for Amazon Braket resources.

source

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

A tag object that consists of a key and an optional value, used to manage metadata for Amazon Braket resources.

source

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

A tag object that consists of a key and an optional value, used to manage metadata for Amazon Braket resources.

Trait Implementations§

source§

impl Clone for CreateJobFluentBuilder

source§

fn clone(&self) -> CreateJobFluentBuilder

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 CreateJobFluentBuilder

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Unsharedwhere 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 Twhere 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 Twhere 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 Twhere 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