#[non_exhaustive]pub struct TaskTemplateMetadataBuilder { /* private fields */ }
Expand description
A builder for TaskTemplateMetadata
.
Implementations§
source§impl TaskTemplateMetadataBuilder
impl TaskTemplateMetadataBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the task template.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the task template.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the task template.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the task template.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the task template.
sourcepub fn status(self, input: TaskTemplateStatus) -> Self
pub fn status(self, input: TaskTemplateStatus) -> Self
Marks a template as ACTIVE
or INACTIVE
for a task to refer to it. Tasks can only be created from ACTIVE
templates. If a template is marked as INACTIVE
, then a task that refers to this template cannot be created.
sourcepub fn set_status(self, input: Option<TaskTemplateStatus>) -> Self
pub fn set_status(self, input: Option<TaskTemplateStatus>) -> Self
Marks a template as ACTIVE
or INACTIVE
for a task to refer to it. Tasks can only be created from ACTIVE
templates. If a template is marked as INACTIVE
, then a task that refers to this template cannot be created.
sourcepub fn get_status(&self) -> &Option<TaskTemplateStatus>
pub fn get_status(&self) -> &Option<TaskTemplateStatus>
Marks a template as ACTIVE
or INACTIVE
for a task to refer to it. Tasks can only be created from ACTIVE
templates. If a template is marked as INACTIVE
, then a task that refers to this template cannot be created.
sourcepub fn last_modified_time(self, input: DateTime) -> Self
pub fn last_modified_time(self, input: DateTime) -> Self
The timestamp when the task template was last modified.
sourcepub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
The timestamp when the task template was last modified.
sourcepub fn get_last_modified_time(&self) -> &Option<DateTime>
pub fn get_last_modified_time(&self) -> &Option<DateTime>
The timestamp when the task template was last modified.
sourcepub fn created_time(self, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The timestamp when the task template was created.
sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The timestamp when the task template was created.
sourcepub fn get_created_time(&self) -> &Option<DateTime>
pub fn get_created_time(&self) -> &Option<DateTime>
The timestamp when the task template was created.
sourcepub fn build(self) -> TaskTemplateMetadata
pub fn build(self) -> TaskTemplateMetadata
Consumes the builder and constructs a TaskTemplateMetadata
.
Trait Implementations§
source§impl Clone for TaskTemplateMetadataBuilder
impl Clone for TaskTemplateMetadataBuilder
source§fn clone(&self) -> TaskTemplateMetadataBuilder
fn clone(&self) -> TaskTemplateMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskTemplateMetadataBuilder
impl Debug for TaskTemplateMetadataBuilder
source§impl Default for TaskTemplateMetadataBuilder
impl Default for TaskTemplateMetadataBuilder
source§fn default() -> TaskTemplateMetadataBuilder
fn default() -> TaskTemplateMetadataBuilder
source§impl PartialEq for TaskTemplateMetadataBuilder
impl PartialEq for TaskTemplateMetadataBuilder
source§fn eq(&self, other: &TaskTemplateMetadataBuilder) -> bool
fn eq(&self, other: &TaskTemplateMetadataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TaskTemplateMetadataBuilder
Auto Trait Implementations§
impl Freeze for TaskTemplateMetadataBuilder
impl RefUnwindSafe for TaskTemplateMetadataBuilder
impl Send for TaskTemplateMetadataBuilder
impl Sync for TaskTemplateMetadataBuilder
impl Unpin for TaskTemplateMetadataBuilder
impl UnwindSafe for TaskTemplateMetadataBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more