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 ==
.impl StructuralPartialEq for ServiceInstanceStateBuilder
Auto Trait Implementations§
impl Freeze for ServiceInstanceStateBuilder
impl RefUnwindSafe for ServiceInstanceStateBuilder
impl Send for ServiceInstanceStateBuilder
impl Sync for ServiceInstanceStateBuilder
impl Unpin for ServiceInstanceStateBuilder
impl UnwindSafe for ServiceInstanceStateBuilder
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