pub struct CreateRunGroupFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CreateRunGroup.
You can optionally create a run group to limit the compute resources for the runs that you add to the group.
Implementations§
source§impl CreateRunGroupFluentBuilder
impl CreateRunGroupFluentBuilder
sourcepub fn as_input(&self) -> &CreateRunGroupInputBuilder
pub fn as_input(&self) -> &CreateRunGroupInputBuilder
Access the CreateRunGroup as a reference.
sourcepub async fn send(
self,
) -> Result<CreateRunGroupOutput, SdkError<CreateRunGroupError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateRunGroupOutput, SdkError<CreateRunGroupError, 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.
sourcepub fn customize(
self,
) -> CustomizableOperation<CreateRunGroupOutput, CreateRunGroupError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateRunGroupOutput, CreateRunGroupError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn max_cpus(self, input: i32) -> Self
pub fn max_cpus(self, input: i32) -> Self
The maximum number of CPUs that can run concurrently across all active runs in the run group.
sourcepub fn set_max_cpus(self, input: Option<i32>) -> Self
pub fn set_max_cpus(self, input: Option<i32>) -> Self
The maximum number of CPUs that can run concurrently across all active runs in the run group.
sourcepub fn get_max_cpus(&self) -> &Option<i32>
pub fn get_max_cpus(&self) -> &Option<i32>
The maximum number of CPUs that can run concurrently across all active runs in the run group.
sourcepub fn max_runs(self, input: i32) -> Self
pub fn max_runs(self, input: i32) -> Self
The maximum number of runs that can be running at the same time.
sourcepub fn set_max_runs(self, input: Option<i32>) -> Self
pub fn set_max_runs(self, input: Option<i32>) -> Self
The maximum number of runs that can be running at the same time.
sourcepub fn get_max_runs(&self) -> &Option<i32>
pub fn get_max_runs(&self) -> &Option<i32>
The maximum number of runs that can be running at the same time.
sourcepub fn max_duration(self, input: i32) -> Self
pub fn max_duration(self, input: i32) -> Self
The maximum time for each run (in minutes). If a run exceeds the maximum run time, the run fails automatically.
sourcepub fn set_max_duration(self, input: Option<i32>) -> Self
pub fn set_max_duration(self, input: Option<i32>) -> Self
The maximum time for each run (in minutes). If a run exceeds the maximum run time, the run fails automatically.
sourcepub fn get_max_duration(&self) -> &Option<i32>
pub fn get_max_duration(&self) -> &Option<i32>
The maximum time for each run (in minutes). If a run exceeds the maximum run time, the run fails automatically.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
Tags for the group.
Tags for the group.
Tags for the group.
sourcepub fn request_id(self, input: impl Into<String>) -> Self
pub fn request_id(self, input: impl Into<String>) -> Self
To ensure that requests don't run multiple times, specify a unique ID for each request.
sourcepub fn set_request_id(self, input: Option<String>) -> Self
pub fn set_request_id(self, input: Option<String>) -> Self
To ensure that requests don't run multiple times, specify a unique ID for each request.
sourcepub fn get_request_id(&self) -> &Option<String>
pub fn get_request_id(&self) -> &Option<String>
To ensure that requests don't run multiple times, specify a unique ID for each request.
sourcepub fn max_gpus(self, input: i32) -> Self
pub fn max_gpus(self, input: i32) -> Self
The maximum number of GPUs that can run concurrently across all active runs in the run group.
sourcepub fn set_max_gpus(self, input: Option<i32>) -> Self
pub fn set_max_gpus(self, input: Option<i32>) -> Self
The maximum number of GPUs that can run concurrently across all active runs in the run group.
sourcepub fn get_max_gpus(&self) -> &Option<i32>
pub fn get_max_gpus(&self) -> &Option<i32>
The maximum number of GPUs that can run concurrently across all active runs in the run group.
Trait Implementations§
source§impl Clone for CreateRunGroupFluentBuilder
impl Clone for CreateRunGroupFluentBuilder
source§fn clone(&self) -> CreateRunGroupFluentBuilder
fn clone(&self) -> CreateRunGroupFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for CreateRunGroupFluentBuilder
impl !RefUnwindSafe for CreateRunGroupFluentBuilder
impl Send for CreateRunGroupFluentBuilder
impl Sync for CreateRunGroupFluentBuilder
impl Unpin for CreateRunGroupFluentBuilder
impl !UnwindSafe for CreateRunGroupFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more