Struct aws_sdk_swf::types::builders::DomainInfoBuilder
source · #[non_exhaustive]pub struct DomainInfoBuilder { /* private fields */ }
Expand description
A builder for DomainInfo
.
Implementations§
source§impl DomainInfoBuilder
impl DomainInfoBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the domain. This name is unique within the account.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the domain. This name is unique within the account.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the domain. This name is unique within the account.
sourcepub fn status(self, input: RegistrationStatus) -> Self
pub fn status(self, input: RegistrationStatus) -> Self
The status of the domain:
-
REGISTERED
– The domain is properly registered and available. You can use this domain for registering types and creating new workflow executions. -
DEPRECATED
– The domain was deprecated usingDeprecateDomain
, but is still in use. You should not create new workflow executions in this domain.
sourcepub fn set_status(self, input: Option<RegistrationStatus>) -> Self
pub fn set_status(self, input: Option<RegistrationStatus>) -> Self
The status of the domain:
-
REGISTERED
– The domain is properly registered and available. You can use this domain for registering types and creating new workflow executions. -
DEPRECATED
– The domain was deprecated usingDeprecateDomain
, but is still in use. You should not create new workflow executions in this domain.
sourcepub fn get_status(&self) -> &Option<RegistrationStatus>
pub fn get_status(&self) -> &Option<RegistrationStatus>
The status of the domain:
-
REGISTERED
– The domain is properly registered and available. You can use this domain for registering types and creating new workflow executions. -
DEPRECATED
– The domain was deprecated usingDeprecateDomain
, but is still in use. You should not create new workflow executions in this domain.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the domain provided through RegisterDomain
.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the domain provided through RegisterDomain
.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the domain provided through RegisterDomain
.
sourcepub fn build(self) -> Result<DomainInfo, BuildError>
pub fn build(self) -> Result<DomainInfo, BuildError>
Consumes the builder and constructs a DomainInfo
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DomainInfoBuilder
impl Clone for DomainInfoBuilder
source§fn clone(&self) -> DomainInfoBuilder
fn clone(&self) -> DomainInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DomainInfoBuilder
impl Debug for DomainInfoBuilder
source§impl Default for DomainInfoBuilder
impl Default for DomainInfoBuilder
source§fn default() -> DomainInfoBuilder
fn default() -> DomainInfoBuilder
source§impl PartialEq for DomainInfoBuilder
impl PartialEq for DomainInfoBuilder
source§fn eq(&self, other: &DomainInfoBuilder) -> bool
fn eq(&self, other: &DomainInfoBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DomainInfoBuilder
Auto Trait Implementations§
impl Freeze for DomainInfoBuilder
impl RefUnwindSafe for DomainInfoBuilder
impl Send for DomainInfoBuilder
impl Sync for DomainInfoBuilder
impl Unpin for DomainInfoBuilder
impl UnwindSafe for DomainInfoBuilder
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