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