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
impl StructuralPartialEq for ActivityTypeBuilder
Auto Trait Implementations§
impl Freeze for ActivityTypeBuilder
impl RefUnwindSafe for ActivityTypeBuilder
impl Send for ActivityTypeBuilder
impl Sync for ActivityTypeBuilder
impl Unpin for ActivityTypeBuilder
impl UnwindSafe for ActivityTypeBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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