Struct aws_sdk_ecs::model::protected_task::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ProtectedTask.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_task_arn(self, input: Option<String>) -> Self
pub fn set_task_arn(self, input: Option<String>) -> Self
The task ARN.
sourcepub fn protection_enabled(self, input: bool) -> Self
pub fn protection_enabled(self, input: bool) -> Self
The protection status of the task. If scale-in protection is enabled for a task, the value is true. Otherwise, it is false.
sourcepub fn set_protection_enabled(self, input: Option<bool>) -> Self
pub fn set_protection_enabled(self, input: Option<bool>) -> Self
The protection status of the task. If scale-in protection is enabled for a task, the value is true. Otherwise, it is false.
sourcepub fn expiration_date(self, input: DateTime) -> Self
pub fn expiration_date(self, input: DateTime) -> Self
The epoch time when protection for the task will expire.
sourcepub fn set_expiration_date(self, input: Option<DateTime>) -> Self
pub fn set_expiration_date(self, input: Option<DateTime>) -> Self
The epoch time when protection for the task will expire.
sourcepub fn build(self) -> ProtectedTask
pub fn build(self) -> ProtectedTask
Consumes the builder and constructs a ProtectedTask.