AWS SDK for C++  1.8.152
AWS SDK for C++
BatchAssociateApprovalRuleTemplateWithRepositoriesError.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 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
46 
50  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
51 
55  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
56 
60  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
61 
65  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
66 
70  inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
71 
75  inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
76 
80  inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
81 
82 
87  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
88 
93  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
94 
99  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
100 
105  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
106 
111  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
112 
117  inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
118 
123  inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
124 
129  inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
130 
131 
136  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
137 
142  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
143 
148  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
149 
154  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
155 
160  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
161 
166  inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
167 
172  inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
173 
178  inline BatchAssociateApprovalRuleTemplateWithRepositoriesError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
179 
180  private:
181 
182  Aws::String m_repositoryName;
183  bool m_repositoryNameHasBeenSet;
184 
185  Aws::String m_errorCode;
186  bool m_errorCodeHasBeenSet;
187 
188  Aws::String m_errorMessage;
189  bool m_errorMessageHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace CodeCommit
194 } // namespace Aws
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:60
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:148
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::operator=
BatchAssociateApprovalRuleTemplateWithRepositoriesError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::BatchAssociateApprovalRuleTemplateWithRepositoriesError
BatchAssociateApprovalRuleTemplateWithRepositoriesError(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:93
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::BatchAssociateApprovalRuleTemplateWithRepositoriesError
BatchAssociateApprovalRuleTemplateWithRepositoriesError()
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::WithErrorCode
BatchAssociateApprovalRuleTemplateWithRepositoriesError & WithErrorCode(const Aws::String &value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:117
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::WithErrorMessage
BatchAssociateApprovalRuleTemplateWithRepositoriesError & WithErrorMessage(const char *value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:178
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::WithErrorMessage
BatchAssociateApprovalRuleTemplateWithRepositoriesError & WithErrorMessage(Aws::String &&value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:172
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:136
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::WithErrorMessage
BatchAssociateApprovalRuleTemplateWithRepositoriesError & WithErrorMessage(const Aws::String &value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:166
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::WithRepositoryName
BatchAssociateApprovalRuleTemplateWithRepositoriesError & WithRepositoryName(Aws::String &&value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:75
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:105
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::BatchAssociateApprovalRuleTemplateWithRepositoriesError::WithErrorCode
BatchAssociateApprovalRuleTemplateWithRepositoriesError & WithErrorCode(const char *value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:129
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:99
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:160
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::WithErrorCode
BatchAssociateApprovalRuleTemplateWithRepositoriesError & WithErrorCode(Aws::String &&value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:123
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::WithRepositoryName
BatchAssociateApprovalRuleTemplateWithRepositoriesError & WithRepositoryName(const char *value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:80
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::WithRepositoryName
BatchAssociateApprovalRuleTemplateWithRepositoriesError & WithRepositoryName(const Aws::String &value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:50
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:34
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:55
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:154
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:65
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:142
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::SetErrorCode
void SetErrorCode(const char *value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:111
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesError::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesError.h:87