/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns information about errors in a
* BatchDisassociateApprovalRuleTemplateFromRepositories operation.See
* Also:
AWS
* API Reference
The name of the repository where the association with the template was not * able to be removed.
*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *The name of the repository where the association with the template was not * able to be removed.
*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *The name of the repository where the association with the template was not * able to be removed.
*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *The name of the repository where the association with the template was not * able to be removed.
*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *The name of the repository where the association with the template was not * able to be removed.
*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *The name of the repository where the association with the template was not * able to be removed.
*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesError& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *The name of the repository where the association with the template was not * able to be removed.
*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesError& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *The name of the repository where the association with the template was not * able to be removed.
*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesError& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *An error code that specifies whether the repository name was not valid or not * found.
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *An error code that specifies whether the repository name was not valid or not * found.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *An error code that specifies whether the repository name was not valid or not * found.
*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *An error code that specifies whether the repository name was not valid or not * found.
*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *An error code that specifies whether the repository name was not valid or not * found.
*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *An error code that specifies whether the repository name was not valid or not * found.
*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *An error code that specifies whether the repository name was not valid or not * found.
*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *An error code that specifies whether the repository name was not valid or not * found.
*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *An error message that provides details about why the repository name was * either not found or not valid.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *An error message that provides details about why the repository name was * either not found or not valid.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *An error message that provides details about why the repository name was * either not found or not valid.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *An error message that provides details about why the repository name was * either not found or not valid.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *An error message that provides details about why the repository name was * either not found or not valid.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *An error message that provides details about why the repository name was * either not found or not valid.
*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *An error message that provides details about why the repository name was * either not found or not valid.
*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *An error message that provides details about why the repository name was * either not found or not valid.
*/ inline BatchDisassociateApprovalRuleTemplateFromRepositoriesError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws