Struct aws_sdk_cloudcontrol::model::progress_event::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ProgressEvent
.
Implementations§
source§impl 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
.