#[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<UpdateRunGroupInputBuilder> for UpdateRunGroupInputBuilder
impl PartialEq<UpdateRunGroupInputBuilder> 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 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