#[non_exhaustive]pub struct RunCommandTargetBuilder { /* private fields */ }Expand description
A builder for RunCommandTarget.
Implementations§
source§impl RunCommandTargetBuilder
impl RunCommandTargetBuilder
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
Can be either tag: tag-key or InstanceIds.
sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values.
To override the contents of this collection use set_values.
If Key is tag: tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of Amazon EC2 instance IDs.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
If Key is tag: tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of Amazon EC2 instance IDs.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<Vec<String>>
If Key is tag: tag-key, Values is a list of tag values. If Key is InstanceIds, Values is a list of Amazon EC2 instance IDs.
sourcepub fn build(self) -> Result<RunCommandTarget, BuildError>
pub fn build(self) -> Result<RunCommandTarget, BuildError>
Consumes the builder and constructs a RunCommandTarget.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RunCommandTargetBuilder
impl Clone for RunCommandTargetBuilder
source§fn clone(&self) -> RunCommandTargetBuilder
fn clone(&self) -> RunCommandTargetBuilder
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 RunCommandTargetBuilder
impl Debug for RunCommandTargetBuilder
source§impl Default for RunCommandTargetBuilder
impl Default for RunCommandTargetBuilder
source§fn default() -> RunCommandTargetBuilder
fn default() -> RunCommandTargetBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RunCommandTargetBuilder
impl PartialEq for RunCommandTargetBuilder
source§fn eq(&self, other: &RunCommandTargetBuilder) -> bool
fn eq(&self, other: &RunCommandTargetBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RunCommandTargetBuilder
Auto Trait Implementations§
impl RefUnwindSafe for RunCommandTargetBuilder
impl Send for RunCommandTargetBuilder
impl Sync for RunCommandTargetBuilder
impl Unpin for RunCommandTargetBuilder
impl UnwindSafe for RunCommandTargetBuilder
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>
Creates a shared type from an unshared type.