Struct aws_sdk_cloudcontrol::model::progress_event::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for ProgressEvent
Implementations
sourceimpl Builder
impl Builder
sourcepub fn type_name(self, input: impl Into<String>) -> Self
pub fn type_name(self, input: impl Into<String>) -> Self
The name of the resource type used in the operation.
sourcepub fn set_type_name(self, input: Option<String>) -> Self
pub fn set_type_name(self, input: Option<String>) -> Self
The name of the resource type used in the operation.
sourcepub fn identifier(self, input: impl Into<String>) -> Self
pub fn identifier(self, input: impl Into<String>) -> Self
The primary identifier for the resource.
In some cases, the resource identifier may be available before the resource operation has reached a status of SUCCESS
.
sourcepub fn set_identifier(self, input: Option<String>) -> Self
pub fn set_identifier(self, input: Option<String>) -> Self
The primary identifier for the resource.
In some cases, the resource identifier may be available before the resource operation has reached a status of SUCCESS
.
sourcepub fn request_token(self, input: impl Into<String>) -> Self
pub fn request_token(self, input: impl Into<String>) -> Self
The unique token representing this resource operation request.
Use the RequestToken
with GetResourceRequestStatus to return the current status of a resource operation request.
sourcepub fn set_request_token(self, input: Option<String>) -> Self
pub fn set_request_token(self, input: Option<String>) -> Self
The unique token representing this resource operation request.
Use the RequestToken
with GetResourceRequestStatus to return the current status of a resource operation request.
sourcepub fn set_operation(self, input: Option<Operation>) -> Self
pub fn set_operation(self, input: Option<Operation>) -> Self
The resource operation type.
sourcepub fn operation_status(self, input: OperationStatus) -> Self
pub fn operation_status(self, input: OperationStatus) -> Self
The current status of the resource operation request.
-
PENDING
: The resource operation hasn't yet started. -
IN_PROGRESS
: The resource operation is currently in progress. -
SUCCESS
: The resource operation has successfully completed. -
FAILED
: The resource operation has failed. Refer to the error code and status message for more information. -
CANCEL_IN_PROGRESS
: The resource operation is in the process of being canceled. -
CANCEL_COMPLETE
: The resource operation has been canceled.
sourcepub fn set_operation_status(self, input: Option<OperationStatus>) -> Self
pub fn set_operation_status(self, input: Option<OperationStatus>) -> Self
The current status of the resource operation request.
-
PENDING
: The resource operation hasn't yet started. -
IN_PROGRESS
: The resource operation is currently in progress. -
SUCCESS
: The resource operation has successfully completed. -
FAILED
: The resource operation has failed. Refer to the error code and status message for more information. -
CANCEL_IN_PROGRESS
: The resource operation is in the process of being canceled. -
CANCEL_COMPLETE
: The resource operation has been canceled.
sourcepub fn event_time(self, input: DateTime) -> Self
pub fn event_time(self, input: DateTime) -> Self
When the resource operation request was initiated.
sourcepub fn set_event_time(self, input: Option<DateTime>) -> Self
pub fn set_event_time(self, input: Option<DateTime>) -> Self
When the resource operation request was initiated.
sourcepub fn resource_model(self, input: impl Into<String>) -> Self
pub fn resource_model(self, input: impl Into<String>) -> Self
A JSON string containing the resource model, consisting of each resource property and its current value.
sourcepub fn set_resource_model(self, input: Option<String>) -> Self
pub fn set_resource_model(self, input: Option<String>) -> Self
A JSON string containing the resource model, consisting of each resource property and its current value.
sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
Any message explaining the current status.
sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
Any message explaining the current status.
sourcepub fn error_code(self, input: HandlerErrorCode) -> Self
pub fn error_code(self, input: HandlerErrorCode) -> Self
For requests with a status of FAILED
, the associated error code.
For error code definitions, see Handler error codes in the CloudFormation Command Line Interface User Guide for Extension Development.
sourcepub fn set_error_code(self, input: Option<HandlerErrorCode>) -> Self
pub fn set_error_code(self, input: Option<HandlerErrorCode>) -> Self
For requests with a status of FAILED
, the associated error code.
For error code definitions, see Handler error codes in the CloudFormation Command Line Interface User Guide for Extension Development.
sourcepub fn retry_after(self, input: DateTime) -> Self
pub fn retry_after(self, input: DateTime) -> Self
When to next request the status of this resource operation request.
sourcepub fn set_retry_after(self, input: Option<DateTime>) -> Self
pub fn set_retry_after(self, input: Option<DateTime>) -> Self
When to next request the status of this resource operation request.
sourcepub fn build(self) -> ProgressEvent
pub fn build(self) -> ProgressEvent
Consumes the builder and constructs a ProgressEvent
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more