#[non_exhaustive]pub struct ServiceTemplateVersionBuilder { /* private fields */ }
Expand description
A builder for ServiceTemplateVersion
.
Implementations§
source§impl ServiceTemplateVersionBuilder
impl ServiceTemplateVersionBuilder
sourcepub fn template_name(self, input: impl Into<String>) -> Self
pub fn template_name(self, input: impl Into<String>) -> Self
The name of the version of a service template.
sourcepub fn set_template_name(self, input: Option<String>) -> Self
pub fn set_template_name(self, input: Option<String>) -> Self
The name of the version of a service template.
sourcepub fn get_template_name(&self) -> &Option<String>
pub fn get_template_name(&self) -> &Option<String>
The name of the version of a service template.
sourcepub fn major_version(self, input: impl Into<String>) -> Self
pub fn major_version(self, input: impl Into<String>) -> Self
The latest major version that's associated with the version of a service template.
sourcepub fn set_major_version(self, input: Option<String>) -> Self
pub fn set_major_version(self, input: Option<String>) -> Self
The latest major version that's associated with the version of a service template.
sourcepub fn get_major_version(&self) -> &Option<String>
pub fn get_major_version(&self) -> &Option<String>
The latest major version that's associated with the version of a service template.
sourcepub fn minor_version(self, input: impl Into<String>) -> Self
pub fn minor_version(self, input: impl Into<String>) -> Self
The minor version of a service template.
sourcepub fn set_minor_version(self, input: Option<String>) -> Self
pub fn set_minor_version(self, input: Option<String>) -> Self
The minor version of a service template.
sourcepub fn get_minor_version(&self) -> &Option<String>
pub fn get_minor_version(&self) -> &Option<String>
The minor version of a service template.
sourcepub fn recommended_minor_version(self, input: impl Into<String>) -> Self
pub fn recommended_minor_version(self, input: impl Into<String>) -> Self
The recommended minor version of the service template.
sourcepub fn set_recommended_minor_version(self, input: Option<String>) -> Self
pub fn set_recommended_minor_version(self, input: Option<String>) -> Self
The recommended minor version of the service template.
sourcepub fn get_recommended_minor_version(&self) -> &Option<String>
pub fn get_recommended_minor_version(&self) -> &Option<String>
The recommended minor version of the service template.
sourcepub fn status(self, input: TemplateVersionStatus) -> Self
pub fn status(self, input: TemplateVersionStatus) -> Self
The service template version status.
sourcepub fn set_status(self, input: Option<TemplateVersionStatus>) -> Self
pub fn set_status(self, input: Option<TemplateVersionStatus>) -> Self
The service template version status.
sourcepub fn get_status(&self) -> &Option<TemplateVersionStatus>
pub fn get_status(&self) -> &Option<TemplateVersionStatus>
The service template version status.
sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
A service template version status message.
sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
A service template version status message.
sourcepub fn get_status_message(&self) -> &Option<String>
pub fn get_status_message(&self) -> &Option<String>
A service template version status message.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the version of a service template.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the version of a service template.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the version of a service template.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the version of a service template.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the version of a service template.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the version of a service template.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time when the version of a service template was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time when the version of a service template was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time when the version of a service template was created.
sourcepub fn last_modified_at(self, input: DateTime) -> Self
pub fn last_modified_at(self, input: DateTime) -> Self
The time when the version of a service template was last modified.
sourcepub fn set_last_modified_at(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_at(self, input: Option<DateTime>) -> Self
The time when the version of a service template was last modified.
sourcepub fn get_last_modified_at(&self) -> &Option<DateTime>
pub fn get_last_modified_at(&self) -> &Option<DateTime>
The time when the version of a service template was last modified.
sourcepub fn compatible_environment_templates(
self,
input: CompatibleEnvironmentTemplate
) -> Self
pub fn compatible_environment_templates( self, input: CompatibleEnvironmentTemplate ) -> Self
Appends an item to compatible_environment_templates
.
To override the contents of this collection use set_compatible_environment_templates
.
An array of compatible environment template names for the major version of a service template.
sourcepub fn set_compatible_environment_templates(
self,
input: Option<Vec<CompatibleEnvironmentTemplate>>
) -> Self
pub fn set_compatible_environment_templates( self, input: Option<Vec<CompatibleEnvironmentTemplate>> ) -> Self
An array of compatible environment template names for the major version of a service template.
sourcepub fn get_compatible_environment_templates(
&self
) -> &Option<Vec<CompatibleEnvironmentTemplate>>
pub fn get_compatible_environment_templates( &self ) -> &Option<Vec<CompatibleEnvironmentTemplate>>
An array of compatible environment template names for the major version of a service template.
sourcepub fn schema(self, input: impl Into<String>) -> Self
pub fn schema(self, input: impl Into<String>) -> Self
The schema of the version of a service template.
sourcepub fn set_schema(self, input: Option<String>) -> Self
pub fn set_schema(self, input: Option<String>) -> Self
The schema of the version of a service template.
sourcepub fn get_schema(&self) -> &Option<String>
pub fn get_schema(&self) -> &Option<String>
The schema of the version of a service template.
sourcepub fn supported_component_sources(
self,
input: ServiceTemplateSupportedComponentSourceType
) -> Self
pub fn supported_component_sources( self, input: ServiceTemplateSupportedComponentSourceType ) -> Self
Appends an item to supported_component_sources
.
To override the contents of this collection use set_supported_component_sources
.
An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
sourcepub fn set_supported_component_sources(
self,
input: Option<Vec<ServiceTemplateSupportedComponentSourceType>>
) -> Self
pub fn set_supported_component_sources( self, input: Option<Vec<ServiceTemplateSupportedComponentSourceType>> ) -> Self
An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
sourcepub fn get_supported_component_sources(
&self
) -> &Option<Vec<ServiceTemplateSupportedComponentSourceType>>
pub fn get_supported_component_sources( &self ) -> &Option<Vec<ServiceTemplateSupportedComponentSourceType>>
An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
sourcepub fn build(self) -> ServiceTemplateVersion
pub fn build(self) -> ServiceTemplateVersion
Consumes the builder and constructs a ServiceTemplateVersion
.
Trait Implementations§
source§impl Clone for ServiceTemplateVersionBuilder
impl Clone for ServiceTemplateVersionBuilder
source§fn clone(&self) -> ServiceTemplateVersionBuilder
fn clone(&self) -> ServiceTemplateVersionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ServiceTemplateVersionBuilder
impl Default for ServiceTemplateVersionBuilder
source§fn default() -> ServiceTemplateVersionBuilder
fn default() -> ServiceTemplateVersionBuilder
source§impl PartialEq for ServiceTemplateVersionBuilder
impl PartialEq for ServiceTemplateVersionBuilder
source§fn eq(&self, other: &ServiceTemplateVersionBuilder) -> bool
fn eq(&self, other: &ServiceTemplateVersionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.