AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
BatchGetCommitsError.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeCommit {
20namespace Model {
21
29 public:
30 AWS_CODECOMMIT_API BatchGetCommitsError() = default;
31 AWS_CODECOMMIT_API BatchGetCommitsError(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetCommitId() const { return m_commitId; }
40 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
41 template <typename CommitIdT = Aws::String>
42 void SetCommitId(CommitIdT&& value) {
43 m_commitIdHasBeenSet = true;
44 m_commitId = std::forward<CommitIdT>(value);
45 }
46 template <typename CommitIdT = Aws::String>
47 BatchGetCommitsError& WithCommitId(CommitIdT&& value) {
48 SetCommitId(std::forward<CommitIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
59 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
60 template <typename ErrorCodeT = Aws::String>
61 void SetErrorCode(ErrorCodeT&& value) {
62 m_errorCodeHasBeenSet = true;
63 m_errorCode = std::forward<ErrorCodeT>(value);
64 }
65 template <typename ErrorCodeT = Aws::String>
66 BatchGetCommitsError& WithErrorCode(ErrorCodeT&& value) {
67 SetErrorCode(std::forward<ErrorCodeT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
78 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
79 template <typename ErrorMessageT = Aws::String>
80 void SetErrorMessage(ErrorMessageT&& value) {
81 m_errorMessageHasBeenSet = true;
82 m_errorMessage = std::forward<ErrorMessageT>(value);
83 }
84 template <typename ErrorMessageT = Aws::String>
85 BatchGetCommitsError& WithErrorMessage(ErrorMessageT&& value) {
86 SetErrorMessage(std::forward<ErrorMessageT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_commitId;
92
93 Aws::String m_errorCode;
94
95 Aws::String m_errorMessage;
96 bool m_commitIdHasBeenSet = false;
97 bool m_errorCodeHasBeenSet = false;
98 bool m_errorMessageHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CodeCommit
103} // namespace Aws
BatchGetCommitsError & WithErrorMessage(ErrorMessageT &&value)
BatchGetCommitsError & WithCommitId(CommitIdT &&value)
BatchGetCommitsError & WithErrorCode(ErrorCodeT &&value)
AWS_CODECOMMIT_API BatchGetCommitsError(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API BatchGetCommitsError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API BatchGetCommitsError()=default
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue