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

The name of the template that you want to disassociate from one or more * repositories.

*/ inline const Aws::String& GetApprovalRuleTemplateName() const{ return m_approvalRuleTemplateName; } /** *

The name of the template that you want to disassociate from one or more * repositories.

*/ inline bool ApprovalRuleTemplateNameHasBeenSet() const { return m_approvalRuleTemplateNameHasBeenSet; } /** *

The name of the template that you want to disassociate from one or more * repositories.

*/ inline void SetApprovalRuleTemplateName(const Aws::String& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = value; } /** *

The name of the template that you want to disassociate from one or more * repositories.

*/ inline void SetApprovalRuleTemplateName(Aws::String&& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = std::move(value); } /** *

The name of the template that you want to disassociate from one or more * repositories.

*/ inline void SetApprovalRuleTemplateName(const char* value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName.assign(value); } /** *

The name of the template that you want to disassociate from one or more * repositories.

*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& WithApprovalRuleTemplateName(const Aws::String& value) { SetApprovalRuleTemplateName(value); return *this;} /** *

The name of the template that you want to disassociate from one or more * repositories.

*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& WithApprovalRuleTemplateName(Aws::String&& value) { SetApprovalRuleTemplateName(std::move(value)); return *this;} /** *

The name of the template that you want to disassociate from one or more * repositories.

*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& WithApprovalRuleTemplateName(const char* value) { SetApprovalRuleTemplateName(value); return *this;} /** *

The repository names that you want to disassociate from the approval rule * template.

The length constraint limit is for each string in the * array. The array itself can be empty.

*/ inline const Aws::Vector& GetRepositoryNames() const{ return m_repositoryNames; } /** *

The repository names that you want to disassociate from the approval rule * template.

The length constraint limit is for each string in the * array. The array itself can be empty.

*/ inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; } /** *

The repository names that you want to disassociate from the approval rule * template.

The length constraint limit is for each string in the * array. The array itself can be empty.

*/ inline void SetRepositoryNames(const Aws::Vector& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = value; } /** *

The repository names that you want to disassociate from the approval rule * template.

The length constraint limit is for each string in the * array. The array itself can be empty.

*/ inline void SetRepositoryNames(Aws::Vector&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::move(value); } /** *

The repository names that you want to disassociate from the approval rule * template.

The length constraint limit is for each string in the * array. The array itself can be empty.

*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& WithRepositoryNames(const Aws::Vector& value) { SetRepositoryNames(value); return *this;} /** *

The repository names that you want to disassociate from the approval rule * template.

The length constraint limit is for each string in the * array. The array itself can be empty.

*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& WithRepositoryNames(Aws::Vector&& value) { SetRepositoryNames(std::move(value)); return *this;} /** *

The repository names that you want to disassociate from the approval rule * template.

The length constraint limit is for each string in the * array. The array itself can be empty.

*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& AddRepositoryNames(const Aws::String& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; } /** *

The repository names that you want to disassociate from the approval rule * template.

The length constraint limit is for each string in the * array. The array itself can be empty.

*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& AddRepositoryNames(Aws::String&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(std::move(value)); return *this; } /** *

The repository names that you want to disassociate from the approval rule * template.

The length constraint limit is for each string in the * array. The array itself can be empty.

*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& AddRepositoryNames(const char* value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; } private: Aws::String m_approvalRuleTemplateName; bool m_approvalRuleTemplateNameHasBeenSet = false; Aws::Vector m_repositoryNames; bool m_repositoryNamesHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws