Struct aws_sdk_proton::operation::create_environment_template_version::builders::CreateEnvironmentTemplateVersionInputBuilder
source · #[non_exhaustive]pub struct CreateEnvironmentTemplateVersionInputBuilder { /* private fields */ }
Expand description
A builder for CreateEnvironmentTemplateVersionInput
.
Implementations§
source§impl CreateEnvironmentTemplateVersionInputBuilder
impl CreateEnvironmentTemplateVersionInputBuilder
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
When included, if two identical requests are made with the same client token, Proton returns the environment template version that the first request created.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
When included, if two identical requests are made with the same client token, Proton returns the environment template version that the first request created.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
When included, if two identical requests are made with the same client token, Proton returns the environment template version that the first request created.
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.
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.
sourcepub fn get_template_name(&self) -> &Option<String>
pub fn get_template_name(&self) -> &Option<String>
The name of the environment template.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the new version of an environment template.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the new version of an environment template.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the new version of an environment template.
sourcepub fn major_version(self, input: impl Into<String>) -> Self
pub fn major_version(self, input: impl Into<String>) -> Self
To create a new minor version of the environment template, include major Version
.
To create a new major and minor version of the environment template, exclude major Version
.
sourcepub fn set_major_version(self, input: Option<String>) -> Self
pub fn set_major_version(self, input: Option<String>) -> Self
To create a new minor version of the environment template, include major Version
.
To create a new major and minor version of the environment template, exclude major Version
.
sourcepub fn get_major_version(&self) -> &Option<String>
pub fn get_major_version(&self) -> &Option<String>
To create a new minor version of the environment template, include major Version
.
To create a new major and minor version of the environment template, exclude major Version
.
sourcepub fn source(self, input: TemplateVersionSourceInput) -> Self
pub fn source(self, input: TemplateVersionSourceInput) -> Self
An object that includes the template bundle S3 bucket path and name for the new version of an template.
sourcepub fn set_source(self, input: Option<TemplateVersionSourceInput>) -> Self
pub fn set_source(self, input: Option<TemplateVersionSourceInput>) -> Self
An object that includes the template bundle S3 bucket path and name for the new version of an template.
sourcepub fn get_source(&self) -> &Option<TemplateVersionSourceInput>
pub fn get_source(&self) -> &Option<TemplateVersionSourceInput>
An object that includes the template bundle S3 bucket path and name for the new version of an template.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
An optional list of metadata items that you can associate with the Proton environment template version. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
An optional list of metadata items that you can associate with the Proton environment template version. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
An optional list of metadata items that you can associate with the Proton environment template version. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
sourcepub fn build(self) -> Result<CreateEnvironmentTemplateVersionInput, BuildError>
pub fn build(self) -> Result<CreateEnvironmentTemplateVersionInput, BuildError>
Consumes the builder and constructs a CreateEnvironmentTemplateVersionInput
.
source§impl CreateEnvironmentTemplateVersionInputBuilder
impl CreateEnvironmentTemplateVersionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateEnvironmentTemplateVersionOutput, SdkError<CreateEnvironmentTemplateVersionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateEnvironmentTemplateVersionOutput, SdkError<CreateEnvironmentTemplateVersionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateEnvironmentTemplateVersionInputBuilder
impl Clone for CreateEnvironmentTemplateVersionInputBuilder
source§fn clone(&self) -> CreateEnvironmentTemplateVersionInputBuilder
fn clone(&self) -> CreateEnvironmentTemplateVersionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateEnvironmentTemplateVersionInputBuilder
impl Default for CreateEnvironmentTemplateVersionInputBuilder
source§fn default() -> CreateEnvironmentTemplateVersionInputBuilder
fn default() -> CreateEnvironmentTemplateVersionInputBuilder
source§impl PartialEq for CreateEnvironmentTemplateVersionInputBuilder
impl PartialEq for CreateEnvironmentTemplateVersionInputBuilder
source§fn eq(&self, other: &CreateEnvironmentTemplateVersionInputBuilder) -> bool
fn eq(&self, other: &CreateEnvironmentTemplateVersionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.