/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Proton { namespace Model { /** */ class CreateEnvironmentRequest : public ProtonRequest { public: AWS_PROTON_API CreateEnvironmentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateEnvironment"; } AWS_PROTON_API Aws::String SerializePayload() const override; AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the IAM service role that allows Proton to * provision infrastructure using CodeBuild-based provisioning on your behalf.

*

To use CodeBuild-based provisioning for the environment or for any service * instance running in the environment, specify either the * environmentAccountConnectionId or codebuildRoleArn * parameter.

*/ inline const Aws::String& GetCodebuildRoleArn() const{ return m_codebuildRoleArn; } /** *

The Amazon Resource Name (ARN) of the IAM service role that allows Proton to * provision infrastructure using CodeBuild-based provisioning on your behalf.

*

To use CodeBuild-based provisioning for the environment or for any service * instance running in the environment, specify either the * environmentAccountConnectionId or codebuildRoleArn * parameter.

*/ inline bool CodebuildRoleArnHasBeenSet() const { return m_codebuildRoleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM service role that allows Proton to * provision infrastructure using CodeBuild-based provisioning on your behalf.

*

To use CodeBuild-based provisioning for the environment or for any service * instance running in the environment, specify either the * environmentAccountConnectionId or codebuildRoleArn * parameter.

*/ inline void SetCodebuildRoleArn(const Aws::String& value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM service role that allows Proton to * provision infrastructure using CodeBuild-based provisioning on your behalf.

*

To use CodeBuild-based provisioning for the environment or for any service * instance running in the environment, specify either the * environmentAccountConnectionId or codebuildRoleArn * parameter.

*/ inline void SetCodebuildRoleArn(Aws::String&& value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM service role that allows Proton to * provision infrastructure using CodeBuild-based provisioning on your behalf.

*

To use CodeBuild-based provisioning for the environment or for any service * instance running in the environment, specify either the * environmentAccountConnectionId or codebuildRoleArn * parameter.

*/ inline void SetCodebuildRoleArn(const char* value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM service role that allows Proton to * provision infrastructure using CodeBuild-based provisioning on your behalf.

*

To use CodeBuild-based provisioning for the environment or for any service * instance running in the environment, specify either the * environmentAccountConnectionId or codebuildRoleArn * parameter.

*/ inline CreateEnvironmentRequest& WithCodebuildRoleArn(const Aws::String& value) { SetCodebuildRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM service role that allows Proton to * provision infrastructure using CodeBuild-based provisioning on your behalf.

*

To use CodeBuild-based provisioning for the environment or for any service * instance running in the environment, specify either the * environmentAccountConnectionId or codebuildRoleArn * parameter.

*/ inline CreateEnvironmentRequest& WithCodebuildRoleArn(Aws::String&& value) { SetCodebuildRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM service role that allows Proton to * provision infrastructure using CodeBuild-based provisioning on your behalf.

*

To use CodeBuild-based provisioning for the environment or for any service * instance running in the environment, specify either the * environmentAccountConnectionId or codebuildRoleArn * parameter.

*/ inline CreateEnvironmentRequest& WithCodebuildRoleArn(const char* value) { SetCodebuildRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM service role that Proton uses when * provisioning directly defined components in this environment. It determines the * scope of infrastructure that a component can provision.

You must specify * componentRoleArn to allow directly defined components to be * associated with this environment.

For more information about components, * see Proton * components in the Proton User Guide.

*/ inline const Aws::String& GetComponentRoleArn() const{ return m_componentRoleArn; } /** *

The Amazon Resource Name (ARN) of the IAM service role that Proton uses when * provisioning directly defined components in this environment. It determines the * scope of infrastructure that a component can provision.

You must specify * componentRoleArn to allow directly defined components to be * associated with this environment.

For more information about components, * see Proton * components in the Proton User Guide.

*/ inline bool ComponentRoleArnHasBeenSet() const { return m_componentRoleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM service role that Proton uses when * provisioning directly defined components in this environment. It determines the * scope of infrastructure that a component can provision.

You must specify * componentRoleArn to allow directly defined components to be * associated with this environment.

For more information about components, * see Proton * components in the Proton User Guide.

*/ inline void SetComponentRoleArn(const Aws::String& value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM service role that Proton uses when * provisioning directly defined components in this environment. It determines the * scope of infrastructure that a component can provision.

You must specify * componentRoleArn to allow directly defined components to be * associated with this environment.

For more information about components, * see Proton * components in the Proton User Guide.

*/ inline void SetComponentRoleArn(Aws::String&& value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM service role that Proton uses when * provisioning directly defined components in this environment. It determines the * scope of infrastructure that a component can provision.

You must specify * componentRoleArn to allow directly defined components to be * associated with this environment.

For more information about components, * see Proton * components in the Proton User Guide.

*/ inline void SetComponentRoleArn(const char* value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM service role that Proton uses when * provisioning directly defined components in this environment. It determines the * scope of infrastructure that a component can provision.

You must specify * componentRoleArn to allow directly defined components to be * associated with this environment.

For more information about components, * see Proton * components in the Proton User Guide.

*/ inline CreateEnvironmentRequest& WithComponentRoleArn(const Aws::String& value) { SetComponentRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM service role that Proton uses when * provisioning directly defined components in this environment. It determines the * scope of infrastructure that a component can provision.

You must specify * componentRoleArn to allow directly defined components to be * associated with this environment.

For more information about components, * see Proton * components in the Proton User Guide.

*/ inline CreateEnvironmentRequest& WithComponentRoleArn(Aws::String&& value) { SetComponentRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM service role that Proton uses when * provisioning directly defined components in this environment. It determines the * scope of infrastructure that a component can provision.

You must specify * componentRoleArn to allow directly defined components to be * associated with this environment.

For more information about components, * see Proton * components in the Proton User Guide.

*/ inline CreateEnvironmentRequest& WithComponentRoleArn(const char* value) { SetComponentRoleArn(value); return *this;} /** *

A description of the environment that's being created and deployed.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the environment that's being created and deployed.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the environment that's being created and deployed.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the environment that's being created and deployed.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the environment that's being created and deployed.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the environment that's being created and deployed.

*/ inline CreateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the environment that's being created and deployed.

*/ inline CreateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the environment that's being created and deployed.

*/ inline CreateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ID of the environment account connection that you provide if you're * provisioning your environment infrastructure resources to an environment * account. For more information, see Environment * account connections in the Proton User guide.

To use Amazon * Web Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline const Aws::String& GetEnvironmentAccountConnectionId() const{ return m_environmentAccountConnectionId; } /** *

The ID of the environment account connection that you provide if you're * provisioning your environment infrastructure resources to an environment * account. For more information, see Environment * account connections in the Proton User guide.

To use Amazon * Web Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline bool EnvironmentAccountConnectionIdHasBeenSet() const { return m_environmentAccountConnectionIdHasBeenSet; } /** *

The ID of the environment account connection that you provide if you're * provisioning your environment infrastructure resources to an environment * account. For more information, see Environment * account connections in the Proton User guide.

To use Amazon * Web Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline void SetEnvironmentAccountConnectionId(const Aws::String& value) { m_environmentAccountConnectionIdHasBeenSet = true; m_environmentAccountConnectionId = value; } /** *

The ID of the environment account connection that you provide if you're * provisioning your environment infrastructure resources to an environment * account. For more information, see Environment * account connections in the Proton User guide.

To use Amazon * Web Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline void SetEnvironmentAccountConnectionId(Aws::String&& value) { m_environmentAccountConnectionIdHasBeenSet = true; m_environmentAccountConnectionId = std::move(value); } /** *

The ID of the environment account connection that you provide if you're * provisioning your environment infrastructure resources to an environment * account. For more information, see Environment * account connections in the Proton User guide.

To use Amazon * Web Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline void SetEnvironmentAccountConnectionId(const char* value) { m_environmentAccountConnectionIdHasBeenSet = true; m_environmentAccountConnectionId.assign(value); } /** *

The ID of the environment account connection that you provide if you're * provisioning your environment infrastructure resources to an environment * account. For more information, see Environment * account connections in the Proton User guide.

To use Amazon * Web Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline CreateEnvironmentRequest& WithEnvironmentAccountConnectionId(const Aws::String& value) { SetEnvironmentAccountConnectionId(value); return *this;} /** *

The ID of the environment account connection that you provide if you're * provisioning your environment infrastructure resources to an environment * account. For more information, see Environment * account connections in the Proton User guide.

To use Amazon * Web Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline CreateEnvironmentRequest& WithEnvironmentAccountConnectionId(Aws::String&& value) { SetEnvironmentAccountConnectionId(std::move(value)); return *this;} /** *

The ID of the environment account connection that you provide if you're * provisioning your environment infrastructure resources to an environment * account. For more information, see Environment * account connections in the Proton User guide.

To use Amazon * Web Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline CreateEnvironmentRequest& WithEnvironmentAccountConnectionId(const char* value) { SetEnvironmentAccountConnectionId(value); return *this;} /** *

The name of the environment.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the environment.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the environment.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the environment.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the environment.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the environment.

*/ inline CreateEnvironmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the environment.

*/ inline CreateEnvironmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the environment.

*/ inline CreateEnvironmentRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Proton service role that allows Proton * to make calls to other services on your behalf.

To use Amazon Web * Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline const Aws::String& GetProtonServiceRoleArn() const{ return m_protonServiceRoleArn; } /** *

The Amazon Resource Name (ARN) of the Proton service role that allows Proton * to make calls to other services on your behalf.

To use Amazon Web * Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline bool ProtonServiceRoleArnHasBeenSet() const { return m_protonServiceRoleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Proton service role that allows Proton * to make calls to other services on your behalf.

To use Amazon Web * Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline void SetProtonServiceRoleArn(const Aws::String& value) { m_protonServiceRoleArnHasBeenSet = true; m_protonServiceRoleArn = value; } /** *

The Amazon Resource Name (ARN) of the Proton service role that allows Proton * to make calls to other services on your behalf.

To use Amazon Web * Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline void SetProtonServiceRoleArn(Aws::String&& value) { m_protonServiceRoleArnHasBeenSet = true; m_protonServiceRoleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Proton service role that allows Proton * to make calls to other services on your behalf.

To use Amazon Web * Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline void SetProtonServiceRoleArn(const char* value) { m_protonServiceRoleArnHasBeenSet = true; m_protonServiceRoleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Proton service role that allows Proton * to make calls to other services on your behalf.

To use Amazon Web * Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline CreateEnvironmentRequest& WithProtonServiceRoleArn(const Aws::String& value) { SetProtonServiceRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Proton service role that allows Proton * to make calls to other services on your behalf.

To use Amazon Web * Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline CreateEnvironmentRequest& WithProtonServiceRoleArn(Aws::String&& value) { SetProtonServiceRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Proton service role that allows Proton * to make calls to other services on your behalf.

To use Amazon Web * Services-managed provisioning for the environment, specify either the * environmentAccountConnectionId or protonServiceRoleArn * parameter and omit the provisioningRepository parameter.

*/ inline CreateEnvironmentRequest& WithProtonServiceRoleArn(const char* value) { SetProtonServiceRoleArn(value); return *this;} /** *

The linked repository that you use to host your rendered infrastructure * templates for self-managed provisioning. A linked repository is a repository * that has been registered with Proton. For more information, see * CreateRepository.

To use self-managed provisioning for the * environment, specify this parameter and omit the * environmentAccountConnectionId and * protonServiceRoleArn parameters.

*/ inline const RepositoryBranchInput& GetProvisioningRepository() const{ return m_provisioningRepository; } /** *

The linked repository that you use to host your rendered infrastructure * templates for self-managed provisioning. A linked repository is a repository * that has been registered with Proton. For more information, see * CreateRepository.

To use self-managed provisioning for the * environment, specify this parameter and omit the * environmentAccountConnectionId and * protonServiceRoleArn parameters.

*/ inline bool ProvisioningRepositoryHasBeenSet() const { return m_provisioningRepositoryHasBeenSet; } /** *

The linked repository that you use to host your rendered infrastructure * templates for self-managed provisioning. A linked repository is a repository * that has been registered with Proton. For more information, see * CreateRepository.

To use self-managed provisioning for the * environment, specify this parameter and omit the * environmentAccountConnectionId and * protonServiceRoleArn parameters.

*/ inline void SetProvisioningRepository(const RepositoryBranchInput& value) { m_provisioningRepositoryHasBeenSet = true; m_provisioningRepository = value; } /** *

The linked repository that you use to host your rendered infrastructure * templates for self-managed provisioning. A linked repository is a repository * that has been registered with Proton. For more information, see * CreateRepository.

To use self-managed provisioning for the * environment, specify this parameter and omit the * environmentAccountConnectionId and * protonServiceRoleArn parameters.

*/ inline void SetProvisioningRepository(RepositoryBranchInput&& value) { m_provisioningRepositoryHasBeenSet = true; m_provisioningRepository = std::move(value); } /** *

The linked repository that you use to host your rendered infrastructure * templates for self-managed provisioning. A linked repository is a repository * that has been registered with Proton. For more information, see * CreateRepository.

To use self-managed provisioning for the * environment, specify this parameter and omit the * environmentAccountConnectionId and * protonServiceRoleArn parameters.

*/ inline CreateEnvironmentRequest& WithProvisioningRepository(const RepositoryBranchInput& value) { SetProvisioningRepository(value); return *this;} /** *

The linked repository that you use to host your rendered infrastructure * templates for self-managed provisioning. A linked repository is a repository * that has been registered with Proton. For more information, see * CreateRepository.

To use self-managed provisioning for the * environment, specify this parameter and omit the * environmentAccountConnectionId and * protonServiceRoleArn parameters.

*/ inline CreateEnvironmentRequest& WithProvisioningRepository(RepositoryBranchInput&& value) { SetProvisioningRepository(std::move(value)); return *this;} /** *

A YAML formatted string that provides inputs as defined in the environment * template bundle schema file. For more information, see Environments * in the Proton User Guide.

*/ inline const Aws::String& GetSpec() const{ return m_spec; } /** *

A YAML formatted string that provides inputs as defined in the environment * template bundle schema file. For more information, see Environments * in the Proton User Guide.

*/ inline bool SpecHasBeenSet() const { return m_specHasBeenSet; } /** *

A YAML formatted string that provides inputs as defined in the environment * template bundle schema file. For more information, see Environments * in the Proton User Guide.

*/ inline void SetSpec(const Aws::String& value) { m_specHasBeenSet = true; m_spec = value; } /** *

A YAML formatted string that provides inputs as defined in the environment * template bundle schema file. For more information, see Environments * in the Proton User Guide.

*/ inline void SetSpec(Aws::String&& value) { m_specHasBeenSet = true; m_spec = std::move(value); } /** *

A YAML formatted string that provides inputs as defined in the environment * template bundle schema file. For more information, see Environments * in the Proton User Guide.

*/ inline void SetSpec(const char* value) { m_specHasBeenSet = true; m_spec.assign(value); } /** *

A YAML formatted string that provides inputs as defined in the environment * template bundle schema file. For more information, see Environments * in the Proton User Guide.

*/ inline CreateEnvironmentRequest& WithSpec(const Aws::String& value) { SetSpec(value); return *this;} /** *

A YAML formatted string that provides inputs as defined in the environment * template bundle schema file. For more information, see Environments * in the Proton User Guide.

*/ inline CreateEnvironmentRequest& WithSpec(Aws::String&& value) { SetSpec(std::move(value)); return *this;} /** *

A YAML formatted string that provides inputs as defined in the environment * template bundle schema file. For more information, see Environments * in the Proton User Guide.

*/ inline CreateEnvironmentRequest& WithSpec(const char* value) { SetSpec(value); return *this;} /** *

An optional list of metadata items that you can associate with the Proton * environment. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

An optional list of metadata items that you can associate with the Proton * environment. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

An optional list of metadata items that you can associate with the Proton * environment. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

An optional list of metadata items that you can associate with the Proton * environment. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

An optional list of metadata items that you can associate with the Proton * environment. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline CreateEnvironmentRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

An optional list of metadata items that you can associate with the Proton * environment. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline CreateEnvironmentRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

An optional list of metadata items that you can associate with the Proton * environment. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline CreateEnvironmentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

An optional list of metadata items that you can associate with the Proton * environment. A tag is a key-value pair.

For more information, see Proton * resources and tagging in the Proton User Guide.

*/ inline CreateEnvironmentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The major version of the environment template.

*/ inline const Aws::String& GetTemplateMajorVersion() const{ return m_templateMajorVersion; } /** *

The major version of the environment template.

*/ inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; } /** *

The major version of the environment template.

*/ inline void SetTemplateMajorVersion(const Aws::String& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = value; } /** *

The major version of the environment template.

*/ inline void SetTemplateMajorVersion(Aws::String&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::move(value); } /** *

The major version of the environment template.

*/ inline void SetTemplateMajorVersion(const char* value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion.assign(value); } /** *

The major version of the environment template.

*/ inline CreateEnvironmentRequest& WithTemplateMajorVersion(const Aws::String& value) { SetTemplateMajorVersion(value); return *this;} /** *

The major version of the environment template.

*/ inline CreateEnvironmentRequest& WithTemplateMajorVersion(Aws::String&& value) { SetTemplateMajorVersion(std::move(value)); return *this;} /** *

The major version of the environment template.

*/ inline CreateEnvironmentRequest& WithTemplateMajorVersion(const char* value) { SetTemplateMajorVersion(value); return *this;} /** *

The minor version of the environment template.

*/ inline const Aws::String& GetTemplateMinorVersion() const{ return m_templateMinorVersion; } /** *

The minor version of the environment template.

*/ inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; } /** *

The minor version of the environment template.

*/ inline void SetTemplateMinorVersion(const Aws::String& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = value; } /** *

The minor version of the environment template.

*/ inline void SetTemplateMinorVersion(Aws::String&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::move(value); } /** *

The minor version of the environment template.

*/ inline void SetTemplateMinorVersion(const char* value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion.assign(value); } /** *

The minor version of the environment template.

*/ inline CreateEnvironmentRequest& WithTemplateMinorVersion(const Aws::String& value) { SetTemplateMinorVersion(value); return *this;} /** *

The minor version of the environment template.

*/ inline CreateEnvironmentRequest& WithTemplateMinorVersion(Aws::String&& value) { SetTemplateMinorVersion(std::move(value)); return *this;} /** *

The minor version of the environment template.

*/ inline CreateEnvironmentRequest& WithTemplateMinorVersion(const char* value) { SetTemplateMinorVersion(value); return *this;} /** *

The name of the environment template. For more information, see Environment * Templates in the Proton User Guide.

*/ inline const Aws::String& GetTemplateName() const{ return m_templateName; } /** *

The name of the environment template. For more information, see Environment * Templates in the Proton User Guide.

*/ inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; } /** *

The name of the environment template. For more information, see Environment * Templates in the Proton User Guide.

*/ inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; } /** *

The name of the environment template. For more information, see Environment * Templates in the Proton User Guide.

*/ inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); } /** *

The name of the environment template. For more information, see Environment * Templates in the Proton User Guide.

*/ inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); } /** *

The name of the environment template. For more information, see Environment * Templates in the Proton User Guide.

*/ inline CreateEnvironmentRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *

The name of the environment template. For more information, see Environment * Templates in the Proton User Guide.

*/ inline CreateEnvironmentRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} /** *

The name of the environment template. For more information, see Environment * Templates in the Proton User Guide.

*/ inline CreateEnvironmentRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} private: Aws::String m_codebuildRoleArn; bool m_codebuildRoleArnHasBeenSet = false; Aws::String m_componentRoleArn; bool m_componentRoleArnHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_environmentAccountConnectionId; bool m_environmentAccountConnectionIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_protonServiceRoleArn; bool m_protonServiceRoleArnHasBeenSet = false; RepositoryBranchInput m_provisioningRepository; bool m_provisioningRepositoryHasBeenSet = false; Aws::String m_spec; bool m_specHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_templateMajorVersion; bool m_templateMajorVersionHasBeenSet = false; Aws::String m_templateMinorVersion; bool m_templateMinorVersionHasBeenSet = false; Aws::String m_templateName; bool m_templateNameHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws