Struct aws_sdk_proton::types::builders::ServiceInstanceStateBuilder
source · #[non_exhaustive]pub struct ServiceInstanceStateBuilder { /* private fields */ }
Expand description
A builder for ServiceInstanceState
.
Implementations§
source§impl ServiceInstanceStateBuilder
impl ServiceInstanceStateBuilder
sourcepub fn spec(self, input: impl Into<String>) -> Self
pub fn spec(self, input: impl Into<String>) -> Self
The service spec that was used to create the service instance.
This field is required.sourcepub fn set_spec(self, input: Option<String>) -> Self
pub fn set_spec(self, input: Option<String>) -> Self
The service spec that was used to create the service instance.
sourcepub fn get_spec(&self) -> &Option<String>
pub fn get_spec(&self) -> &Option<String>
The service spec that was used to create the service instance.
sourcepub fn template_name(self, input: impl Into<String>) -> Self
pub fn template_name(self, input: impl Into<String>) -> Self
The name of the service template that was used to create the service instance.
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 service template that was used to create the service instance.
sourcepub fn get_template_name(&self) -> &Option<String>
pub fn get_template_name(&self) -> &Option<String>
The name of the service template that was used to create the service instance.
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 service template that was used to create the service pipeline.
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 service template that was used to create the service pipeline.
sourcepub fn get_template_major_version(&self) -> &Option<String>
pub fn get_template_major_version(&self) -> &Option<String>
The major version of the service template that was used to create the service pipeline.
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 service template that was used to create the service pipeline.
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 service template that was used to create the service pipeline.
sourcepub fn get_template_minor_version(&self) -> &Option<String>
pub fn get_template_minor_version(&self) -> &Option<String>
The minor version of the service template that was used to create the service pipeline.
sourcepub fn last_successful_component_deployment_ids(
self,
input: impl Into<String>
) -> Self
pub fn last_successful_component_deployment_ids( self, input: impl Into<String> ) -> Self
Appends an item to last_successful_component_deployment_ids
.
To override the contents of this collection use set_last_successful_component_deployment_ids
.
The IDs for the last successful components deployed for this service instance.
sourcepub fn set_last_successful_component_deployment_ids(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_last_successful_component_deployment_ids( self, input: Option<Vec<String>> ) -> Self
The IDs for the last successful components deployed for this service instance.
sourcepub fn get_last_successful_component_deployment_ids(
&self
) -> &Option<Vec<String>>
pub fn get_last_successful_component_deployment_ids( &self ) -> &Option<Vec<String>>
The IDs for the last successful components deployed for this service instance.
sourcepub fn last_successful_environment_deployment_id(
self,
input: impl Into<String>
) -> Self
pub fn last_successful_environment_deployment_id( self, input: impl Into<String> ) -> Self
The ID for the last successful environment deployed for this service instance.
sourcepub fn set_last_successful_environment_deployment_id(
self,
input: Option<String>
) -> Self
pub fn set_last_successful_environment_deployment_id( self, input: Option<String> ) -> Self
The ID for the last successful environment deployed for this service instance.
sourcepub fn get_last_successful_environment_deployment_id(&self) -> &Option<String>
pub fn get_last_successful_environment_deployment_id(&self) -> &Option<String>
The ID for the last successful environment deployed for this service instance.
sourcepub fn last_successful_service_pipeline_deployment_id(
self,
input: impl Into<String>
) -> Self
pub fn last_successful_service_pipeline_deployment_id( self, input: impl Into<String> ) -> Self
The ID for the last successful service pipeline deployed for this service instance.
sourcepub fn set_last_successful_service_pipeline_deployment_id(
self,
input: Option<String>
) -> Self
pub fn set_last_successful_service_pipeline_deployment_id( self, input: Option<String> ) -> Self
The ID for the last successful service pipeline deployed for this service instance.
sourcepub fn get_last_successful_service_pipeline_deployment_id(
&self
) -> &Option<String>
pub fn get_last_successful_service_pipeline_deployment_id( &self ) -> &Option<String>
The ID for the last successful service pipeline deployed for this service instance.
sourcepub fn build(self) -> Result<ServiceInstanceState, BuildError>
pub fn build(self) -> Result<ServiceInstanceState, BuildError>
Consumes the builder and constructs a ServiceInstanceState
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ServiceInstanceStateBuilder
impl Clone for ServiceInstanceStateBuilder
source§fn clone(&self) -> ServiceInstanceStateBuilder
fn clone(&self) -> ServiceInstanceStateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceInstanceStateBuilder
impl Debug for ServiceInstanceStateBuilder
source§impl Default for ServiceInstanceStateBuilder
impl Default for ServiceInstanceStateBuilder
source§fn default() -> ServiceInstanceStateBuilder
fn default() -> ServiceInstanceStateBuilder
source§impl PartialEq for ServiceInstanceStateBuilder
impl PartialEq for ServiceInstanceStateBuilder
source§fn eq(&self, other: &ServiceInstanceStateBuilder) -> bool
fn eq(&self, other: &ServiceInstanceStateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.