#[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 ==
.