AWS SDK for C++  1.8.152
AWS SDK for C++
BatchGetCommitsError.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeCommit
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetCommitId() const{ return m_commitId; }
45 
49  inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
50 
54  inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
55 
59  inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
60 
64  inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
65 
69  inline BatchGetCommitsError& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
70 
74  inline BatchGetCommitsError& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
75 
79  inline BatchGetCommitsError& WithCommitId(const char* value) { SetCommitId(value); return *this;}
80 
81 
86  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
87 
92  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
93 
98  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
99 
104  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
105 
110  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
111 
116  inline BatchGetCommitsError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
117 
122  inline BatchGetCommitsError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
123 
128  inline BatchGetCommitsError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
129 
130 
135  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
136 
141  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
142 
147  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
148 
153  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
154 
159  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
160 
165  inline BatchGetCommitsError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
166 
171  inline BatchGetCommitsError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
172 
177  inline BatchGetCommitsError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
178 
179  private:
180 
181  Aws::String m_commitId;
182  bool m_commitIdHasBeenSet;
183 
184  Aws::String m_errorCode;
185  bool m_errorCodeHasBeenSet;
186 
187  Aws::String m_errorMessage;
188  bool m_errorMessageHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace CodeCommit
193 } // namespace Aws
Aws::CodeCommit::Model::BatchGetCommitsError::SetCommitId
void SetCommitId(const Aws::String &value)
Definition: BatchGetCommitsError.h:54
Aws::CodeCommit::Model::BatchGetCommitsError::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: BatchGetCommitsError.h:135
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::BatchGetCommitsError::WithErrorCode
BatchGetCommitsError & WithErrorCode(Aws::String &&value)
Definition: BatchGetCommitsError.h:122
Aws::CodeCommit::Model::BatchGetCommitsError::WithCommitId
BatchGetCommitsError & WithCommitId(const char *value)
Definition: BatchGetCommitsError.h:79
Aws::CodeCommit::Model::BatchGetCommitsError::WithCommitId
BatchGetCommitsError & WithCommitId(const Aws::String &value)
Definition: BatchGetCommitsError.h:69
Aws::CodeCommit::Model::BatchGetCommitsError::SetCommitId
void SetCommitId(const char *value)
Definition: BatchGetCommitsError.h:64
Aws::CodeCommit::Model::BatchGetCommitsError::WithCommitId
BatchGetCommitsError & WithCommitId(Aws::String &&value)
Definition: BatchGetCommitsError.h:74
Aws::CodeCommit::Model::BatchGetCommitsError::WithErrorMessage
BatchGetCommitsError & WithErrorMessage(Aws::String &&value)
Definition: BatchGetCommitsError.h:171
Aws::CodeCommit::Model::BatchGetCommitsError::WithErrorMessage
BatchGetCommitsError & WithErrorMessage(const char *value)
Definition: BatchGetCommitsError.h:177
Aws::CodeCommit::Model::BatchGetCommitsError::CommitIdHasBeenSet
bool CommitIdHasBeenSet() const
Definition: BatchGetCommitsError.h:49
Aws::CodeCommit::Model::BatchGetCommitsError::GetCommitId
const Aws::String & GetCommitId() const
Definition: BatchGetCommitsError.h:44
Aws::CodeCommit::Model::BatchGetCommitsError::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: BatchGetCommitsError.h:86
Aws::CodeCommit::Model::BatchGetCommitsError::BatchGetCommitsError
BatchGetCommitsError(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::BatchGetCommitsError
Definition: BatchGetCommitsError.h:33
Aws::CodeCommit::Model::BatchGetCommitsError::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: BatchGetCommitsError.h:104
Aws::CodeCommit::Model::BatchGetCommitsError::WithErrorCode
BatchGetCommitsError & WithErrorCode(const Aws::String &value)
Definition: BatchGetCommitsError.h:116
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::BatchGetCommitsError::SetErrorCode
void SetErrorCode(const char *value)
Definition: BatchGetCommitsError.h:110
Aws::CodeCommit::Model::BatchGetCommitsError::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: BatchGetCommitsError.h:98
Aws::CodeCommit::Model::BatchGetCommitsError::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: BatchGetCommitsError.h:147
Aws::CodeCommit::Model::BatchGetCommitsError::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: BatchGetCommitsError.h:153
Aws::CodeCommit::Model::BatchGetCommitsError::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: BatchGetCommitsError.h:159
Aws::CodeCommit::Model::BatchGetCommitsError::WithErrorMessage
BatchGetCommitsError & WithErrorMessage(const Aws::String &value)
Definition: BatchGetCommitsError.h:165
Aws::CodeCommit::Model::BatchGetCommitsError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::BatchGetCommitsError::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: BatchGetCommitsError.h:92
Aws::CodeCommit::Model::BatchGetCommitsError::operator=
BatchGetCommitsError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::BatchGetCommitsError::BatchGetCommitsError
BatchGetCommitsError()
Aws::CodeCommit::Model::BatchGetCommitsError::SetCommitId
void SetCommitId(Aws::String &&value)
Definition: BatchGetCommitsError.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::BatchGetCommitsError::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: BatchGetCommitsError.h:141
Aws::CodeCommit::Model::BatchGetCommitsError::WithErrorCode
BatchGetCommitsError & WithErrorCode(const char *value)
Definition: BatchGetCommitsError.h:128