Struct aws_sdk_ecs::types::ProtectedTask
source · #[non_exhaustive]pub struct ProtectedTask { /* private fields */ }Expand description
An object representing the protection status details for a task. You can set the protection status with the UpdateTaskProtection API and get the status of tasks with the GetTaskProtection API.
Implementations§
source§impl ProtectedTask
impl ProtectedTask
sourcepub fn protection_enabled(&self) -> bool
pub fn protection_enabled(&self) -> bool
The protection status of the task. If scale-in protection is on for a task, the value is true. Otherwise, it is false.
sourcepub fn expiration_date(&self) -> Option<&DateTime>
pub fn expiration_date(&self) -> Option<&DateTime>
The epoch time when protection for the task will expire.
source§impl ProtectedTask
impl ProtectedTask
sourcepub fn builder() -> ProtectedTaskBuilder
pub fn builder() -> ProtectedTaskBuilder
Creates a new builder-style object to manufacture ProtectedTask.
Trait Implementations§
source§impl Clone for ProtectedTask
impl Clone for ProtectedTask
source§fn clone(&self) -> ProtectedTask
fn clone(&self) -> ProtectedTask
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ProtectedTask
impl Debug for ProtectedTask
source§impl PartialEq<ProtectedTask> for ProtectedTask
impl PartialEq<ProtectedTask> for ProtectedTask
source§fn eq(&self, other: &ProtectedTask) -> bool
fn eq(&self, other: &ProtectedTask) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ProtectedTask
Auto Trait Implementations§
impl RefUnwindSafe for ProtectedTask
impl Send for ProtectedTask
impl Sync for ProtectedTask
impl Unpin for ProtectedTask
impl UnwindSafe for ProtectedTask
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more