pub struct Builder { /* private fields */ }
Expand description
A builder for TransactionCanceledException
.
Implementations§
source§impl Builder
impl Builder
pub fn message(self, input: impl Into<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
sourcepub fn cancellation_reasons(self, input: CancellationReason) -> Self
pub fn cancellation_reasons(self, input: CancellationReason) -> Self
Appends an item to cancellation_reasons
.
To override the contents of this collection use set_cancellation_reasons
.
A list of cancellation reasons.
sourcepub fn set_cancellation_reasons(
self,
input: Option<Vec<CancellationReason>>
) -> Self
pub fn set_cancellation_reasons(
self,
input: Option<Vec<CancellationReason>>
) -> Self
A list of cancellation reasons.
sourcepub fn build(self) -> TransactionCanceledException
pub fn build(self) -> TransactionCanceledException
Consumes the builder and constructs a TransactionCanceledException
.