Struct aws_sdk_proton::types::builders::EnvironmentStateBuilder
source · #[non_exhaustive]pub struct EnvironmentStateBuilder { /* private fields */ }
Expand description
A builder for EnvironmentState
.
Implementations§
source§impl EnvironmentStateBuilder
impl EnvironmentStateBuilder
sourcepub fn spec(self, input: impl Into<String>) -> Self
pub fn spec(self, input: impl Into<String>) -> Self
The environment spec that was used to create the environment.
sourcepub fn set_spec(self, input: Option<String>) -> Self
pub fn set_spec(self, input: Option<String>) -> Self
The environment spec that was used to create the environment.
sourcepub fn get_spec(&self) -> &Option<String>
pub fn get_spec(&self) -> &Option<String>
The environment spec that was used to create the environment.
sourcepub fn template_name(self, input: impl Into<String>) -> Self
pub fn template_name(self, input: impl Into<String>) -> Self
The name of the environment template that was used to create the environment.
This field is required.sourcepub fn set_template_name(self, input: Option<String>) -> Self
pub fn set_template_name(self, input: Option<String>) -> Self
The name of the environment template that was used to create the environment.
sourcepub fn get_template_name(&self) -> &Option<String>
pub fn get_template_name(&self) -> &Option<String>
The name of the environment template that was used to create the environment.
sourcepub fn template_major_version(self, input: impl Into<String>) -> Self
pub fn template_major_version(self, input: impl Into<String>) -> Self
The major version of the environment template that was used to create the environment.
This field is required.sourcepub fn set_template_major_version(self, input: Option<String>) -> Self
pub fn set_template_major_version(self, input: Option<String>) -> Self
The major version of the environment template that was used to create the environment.
sourcepub fn get_template_major_version(&self) -> &Option<String>
pub fn get_template_major_version(&self) -> &Option<String>
The major version of the environment template that was used to create the environment.
sourcepub fn template_minor_version(self, input: impl Into<String>) -> Self
pub fn template_minor_version(self, input: impl Into<String>) -> Self
The minor version of the environment template that was used to create the environment.
This field is required.sourcepub fn set_template_minor_version(self, input: Option<String>) -> Self
pub fn set_template_minor_version(self, input: Option<String>) -> Self
The minor version of the environment template that was used to create the environment.
sourcepub fn get_template_minor_version(&self) -> &Option<String>
pub fn get_template_minor_version(&self) -> &Option<String>
The minor version of the environment template that was used to create the environment.
sourcepub fn build(self) -> Result<EnvironmentState, BuildError>
pub fn build(self) -> Result<EnvironmentState, BuildError>
Consumes the builder and constructs a EnvironmentState
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EnvironmentStateBuilder
impl Clone for EnvironmentStateBuilder
source§fn clone(&self) -> EnvironmentStateBuilder
fn clone(&self) -> EnvironmentStateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EnvironmentStateBuilder
impl Debug for EnvironmentStateBuilder
source§impl Default for EnvironmentStateBuilder
impl Default for EnvironmentStateBuilder
source§fn default() -> EnvironmentStateBuilder
fn default() -> EnvironmentStateBuilder
source§impl PartialEq for EnvironmentStateBuilder
impl PartialEq for EnvironmentStateBuilder
impl StructuralPartialEq for EnvironmentStateBuilder
Auto Trait Implementations§
impl Freeze for EnvironmentStateBuilder
impl RefUnwindSafe for EnvironmentStateBuilder
impl Send for EnvironmentStateBuilder
impl Sync for EnvironmentStateBuilder
impl Unpin for EnvironmentStateBuilder
impl UnwindSafe for EnvironmentStateBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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