Struct aws_sdk_swf::types::builders::ActivityTypeBuilder
source · #[non_exhaustive]pub struct ActivityTypeBuilder { /* private fields */ }
Expand description
A builder for ActivityType
.
Implementations§
source§impl ActivityTypeBuilder
impl ActivityTypeBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of this activity.
The combination of activity type name and version must be unique within a domain.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of this activity.
The combination of activity type name and version must be unique within a domain.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of this activity.
The combination of activity type name and version must be unique within a domain.
sourcepub fn version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
The version of this activity.
The combination of activity type name and version must be unique with in a domain.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version of this activity.
The combination of activity type name and version must be unique with in a domain.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version of this activity.
The combination of activity type name and version must be unique with in a domain.
sourcepub fn build(self) -> Result<ActivityType, BuildError>
pub fn build(self) -> Result<ActivityType, BuildError>
Consumes the builder and constructs a ActivityType
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ActivityTypeBuilder
impl Clone for ActivityTypeBuilder
source§fn clone(&self) -> ActivityTypeBuilder
fn clone(&self) -> ActivityTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ActivityTypeBuilder
impl Debug for ActivityTypeBuilder
source§impl Default for ActivityTypeBuilder
impl Default for ActivityTypeBuilder
source§fn default() -> ActivityTypeBuilder
fn default() -> ActivityTypeBuilder
source§impl PartialEq for ActivityTypeBuilder
impl PartialEq for ActivityTypeBuilder
source§fn eq(&self, other: &ActivityTypeBuilder) -> bool
fn eq(&self, other: &ActivityTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.