Struct aws_sdk_swf::types::builders::ActivityTypeInfoBuilder
source · #[non_exhaustive]pub struct ActivityTypeInfoBuilder { /* private fields */ }
Expand description
A builder for ActivityTypeInfo
.
Implementations§
source§impl ActivityTypeInfoBuilder
impl ActivityTypeInfoBuilder
sourcepub fn activity_type(self, input: ActivityType) -> Self
pub fn activity_type(self, input: ActivityType) -> Self
The ActivityType
type structure representing the activity type.
sourcepub fn set_activity_type(self, input: Option<ActivityType>) -> Self
pub fn set_activity_type(self, input: Option<ActivityType>) -> Self
The ActivityType
type structure representing the activity type.
sourcepub fn get_activity_type(&self) -> &Option<ActivityType>
pub fn get_activity_type(&self) -> &Option<ActivityType>
The ActivityType
type structure representing the activity type.
sourcepub fn status(self, input: RegistrationStatus) -> Self
pub fn status(self, input: RegistrationStatus) -> Self
The current status of the activity type.
This field is required.sourcepub fn set_status(self, input: Option<RegistrationStatus>) -> Self
pub fn set_status(self, input: Option<RegistrationStatus>) -> Self
The current status of the activity type.
sourcepub fn get_status(&self) -> &Option<RegistrationStatus>
pub fn get_status(&self) -> &Option<RegistrationStatus>
The current status of the activity type.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the activity type provided in RegisterActivityType
.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the activity type provided in RegisterActivityType
.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the activity type provided in RegisterActivityType
.
sourcepub fn creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
The date and time this activity type was created through RegisterActivityType
.
sourcepub fn set_creation_date(self, input: Option<DateTime>) -> Self
pub fn set_creation_date(self, input: Option<DateTime>) -> Self
The date and time this activity type was created through RegisterActivityType
.
sourcepub fn get_creation_date(&self) -> &Option<DateTime>
pub fn get_creation_date(&self) -> &Option<DateTime>
The date and time this activity type was created through RegisterActivityType
.
sourcepub fn deprecation_date(self, input: DateTime) -> Self
pub fn deprecation_date(self, input: DateTime) -> Self
If DEPRECATED, the date and time DeprecateActivityType
was called.
sourcepub fn set_deprecation_date(self, input: Option<DateTime>) -> Self
pub fn set_deprecation_date(self, input: Option<DateTime>) -> Self
If DEPRECATED, the date and time DeprecateActivityType
was called.
sourcepub fn get_deprecation_date(&self) -> &Option<DateTime>
pub fn get_deprecation_date(&self) -> &Option<DateTime>
If DEPRECATED, the date and time DeprecateActivityType
was called.
sourcepub fn build(self) -> Result<ActivityTypeInfo, BuildError>
pub fn build(self) -> Result<ActivityTypeInfo, BuildError>
Consumes the builder and constructs a ActivityTypeInfo
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ActivityTypeInfoBuilder
impl Clone for ActivityTypeInfoBuilder
source§fn clone(&self) -> ActivityTypeInfoBuilder
fn clone(&self) -> ActivityTypeInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ActivityTypeInfoBuilder
impl Debug for ActivityTypeInfoBuilder
source§impl Default for ActivityTypeInfoBuilder
impl Default for ActivityTypeInfoBuilder
source§fn default() -> ActivityTypeInfoBuilder
fn default() -> ActivityTypeInfoBuilder
source§impl PartialEq for ActivityTypeInfoBuilder
impl PartialEq for ActivityTypeInfoBuilder
source§fn eq(&self, other: &ActivityTypeInfoBuilder) -> bool
fn eq(&self, other: &ActivityTypeInfoBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.