#[non_exhaustive]pub struct ExecuteCommandInputBuilder { /* private fields */ }
Expand description
A builder for ExecuteCommandInput
.
Implementations§
source§impl ExecuteCommandInputBuilder
impl ExecuteCommandInputBuilder
sourcepub fn cluster(self, input: impl Into<String>) -> Self
pub fn cluster(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) or short name of the cluster the task is running in. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn set_cluster(self, input: Option<String>) -> Self
pub fn set_cluster(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) or short name of the cluster the task is running in. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn get_cluster(&self) -> &Option<String>
pub fn get_cluster(&self) -> &Option<String>
The Amazon Resource Name (ARN) or short name of the cluster the task is running in. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn container(self, input: impl Into<String>) -> Self
pub fn container(self, input: impl Into<String>) -> Self
The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.
sourcepub fn set_container(self, input: Option<String>) -> Self
pub fn set_container(self, input: Option<String>) -> Self
The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.
sourcepub fn get_container(&self) -> &Option<String>
pub fn get_container(&self) -> &Option<String>
The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.
sourcepub fn command(self, input: impl Into<String>) -> Self
pub fn command(self, input: impl Into<String>) -> Self
The command to run on the container.
This field is required.sourcepub fn set_command(self, input: Option<String>) -> Self
pub fn set_command(self, input: Option<String>) -> Self
The command to run on the container.
sourcepub fn get_command(&self) -> &Option<String>
pub fn get_command(&self) -> &Option<String>
The command to run on the container.
sourcepub fn interactive(self, input: bool) -> Self
pub fn interactive(self, input: bool) -> Self
Use this flag to run your command in interactive mode.
This field is required.sourcepub fn set_interactive(self, input: Option<bool>) -> Self
pub fn set_interactive(self, input: Option<bool>) -> Self
Use this flag to run your command in interactive mode.
sourcepub fn get_interactive(&self) -> &Option<bool>
pub fn get_interactive(&self) -> &Option<bool>
Use this flag to run your command in interactive mode.
sourcepub fn task(self, input: impl Into<String>) -> Self
pub fn task(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) or ID of the task the container is part of.
This field is required.sourcepub fn set_task(self, input: Option<String>) -> Self
pub fn set_task(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) or ID of the task the container is part of.
sourcepub fn get_task(&self) -> &Option<String>
pub fn get_task(&self) -> &Option<String>
The Amazon Resource Name (ARN) or ID of the task the container is part of.
sourcepub fn build(self) -> Result<ExecuteCommandInput, BuildError>
pub fn build(self) -> Result<ExecuteCommandInput, BuildError>
Consumes the builder and constructs a ExecuteCommandInput
.
source§impl ExecuteCommandInputBuilder
impl ExecuteCommandInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ExecuteCommandOutput, SdkError<ExecuteCommandError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ExecuteCommandOutput, SdkError<ExecuteCommandError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ExecuteCommandInputBuilder
impl Clone for ExecuteCommandInputBuilder
source§fn clone(&self) -> ExecuteCommandInputBuilder
fn clone(&self) -> ExecuteCommandInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExecuteCommandInputBuilder
impl Debug for ExecuteCommandInputBuilder
source§impl Default for ExecuteCommandInputBuilder
impl Default for ExecuteCommandInputBuilder
source§fn default() -> ExecuteCommandInputBuilder
fn default() -> ExecuteCommandInputBuilder
source§impl PartialEq for ExecuteCommandInputBuilder
impl PartialEq for ExecuteCommandInputBuilder
source§fn eq(&self, other: &ExecuteCommandInputBuilder) -> bool
fn eq(&self, other: &ExecuteCommandInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExecuteCommandInputBuilder
Auto Trait Implementations§
impl Freeze for ExecuteCommandInputBuilder
impl RefUnwindSafe for ExecuteCommandInputBuilder
impl Send for ExecuteCommandInputBuilder
impl Sync for ExecuteCommandInputBuilder
impl Unpin for ExecuteCommandInputBuilder
impl UnwindSafe for ExecuteCommandInputBuilder
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