#[non_exhaustive]pub struct UpdateRunGroupInputBuilder { /* private fields */ }Expand description
A builder for UpdateRunGroupInput.
Implementations§
source§impl UpdateRunGroupInputBuilder
impl UpdateRunGroupInputBuilder
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.
sourcepub fn get_max_cpus(&self) -> &Option<i32>
pub fn get_max_cpus(&self) -> &Option<i32>
The maximum number of CPUs to use.
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.
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<UpdateRunGroupInput, BuildError>
pub fn build(self) -> Result<UpdateRunGroupInput, BuildError>
Consumes the builder and constructs a UpdateRunGroupInput.
source§impl UpdateRunGroupInputBuilder
impl UpdateRunGroupInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateRunGroupOutput, SdkError<UpdateRunGroupError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateRunGroupOutput, SdkError<UpdateRunGroupError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateRunGroupInputBuilder
impl Clone for UpdateRunGroupInputBuilder
source§fn clone(&self) -> UpdateRunGroupInputBuilder
fn clone(&self) -> UpdateRunGroupInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UpdateRunGroupInputBuilder
impl Debug for UpdateRunGroupInputBuilder
source§impl Default for UpdateRunGroupInputBuilder
impl Default for UpdateRunGroupInputBuilder
source§fn default() -> UpdateRunGroupInputBuilder
fn default() -> UpdateRunGroupInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for UpdateRunGroupInputBuilder
impl PartialEq for UpdateRunGroupInputBuilder
source§fn eq(&self, other: &UpdateRunGroupInputBuilder) -> bool
fn eq(&self, other: &UpdateRunGroupInputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateRunGroupInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateRunGroupInputBuilder
impl RefUnwindSafe for UpdateRunGroupInputBuilder
impl Send for UpdateRunGroupInputBuilder
impl Sync for UpdateRunGroupInputBuilder
impl Unpin for UpdateRunGroupInputBuilder
impl UnwindSafe for UpdateRunGroupInputBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.