/**
* 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 BatchGetCommits
* operation.See Also:
AWS
* API Reference
A commit ID that either could not be found or was not in a valid format.
*/ inline const Aws::String& GetCommitId() const{ return m_commitId; } /** *A commit ID that either could not be found or was not in a valid format.
*/ inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; } /** *A commit ID that either could not be found or was not in a valid format.
*/ inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; } /** *A commit ID that either could not be found or was not in a valid format.
*/ inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); } /** *A commit ID that either could not be found or was not in a valid format.
*/ inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); } /** *A commit ID that either could not be found or was not in a valid format.
*/ inline BatchGetCommitsError& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;} /** *A commit ID that either could not be found or was not in a valid format.
*/ inline BatchGetCommitsError& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;} /** *A commit ID that either could not be found or was not in a valid format.
*/ inline BatchGetCommitsError& WithCommitId(const char* value) { SetCommitId(value); return *this;} /** *An error code that specifies whether the commit ID was not valid or not * found.
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *An error code that specifies whether the commit ID was not valid or not * found.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *An error code that specifies whether the commit ID 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 commit ID 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 commit ID 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 commit ID was not valid or not * found.
*/ inline BatchGetCommitsError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *An error code that specifies whether the commit ID was not valid or not * found.
*/ inline BatchGetCommitsError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *An error code that specifies whether the commit ID was not valid or not * found.
*/ inline BatchGetCommitsError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *An error message that provides detail about why the commit ID either was not * found or was not valid.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *An error message that provides detail about why the commit ID either was not * found or was not valid.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *An error message that provides detail about why the commit ID either was not * found or was not valid.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *An error message that provides detail about why the commit ID either was not * found or was not valid.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *An error message that provides detail about why the commit ID either was not * found or was not valid.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *An error message that provides detail about why the commit ID either was not * found or was not valid.
*/ inline BatchGetCommitsError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *An error message that provides detail about why the commit ID either was not * found or was not valid.
*/ inline BatchGetCommitsError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *An error message that provides detail about why the commit ID either was not * found or was not valid.
*/ inline BatchGetCommitsError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_commitId; bool m_commitIdHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws