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
source§fn eq(&self, other: &EnvironmentStateBuilder) -> bool
fn eq(&self, other: &EnvironmentStateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.