#[non_exhaustive]pub struct CreateRunGroupInputBuilder { /* private fields */ }Expand description
A builder for CreateRunGroupInput.
Implementations§
source§impl CreateRunGroupInputBuilder
impl CreateRunGroupInputBuilder
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 to use in the group.
sourcepub fn get_max_cpus(&self) -> &Option<i32>
pub fn get_max_cpus(&self) -> &Option<i32>
The maximum number of CPUs to use in the group.
sourcepub fn set_max_runs(self, input: Option<i32>) -> Self
pub fn set_max_runs(self, input: Option<i32>) -> Self
The maximum number of concurrent runs for the group.
sourcepub fn get_max_runs(&self) -> &Option<i32>
pub fn get_max_runs(&self) -> &Option<i32>
The maximum number of concurrent runs for the group.
sourcepub fn max_duration(self, input: i32) -> Self
pub fn max_duration(self, input: i32) -> Self
A maximum run time for the group in minutes.
sourcepub fn set_max_duration(self, input: Option<i32>) -> Self
pub fn set_max_duration(self, input: Option<i32>) -> Self
A maximum run time for the group in minutes.
sourcepub fn get_max_duration(&self) -> &Option<i32>
pub fn get_max_duration(&self) -> &Option<i32>
A maximum run time for the group in minutes.
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.
This field is required.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 set_max_gpus(self, input: Option<i32>) -> Self
pub fn set_max_gpus(self, input: Option<i32>) -> Self
The maximum GPUs that can be used by a run group.
sourcepub fn get_max_gpus(&self) -> &Option<i32>
pub fn get_max_gpus(&self) -> &Option<i32>
The maximum GPUs that can be used by a run group.
sourcepub fn build(self) -> Result<CreateRunGroupInput, BuildError>
pub fn build(self) -> Result<CreateRunGroupInput, BuildError>
Consumes the builder and constructs a CreateRunGroupInput.
source§impl CreateRunGroupInputBuilder
impl CreateRunGroupInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateRunGroupOutput, SdkError<CreateRunGroupError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateRunGroupOutput, SdkError<CreateRunGroupError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateRunGroupInputBuilder
impl Clone for CreateRunGroupInputBuilder
source§fn clone(&self) -> CreateRunGroupInputBuilder
fn clone(&self) -> CreateRunGroupInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateRunGroupInputBuilder
impl Debug for CreateRunGroupInputBuilder
source§impl Default for CreateRunGroupInputBuilder
impl Default for CreateRunGroupInputBuilder
source§fn default() -> CreateRunGroupInputBuilder
fn default() -> CreateRunGroupInputBuilder
source§impl PartialEq for CreateRunGroupInputBuilder
impl PartialEq for CreateRunGroupInputBuilder
source§fn eq(&self, other: &CreateRunGroupInputBuilder) -> bool
fn eq(&self, other: &CreateRunGroupInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateRunGroupInputBuilder
Auto Trait Implementations§
impl Freeze for CreateRunGroupInputBuilder
impl RefUnwindSafe for CreateRunGroupInputBuilder
impl Send for CreateRunGroupInputBuilder
impl Sync for CreateRunGroupInputBuilder
impl Unpin for CreateRunGroupInputBuilder
impl UnwindSafe for CreateRunGroupInputBuilder
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> 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