/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Proton { namespace Model { /** */ class CreateServiceRequest : public ProtonRequest { public: AWS_PROTON_API CreateServiceRequest(); // 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 "CreateService"; } AWS_PROTON_API Aws::String SerializePayload() const override; AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the code repository branch that holds the code that's deployed in * Proton. Don't include this parameter if your service template * doesn't include a service pipeline.

*/ inline const Aws::String& GetBranchName() const{ return m_branchName; } /** *

The name of the code repository branch that holds the code that's deployed in * Proton. Don't include this parameter if your service template * doesn't include a service pipeline.

*/ inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; } /** *

The name of the code repository branch that holds the code that's deployed in * Proton. Don't include this parameter if your service template * doesn't include a service pipeline.

*/ inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; } /** *

The name of the code repository branch that holds the code that's deployed in * Proton. Don't include this parameter if your service template * doesn't include a service pipeline.

*/ inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); } /** *

The name of the code repository branch that holds the code that's deployed in * Proton. Don't include this parameter if your service template * doesn't include a service pipeline.

*/ inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); } /** *

The name of the code repository branch that holds the code that's deployed in * Proton. Don't include this parameter if your service template * doesn't include a service pipeline.

*/ inline CreateServiceRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;} /** *

The name of the code repository branch that holds the code that's deployed in * Proton. Don't include this parameter if your service template * doesn't include a service pipeline.

*/ inline CreateServiceRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;} /** *

The name of the code repository branch that holds the code that's deployed in * Proton. Don't include this parameter if your service template * doesn't include a service pipeline.

*/ inline CreateServiceRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;} /** *

A description of the Proton service.

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

A description of the Proton service.

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

A description of the Proton service.

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

A description of the Proton service.

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

A description of the Proton service.

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

A description of the Proton service.

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

A description of the Proton service.

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

A description of the Proton service.

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

The service name.

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

The service name.

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

The service name.

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

The service name.

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

The service name.

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

The service name.

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

The service name.

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

The service name.

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

The Amazon Resource Name (ARN) of the repository connection. For more * information, see Setting * up an AWS CodeStar connection in the Proton User Guide. Don't * include this parameter if your service template doesn't include a service * pipeline.

*/ inline const Aws::String& GetRepositoryConnectionArn() const{ return m_repositoryConnectionArn; } /** *

The Amazon Resource Name (ARN) of the repository connection. For more * information, see Setting * up an AWS CodeStar connection in the Proton User Guide. Don't * include this parameter if your service template doesn't include a service * pipeline.

*/ inline bool RepositoryConnectionArnHasBeenSet() const { return m_repositoryConnectionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the repository connection. For more * information, see Setting * up an AWS CodeStar connection in the Proton User Guide. Don't * include this parameter if your service template doesn't include a service * pipeline.

*/ inline void SetRepositoryConnectionArn(const Aws::String& value) { m_repositoryConnectionArnHasBeenSet = true; m_repositoryConnectionArn = value; } /** *

The Amazon Resource Name (ARN) of the repository connection. For more * information, see Setting * up an AWS CodeStar connection in the Proton User Guide. Don't * include this parameter if your service template doesn't include a service * pipeline.

*/ inline void SetRepositoryConnectionArn(Aws::String&& value) { m_repositoryConnectionArnHasBeenSet = true; m_repositoryConnectionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the repository connection. For more * information, see Setting * up an AWS CodeStar connection in the Proton User Guide. Don't * include this parameter if your service template doesn't include a service * pipeline.

*/ inline void SetRepositoryConnectionArn(const char* value) { m_repositoryConnectionArnHasBeenSet = true; m_repositoryConnectionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the repository connection. For more * information, see Setting * up an AWS CodeStar connection in the Proton User Guide. Don't * include this parameter if your service template doesn't include a service * pipeline.

*/ inline CreateServiceRequest& WithRepositoryConnectionArn(const Aws::String& value) { SetRepositoryConnectionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the repository connection. For more * information, see Setting * up an AWS CodeStar connection in the Proton User Guide. Don't * include this parameter if your service template doesn't include a service * pipeline.

*/ inline CreateServiceRequest& WithRepositoryConnectionArn(Aws::String&& value) { SetRepositoryConnectionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the repository connection. For more * information, see Setting * up an AWS CodeStar connection in the Proton User Guide. Don't * include this parameter if your service template doesn't include a service * pipeline.

*/ inline CreateServiceRequest& WithRepositoryConnectionArn(const char* value) { SetRepositoryConnectionArn(value); return *this;} /** *

The ID of the code repository. Don't include this parameter if your * service template doesn't include a service pipeline.

*/ inline const Aws::String& GetRepositoryId() const{ return m_repositoryId; } /** *

The ID of the code repository. Don't include this parameter if your * service template doesn't include a service pipeline.

*/ inline bool RepositoryIdHasBeenSet() const { return m_repositoryIdHasBeenSet; } /** *

The ID of the code repository. Don't include this parameter if your * service template doesn't include a service pipeline.

*/ inline void SetRepositoryId(const Aws::String& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = value; } /** *

The ID of the code repository. Don't include this parameter if your * service template doesn't include a service pipeline.

*/ inline void SetRepositoryId(Aws::String&& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = std::move(value); } /** *

The ID of the code repository. Don't include this parameter if your * service template doesn't include a service pipeline.

*/ inline void SetRepositoryId(const char* value) { m_repositoryIdHasBeenSet = true; m_repositoryId.assign(value); } /** *

The ID of the code repository. Don't include this parameter if your * service template doesn't include a service pipeline.

*/ inline CreateServiceRequest& WithRepositoryId(const Aws::String& value) { SetRepositoryId(value); return *this;} /** *

The ID of the code repository. Don't include this parameter if your * service template doesn't include a service pipeline.

*/ inline CreateServiceRequest& WithRepositoryId(Aws::String&& value) { SetRepositoryId(std::move(value)); return *this;} /** *

The ID of the code repository. Don't include this parameter if your * service template doesn't include a service pipeline.

*/ inline CreateServiceRequest& WithRepositoryId(const char* value) { SetRepositoryId(value); return *this;} /** *

A link to a spec file that provides inputs as defined in the service template * bundle schema file. The spec file is in YAML format. Don’t include * pipeline inputs in the spec if your service template doesn’t include a * service pipeline. For more information, see Create * a service in the Proton User Guide.

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

A link to a spec file that provides inputs as defined in the service template * bundle schema file. The spec file is in YAML format. Don’t include * pipeline inputs in the spec if your service template doesn’t include a * service pipeline. For more information, see Create * a service in the Proton User Guide.

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

A link to a spec file that provides inputs as defined in the service template * bundle schema file. The spec file is in YAML format. Don’t include * pipeline inputs in the spec if your service template doesn’t include a * service pipeline. For more information, see Create * a service in the Proton User Guide.

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

A link to a spec file that provides inputs as defined in the service template * bundle schema file. The spec file is in YAML format. Don’t include * pipeline inputs in the spec if your service template doesn’t include a * service pipeline. For more information, see Create * a service in the Proton User Guide.

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

A link to a spec file that provides inputs as defined in the service template * bundle schema file. The spec file is in YAML format. Don’t include * pipeline inputs in the spec if your service template doesn’t include a * service pipeline. For more information, see Create * a service in the Proton User Guide.

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

A link to a spec file that provides inputs as defined in the service template * bundle schema file. The spec file is in YAML format. Don’t include * pipeline inputs in the spec if your service template doesn’t include a * service pipeline. For more information, see Create * a service in the Proton User Guide.

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

A link to a spec file that provides inputs as defined in the service template * bundle schema file. The spec file is in YAML format. Don’t include * pipeline inputs in the spec if your service template doesn’t include a * service pipeline. For more information, see Create * a service in the Proton User Guide.

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

A link to a spec file that provides inputs as defined in the service template * bundle schema file. The spec file is in YAML format. Don’t include * pipeline inputs in the spec if your service template doesn’t include a * service pipeline. For more information, see Create * a service in the Proton User Guide.

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

An optional list of metadata items that you can associate with the Proton * service. 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 * service. 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 * service. 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 * service. 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 * service. A tag is a key-value pair.

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

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

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

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

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

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

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

*/ inline CreateServiceRequest& 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 * service. A tag is a key-value pair.

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

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

The major version of the service template that was used to create the * service.

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

The major version of the service template that was used to create the * service.

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

The major version of the service template that was used to create the * service.

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

The major version of the service template that was used to create the * service.

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

The major version of the service template that was used to create the * service.

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

The major version of the service template that was used to create the * service.

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

The major version of the service template that was used to create the * service.

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

The major version of the service template that was used to create the * service.

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

The minor version of the service template that was used to create the * service.

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

The minor version of the service template that was used to create the * service.

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

The minor version of the service template that was used to create the * service.

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

The minor version of the service template that was used to create the * service.

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

The minor version of the service template that was used to create the * service.

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

The minor version of the service template that was used to create the * service.

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

The minor version of the service template that was used to create the * service.

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

The minor version of the service template that was used to create the * service.

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

The name of the service template that's used to create the service.

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

The name of the service template that's used to create the service.

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

The name of the service template that's used to create the service.

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

The name of the service template that's used to create the service.

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

The name of the service template that's used to create the service.

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

The name of the service template that's used to create the service.

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

The name of the service template that's used to create the service.

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

The name of the service template that's used to create the service.

*/ inline CreateServiceRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} private: Aws::String m_branchName; bool m_branchNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_repositoryConnectionArn; bool m_repositoryConnectionArnHasBeenSet = false; Aws::String m_repositoryId; bool m_repositoryIdHasBeenSet = 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