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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

A user- or system-generated token that identifies the entity that requested * project deletion. 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 deletion. 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 deletion. 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 deletion. 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 deletion. 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 deletion. This token can be used to repeat the request.

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

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

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

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

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

Whether to send a delete request for the primary stack in AWS CloudFormation * originally used to generate the project and its resources. This option will * delete all AWS resources for the project (except for any buckets in Amazon S3) * as well as deleting the project itself. Recommended for most use cases.

*/ inline bool GetDeleteStack() const{ return m_deleteStack; } /** *

Whether to send a delete request for the primary stack in AWS CloudFormation * originally used to generate the project and its resources. This option will * delete all AWS resources for the project (except for any buckets in Amazon S3) * as well as deleting the project itself. Recommended for most use cases.

*/ inline bool DeleteStackHasBeenSet() const { return m_deleteStackHasBeenSet; } /** *

Whether to send a delete request for the primary stack in AWS CloudFormation * originally used to generate the project and its resources. This option will * delete all AWS resources for the project (except for any buckets in Amazon S3) * as well as deleting the project itself. Recommended for most use cases.

*/ inline void SetDeleteStack(bool value) { m_deleteStackHasBeenSet = true; m_deleteStack = value; } /** *

Whether to send a delete request for the primary stack in AWS CloudFormation * originally used to generate the project and its resources. This option will * delete all AWS resources for the project (except for any buckets in Amazon S3) * as well as deleting the project itself. Recommended for most use cases.

*/ inline DeleteProjectRequest& WithDeleteStack(bool value) { SetDeleteStack(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; bool m_deleteStack; bool m_deleteStackHasBeenSet = false; }; } // namespace Model } // namespace CodeStar } // namespace Aws