#[non_exhaustive]pub struct ActivityTaskCancelRequestedEventAttributesBuilder { /* private fields */ }Expand description
A builder for ActivityTaskCancelRequestedEventAttributes.
Implementations§
source§impl ActivityTaskCancelRequestedEventAttributesBuilder
impl ActivityTaskCancelRequestedEventAttributesBuilder
sourcepub fn decision_task_completed_event_id(self, input: i64) -> Self
pub fn decision_task_completed_event_id(self, input: i64) -> Self
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelActivityTask decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
sourcepub fn set_decision_task_completed_event_id(self, input: Option<i64>) -> Self
pub fn set_decision_task_completed_event_id(self, input: Option<i64>) -> Self
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelActivityTask decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
sourcepub fn get_decision_task_completed_event_id(&self) -> &Option<i64>
pub fn get_decision_task_completed_event_id(&self) -> &Option<i64>
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelActivityTask decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
sourcepub fn activity_id(self, input: impl Into<String>) -> Self
pub fn activity_id(self, input: impl Into<String>) -> Self
The unique ID of the task.
This field is required.sourcepub fn set_activity_id(self, input: Option<String>) -> Self
pub fn set_activity_id(self, input: Option<String>) -> Self
The unique ID of the task.
sourcepub fn get_activity_id(&self) -> &Option<String>
pub fn get_activity_id(&self) -> &Option<String>
The unique ID of the task.
sourcepub fn build(
self,
) -> Result<ActivityTaskCancelRequestedEventAttributes, BuildError>
pub fn build( self, ) -> Result<ActivityTaskCancelRequestedEventAttributes, BuildError>
Consumes the builder and constructs a ActivityTaskCancelRequestedEventAttributes.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ActivityTaskCancelRequestedEventAttributesBuilder
impl Clone for ActivityTaskCancelRequestedEventAttributesBuilder
source§fn clone(&self) -> ActivityTaskCancelRequestedEventAttributesBuilder
fn clone(&self) -> ActivityTaskCancelRequestedEventAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ActivityTaskCancelRequestedEventAttributesBuilder
impl Default for ActivityTaskCancelRequestedEventAttributesBuilder
source§fn default() -> ActivityTaskCancelRequestedEventAttributesBuilder
fn default() -> ActivityTaskCancelRequestedEventAttributesBuilder
source§impl PartialEq for ActivityTaskCancelRequestedEventAttributesBuilder
impl PartialEq for ActivityTaskCancelRequestedEventAttributesBuilder
source§fn eq(&self, other: &ActivityTaskCancelRequestedEventAttributesBuilder) -> bool
fn eq(&self, other: &ActivityTaskCancelRequestedEventAttributesBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ActivityTaskCancelRequestedEventAttributesBuilder
Auto Trait Implementations§
impl Freeze for ActivityTaskCancelRequestedEventAttributesBuilder
impl RefUnwindSafe for ActivityTaskCancelRequestedEventAttributesBuilder
impl Send for ActivityTaskCancelRequestedEventAttributesBuilder
impl Sync for ActivityTaskCancelRequestedEventAttributesBuilder
impl Unpin for ActivityTaskCancelRequestedEventAttributesBuilder
impl UnwindSafe for ActivityTaskCancelRequestedEventAttributesBuilder
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