/** * 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 #include namespace Aws { namespace CodeStar { namespace Model { /** */ class CreateProjectRequest : public CodeStarRequest { public: AWS_CODESTAR_API CreateProjectRequest(); // 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 "CreateProject"; } AWS_CODESTAR_API Aws::String SerializePayload() const override; AWS_CODESTAR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The display name for the project to be created in AWS CodeStar.

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

The display name for the project to be created in AWS CodeStar.

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

The display name for the project to be created in AWS CodeStar.

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

The display name for the project to be created in AWS CodeStar.

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

The display name for the project to be created in AWS CodeStar.

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

The display name for the project to be created in AWS CodeStar.

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

The display name for the project to be created in AWS CodeStar.

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

The display name for the project to be created in AWS CodeStar.

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

The ID of the project to be created in AWS CodeStar.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the project to be created in AWS CodeStar.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the project to be created in AWS CodeStar.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the project to be created in AWS CodeStar.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the project to be created in AWS CodeStar.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the project to be created in AWS CodeStar.

*/ inline CreateProjectRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the project to be created in AWS CodeStar.

*/ inline CreateProjectRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the project to be created in AWS CodeStar.

*/ inline CreateProjectRequest& WithId(const char* value) { SetId(value); return *this;} /** *

The description of the project, if any.

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

The description of the project, if any.

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

The description of the project, if any.

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

The description of the project, if any.

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

The description of the project, if any.

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

The description of the project, if any.

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

The description of the project, if any.

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

The description of the project, if any.

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

A user- or system-generated token that identifies the entity that requested * project creation. This token can be used to repeat the request.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

A user- or system-generated token that identifies the entity that requested * project creation. This token can be used to repeat the request.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

A user- or system-generated token that identifies the entity that requested * project creation. This token can be used to repeat the request.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

A user- or system-generated token that identifies the entity that requested * project creation. This token can be used to repeat the request.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

A user- or system-generated token that identifies the entity that requested * project creation. This token can be used to repeat the request.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

A user- or system-generated token that identifies the entity that requested * project creation. This token can be used to repeat the request.

*/ inline CreateProjectRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

A user- or system-generated token that identifies the entity that requested * project creation. This token can be used to repeat the request.

*/ inline CreateProjectRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

A user- or system-generated token that identifies the entity that requested * project creation. This token can be used to repeat the request.

*/ inline CreateProjectRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

A list of the Code objects submitted with the project request. If this * parameter is specified, the request must also include the toolchain * parameter.

*/ inline const Aws::Vector& GetSourceCode() const{ return m_sourceCode; } /** *

A list of the Code objects submitted with the project request. If this * parameter is specified, the request must also include the toolchain * parameter.

*/ inline bool SourceCodeHasBeenSet() const { return m_sourceCodeHasBeenSet; } /** *

A list of the Code objects submitted with the project request. If this * parameter is specified, the request must also include the toolchain * parameter.

*/ inline void SetSourceCode(const Aws::Vector& value) { m_sourceCodeHasBeenSet = true; m_sourceCode = value; } /** *

A list of the Code objects submitted with the project request. If this * parameter is specified, the request must also include the toolchain * parameter.

*/ inline void SetSourceCode(Aws::Vector&& value) { m_sourceCodeHasBeenSet = true; m_sourceCode = std::move(value); } /** *

A list of the Code objects submitted with the project request. If this * parameter is specified, the request must also include the toolchain * parameter.

*/ inline CreateProjectRequest& WithSourceCode(const Aws::Vector& value) { SetSourceCode(value); return *this;} /** *

A list of the Code objects submitted with the project request. If this * parameter is specified, the request must also include the toolchain * parameter.

*/ inline CreateProjectRequest& WithSourceCode(Aws::Vector&& value) { SetSourceCode(std::move(value)); return *this;} /** *

A list of the Code objects submitted with the project request. If this * parameter is specified, the request must also include the toolchain * parameter.

*/ inline CreateProjectRequest& AddSourceCode(const Code& value) { m_sourceCodeHasBeenSet = true; m_sourceCode.push_back(value); return *this; } /** *

A list of the Code objects submitted with the project request. If this * parameter is specified, the request must also include the toolchain * parameter.

*/ inline CreateProjectRequest& AddSourceCode(Code&& value) { m_sourceCodeHasBeenSet = true; m_sourceCode.push_back(std::move(value)); return *this; } /** *

The name of the toolchain template file submitted with the project request. * If this parameter is specified, the request must also include the sourceCode * parameter.

*/ inline const Toolchain& GetToolchain() const{ return m_toolchain; } /** *

The name of the toolchain template file submitted with the project request. * If this parameter is specified, the request must also include the sourceCode * parameter.

*/ inline bool ToolchainHasBeenSet() const { return m_toolchainHasBeenSet; } /** *

The name of the toolchain template file submitted with the project request. * If this parameter is specified, the request must also include the sourceCode * parameter.

*/ inline void SetToolchain(const Toolchain& value) { m_toolchainHasBeenSet = true; m_toolchain = value; } /** *

The name of the toolchain template file submitted with the project request. * If this parameter is specified, the request must also include the sourceCode * parameter.

*/ inline void SetToolchain(Toolchain&& value) { m_toolchainHasBeenSet = true; m_toolchain = std::move(value); } /** *

The name of the toolchain template file submitted with the project request. * If this parameter is specified, the request must also include the sourceCode * parameter.

*/ inline CreateProjectRequest& WithToolchain(const Toolchain& value) { SetToolchain(value); return *this;} /** *

The name of the toolchain template file submitted with the project request. * If this parameter is specified, the request must also include the sourceCode * parameter.

*/ inline CreateProjectRequest& WithToolchain(Toolchain&& value) { SetToolchain(std::move(value)); return *this;} /** *

The tags created for the project.

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

The tags created for the project.

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

The tags created for the project.

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

The tags created for the project.

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

The tags created for the project.

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

The tags created for the project.

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

The tags created for the project.

*/ inline CreateProjectRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags created for the project.

*/ inline CreateProjectRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags created for the project.

*/ inline CreateProjectRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags created for the project.

*/ inline CreateProjectRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags created for the project.

*/ inline CreateProjectRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags created for the project.

*/ inline CreateProjectRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags created for the project.

*/ inline CreateProjectRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::Vector m_sourceCode; bool m_sourceCodeHasBeenSet = false; Toolchain m_toolchain; bool m_toolchainHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CodeStar } // namespace Aws