/** * 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 CodeCommit { namespace Model { /** *

Represents the input of a delete branch operation.

See Also:

* AWS * API Reference

*/ class DeleteBranchRequest : public CodeCommitRequest { public: AWS_CODECOMMIT_API DeleteBranchRequest(); // 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 "DeleteBranch"; } AWS_CODECOMMIT_API Aws::String SerializePayload() const override; AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the repository that contains the branch to be deleted.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the repository that contains the branch to be deleted.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The name of the repository that contains the branch to be deleted.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The name of the repository that contains the branch to be deleted.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The name of the repository that contains the branch to be deleted.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The name of the repository that contains the branch to be deleted.

*/ inline DeleteBranchRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the repository that contains the branch to be deleted.

*/ inline DeleteBranchRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the repository that contains the branch to be deleted.

*/ inline DeleteBranchRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

The name of the branch to delete.

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

The name of the branch to delete.

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

The name of the branch to delete.

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

The name of the branch to delete.

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

The name of the branch to delete.

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

The name of the branch to delete.

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

The name of the branch to delete.

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

The name of the branch to delete.

*/ inline DeleteBranchRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_branchName; bool m_branchNameHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws