/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { /** *

Returns information about errors in a * BatchAssociateApprovalRuleTemplateWithRepositories operation.

See * Also:

AWS * API Reference

*/ class BatchAssociateApprovalRuleTemplateWithRepositoriesError { public: AWS_CODECOMMIT_API BatchAssociateApprovalRuleTemplateWithRepositoriesError(); AWS_CODECOMMIT_API BatchAssociateApprovalRuleTemplateWithRepositoriesError(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API BatchAssociateApprovalRuleTemplateWithRepositoriesError& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the repository where the association was not made.

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

The name of the repository where the association was not made.

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

The name of the repository where the association was not made.

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

The name of the repository where the association was not made.

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

The name of the repository where the association was not made.

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

The name of the repository where the association was not made.

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

The name of the repository where the association was not made.

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

The name of the repository where the association was not made.

*/ inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& 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 BatchAssociateApprovalRuleTemplateWithRepositoriesError& 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 BatchAssociateApprovalRuleTemplateWithRepositoriesError& 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 BatchAssociateApprovalRuleTemplateWithRepositoriesError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

An error message that provides details about why the repository name was 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 not * found or not valid.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

An error message that provides details about why the repository name was 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 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 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 not * found or not valid.

*/ inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

An error message that provides details about why the repository name was not * found or not valid.

*/ inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

An error message that provides details about why the repository name was not * found or not valid.

*/ inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& 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