#[non_exhaustive]pub struct AssignedTaskRunSessionActionDefinitionBuilder { /* private fields */ }Expand description
A builder for AssignedTaskRunSessionActionDefinition.
Implementations§
source§impl AssignedTaskRunSessionActionDefinitionBuilder
impl AssignedTaskRunSessionActionDefinitionBuilder
sourcepub fn set_task_id(self, input: Option<String>) -> Self
pub fn set_task_id(self, input: Option<String>) -> Self
The task ID.
sourcepub fn get_task_id(&self) -> &Option<String>
pub fn get_task_id(&self) -> &Option<String>
The task ID.
sourcepub fn set_step_id(self, input: Option<String>) -> Self
pub fn set_step_id(self, input: Option<String>) -> Self
The step ID.
sourcepub fn get_step_id(&self) -> &Option<String>
pub fn get_step_id(&self) -> &Option<String>
The step ID.
sourcepub fn parameters(self, k: impl Into<String>, v: TaskParameterValue) -> Self
pub fn parameters(self, k: impl Into<String>, v: TaskParameterValue) -> Self
Adds a key-value pair to parameters.
To override the contents of this collection use set_parameters.
The parameters to include.
sourcepub fn set_parameters(
self,
input: Option<HashMap<String, TaskParameterValue>>
) -> Self
pub fn set_parameters( self, input: Option<HashMap<String, TaskParameterValue>> ) -> Self
The parameters to include.
sourcepub fn get_parameters(&self) -> &Option<HashMap<String, TaskParameterValue>>
pub fn get_parameters(&self) -> &Option<HashMap<String, TaskParameterValue>>
The parameters to include.
sourcepub fn build(self) -> Result<AssignedTaskRunSessionActionDefinition, BuildError>
pub fn build(self) -> Result<AssignedTaskRunSessionActionDefinition, BuildError>
Consumes the builder and constructs a AssignedTaskRunSessionActionDefinition.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AssignedTaskRunSessionActionDefinitionBuilder
impl Clone for AssignedTaskRunSessionActionDefinitionBuilder
source§fn clone(&self) -> AssignedTaskRunSessionActionDefinitionBuilder
fn clone(&self) -> AssignedTaskRunSessionActionDefinitionBuilder
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 Default for AssignedTaskRunSessionActionDefinitionBuilder
impl Default for AssignedTaskRunSessionActionDefinitionBuilder
source§fn default() -> AssignedTaskRunSessionActionDefinitionBuilder
fn default() -> AssignedTaskRunSessionActionDefinitionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AssignedTaskRunSessionActionDefinitionBuilder
impl PartialEq for AssignedTaskRunSessionActionDefinitionBuilder
source§fn eq(&self, other: &AssignedTaskRunSessionActionDefinitionBuilder) -> bool
fn eq(&self, other: &AssignedTaskRunSessionActionDefinitionBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssignedTaskRunSessionActionDefinitionBuilder
Auto Trait Implementations§
impl Freeze for AssignedTaskRunSessionActionDefinitionBuilder
impl RefUnwindSafe for AssignedTaskRunSessionActionDefinitionBuilder
impl Send for AssignedTaskRunSessionActionDefinitionBuilder
impl Sync for AssignedTaskRunSessionActionDefinitionBuilder
impl Unpin for AssignedTaskRunSessionActionDefinitionBuilder
impl UnwindSafe for AssignedTaskRunSessionActionDefinitionBuilder
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.