Struct aws_sdk_ec2::model::bundle_task::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for BundleTask
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_bundle_id(self, input: Option<String>) -> Self
pub fn set_bundle_id(self, input: Option<String>) -> Self
The ID of the bundle task.
sourcepub fn bundle_task_error(self, input: BundleTaskError) -> Self
pub fn bundle_task_error(self, input: BundleTaskError) -> Self
If the task fails, a description of the error.
sourcepub fn set_bundle_task_error(self, input: Option<BundleTaskError>) -> Self
pub fn set_bundle_task_error(self, input: Option<BundleTaskError>) -> Self
If the task fails, a description of the error.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the instance associated with this bundle task.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the instance associated with this bundle task.
sourcepub fn progress(self, input: impl Into<String>) -> Self
pub fn progress(self, input: impl Into<String>) -> Self
The level of task completion, as a percent (for example, 20%).
sourcepub fn set_progress(self, input: Option<String>) -> Self
pub fn set_progress(self, input: Option<String>) -> Self
The level of task completion, as a percent (for example, 20%).
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The time this task started.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The time this task started.
sourcepub fn state(self, input: BundleTaskState) -> Self
pub fn state(self, input: BundleTaskState) -> Self
The state of the task.
sourcepub fn set_state(self, input: Option<BundleTaskState>) -> Self
pub fn set_state(self, input: Option<BundleTaskState>) -> Self
The state of the task.
sourcepub fn set_storage(self, input: Option<Storage>) -> Self
pub fn set_storage(self, input: Option<Storage>) -> Self
The Amazon S3 storage locations.
sourcepub fn update_time(self, input: DateTime) -> Self
pub fn update_time(self, input: DateTime) -> Self
The time of the most recent update for the task.
sourcepub fn set_update_time(self, input: Option<DateTime>) -> Self
pub fn set_update_time(self, input: Option<DateTime>) -> Self
The time of the most recent update for the task.
sourcepub fn build(self) -> BundleTask
pub fn build(self) -> BundleTask
Consumes the builder and constructs a BundleTask
.