AWS SDK for C++  1.8.152
AWS SDK for C++
ApprovalRule.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace CodeCommit
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetApprovalRuleId() const{ return m_approvalRuleId; }
46 
50  inline bool ApprovalRuleIdHasBeenSet() const { return m_approvalRuleIdHasBeenSet; }
51 
55  inline void SetApprovalRuleId(const Aws::String& value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId = value; }
56 
60  inline void SetApprovalRuleId(Aws::String&& value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId = std::move(value); }
61 
65  inline void SetApprovalRuleId(const char* value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId.assign(value); }
66 
70  inline ApprovalRule& WithApprovalRuleId(const Aws::String& value) { SetApprovalRuleId(value); return *this;}
71 
75  inline ApprovalRule& WithApprovalRuleId(Aws::String&& value) { SetApprovalRuleId(std::move(value)); return *this;}
76 
80  inline ApprovalRule& WithApprovalRuleId(const char* value) { SetApprovalRuleId(value); return *this;}
81 
82 
86  inline const Aws::String& GetApprovalRuleName() const{ return m_approvalRuleName; }
87 
91  inline bool ApprovalRuleNameHasBeenSet() const { return m_approvalRuleNameHasBeenSet; }
92 
96  inline void SetApprovalRuleName(const Aws::String& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = value; }
97 
101  inline void SetApprovalRuleName(Aws::String&& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = std::move(value); }
102 
106  inline void SetApprovalRuleName(const char* value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName.assign(value); }
107 
111  inline ApprovalRule& WithApprovalRuleName(const Aws::String& value) { SetApprovalRuleName(value); return *this;}
112 
116  inline ApprovalRule& WithApprovalRuleName(Aws::String&& value) { SetApprovalRuleName(std::move(value)); return *this;}
117 
121  inline ApprovalRule& WithApprovalRuleName(const char* value) { SetApprovalRuleName(value); return *this;}
122 
123 
127  inline const Aws::String& GetApprovalRuleContent() const{ return m_approvalRuleContent; }
128 
132  inline bool ApprovalRuleContentHasBeenSet() const { return m_approvalRuleContentHasBeenSet; }
133 
137  inline void SetApprovalRuleContent(const Aws::String& value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent = value; }
138 
142  inline void SetApprovalRuleContent(Aws::String&& value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent = std::move(value); }
143 
147  inline void SetApprovalRuleContent(const char* value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent.assign(value); }
148 
152  inline ApprovalRule& WithApprovalRuleContent(const Aws::String& value) { SetApprovalRuleContent(value); return *this;}
153 
157  inline ApprovalRule& WithApprovalRuleContent(Aws::String&& value) { SetApprovalRuleContent(std::move(value)); return *this;}
158 
162  inline ApprovalRule& WithApprovalRuleContent(const char* value) { SetApprovalRuleContent(value); return *this;}
163 
164 
168  inline const Aws::String& GetRuleContentSha256() const{ return m_ruleContentSha256; }
169 
173  inline bool RuleContentSha256HasBeenSet() const { return m_ruleContentSha256HasBeenSet; }
174 
178  inline void SetRuleContentSha256(const Aws::String& value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256 = value; }
179 
183  inline void SetRuleContentSha256(Aws::String&& value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256 = std::move(value); }
184 
188  inline void SetRuleContentSha256(const char* value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256.assign(value); }
189 
193  inline ApprovalRule& WithRuleContentSha256(const Aws::String& value) { SetRuleContentSha256(value); return *this;}
194 
198  inline ApprovalRule& WithRuleContentSha256(Aws::String&& value) { SetRuleContentSha256(std::move(value)); return *this;}
199 
203  inline ApprovalRule& WithRuleContentSha256(const char* value) { SetRuleContentSha256(value); return *this;}
204 
205 
210  inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
211 
216  inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
217 
222  inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
223 
228  inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
229 
234  inline ApprovalRule& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
235 
240  inline ApprovalRule& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
241 
242 
246  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
247 
251  inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
252 
256  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
257 
261  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
262 
266  inline ApprovalRule& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
267 
271  inline ApprovalRule& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
272 
273 
278  inline const Aws::String& GetLastModifiedUser() const{ return m_lastModifiedUser; }
279 
284  inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
285 
290  inline void SetLastModifiedUser(const Aws::String& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = value; }
291 
296  inline void SetLastModifiedUser(Aws::String&& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = std::move(value); }
297 
302  inline void SetLastModifiedUser(const char* value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser.assign(value); }
303 
308  inline ApprovalRule& WithLastModifiedUser(const Aws::String& value) { SetLastModifiedUser(value); return *this;}
309 
314  inline ApprovalRule& WithLastModifiedUser(Aws::String&& value) { SetLastModifiedUser(std::move(value)); return *this;}
315 
320  inline ApprovalRule& WithLastModifiedUser(const char* value) { SetLastModifiedUser(value); return *this;}
321 
322 
326  inline const OriginApprovalRuleTemplate& GetOriginApprovalRuleTemplate() const{ return m_originApprovalRuleTemplate; }
327 
331  inline bool OriginApprovalRuleTemplateHasBeenSet() const { return m_originApprovalRuleTemplateHasBeenSet; }
332 
336  inline void SetOriginApprovalRuleTemplate(const OriginApprovalRuleTemplate& value) { m_originApprovalRuleTemplateHasBeenSet = true; m_originApprovalRuleTemplate = value; }
337 
341  inline void SetOriginApprovalRuleTemplate(OriginApprovalRuleTemplate&& value) { m_originApprovalRuleTemplateHasBeenSet = true; m_originApprovalRuleTemplate = std::move(value); }
342 
346  inline ApprovalRule& WithOriginApprovalRuleTemplate(const OriginApprovalRuleTemplate& value) { SetOriginApprovalRuleTemplate(value); return *this;}
347 
351  inline ApprovalRule& WithOriginApprovalRuleTemplate(OriginApprovalRuleTemplate&& value) { SetOriginApprovalRuleTemplate(std::move(value)); return *this;}
352 
353  private:
354 
355  Aws::String m_approvalRuleId;
356  bool m_approvalRuleIdHasBeenSet;
357 
358  Aws::String m_approvalRuleName;
359  bool m_approvalRuleNameHasBeenSet;
360 
361  Aws::String m_approvalRuleContent;
362  bool m_approvalRuleContentHasBeenSet;
363 
364  Aws::String m_ruleContentSha256;
365  bool m_ruleContentSha256HasBeenSet;
366 
367  Aws::Utils::DateTime m_lastModifiedDate;
368  bool m_lastModifiedDateHasBeenSet;
369 
370  Aws::Utils::DateTime m_creationDate;
371  bool m_creationDateHasBeenSet;
372 
373  Aws::String m_lastModifiedUser;
374  bool m_lastModifiedUserHasBeenSet;
375 
376  OriginApprovalRuleTemplate m_originApprovalRuleTemplate;
377  bool m_originApprovalRuleTemplateHasBeenSet;
378  };
379 
380 } // namespace Model
381 } // namespace CodeCommit
382 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CodeCommit::Model::ApprovalRule::SetApprovalRuleId
void SetApprovalRuleId(Aws::String &&value)
Definition: ApprovalRule.h:60
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ApprovalRule::WithApprovalRuleName
ApprovalRule & WithApprovalRuleName(const Aws::String &value)
Definition: ApprovalRule.h:111
Aws::CodeCommit::Model::ApprovalRule::SetRuleContentSha256
void SetRuleContentSha256(const char *value)
Definition: ApprovalRule.h:188
Aws::CodeCommit::Model::ApprovalRule::ApprovalRuleIdHasBeenSet
bool ApprovalRuleIdHasBeenSet() const
Definition: ApprovalRule.h:50
OriginApprovalRuleTemplate.h
Aws::CodeCommit::Model::ApprovalRule::WithApprovalRuleId
ApprovalRule & WithApprovalRuleId(const Aws::String &value)
Definition: ApprovalRule.h:70
Aws::CodeCommit::Model::ApprovalRule::GetLastModifiedUser
const Aws::String & GetLastModifiedUser() const
Definition: ApprovalRule.h:278
Aws::CodeCommit::Model::ApprovalRule::SetRuleContentSha256
void SetRuleContentSha256(const Aws::String &value)
Definition: ApprovalRule.h:178
Aws::CodeCommit::Model::ApprovalRule::GetApprovalRuleName
const Aws::String & GetApprovalRuleName() const
Definition: ApprovalRule.h:86
Aws::CodeCommit::Model::ApprovalRule::SetLastModifiedUser
void SetLastModifiedUser(const char *value)
Definition: ApprovalRule.h:302
Aws::CodeCommit::Model::ApprovalRule::OriginApprovalRuleTemplateHasBeenSet
bool OriginApprovalRuleTemplateHasBeenSet() const
Definition: ApprovalRule.h:331
DateTime.h
Aws::CodeCommit::Model::ApprovalRule::WithLastModifiedDate
ApprovalRule & WithLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: ApprovalRule.h:234
Aws::CodeCommit::Model::ApprovalRule::WithRuleContentSha256
ApprovalRule & WithRuleContentSha256(const char *value)
Definition: ApprovalRule.h:203
Aws::CodeCommit::Model::ApprovalRule::ApprovalRule
ApprovalRule()
Aws::CodeCommit::Model::ApprovalRule::operator=
ApprovalRule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ApprovalRule::WithLastModifiedUser
ApprovalRule & WithLastModifiedUser(const Aws::String &value)
Definition: ApprovalRule.h:308
Aws::CodeCommit::Model::ApprovalRule::WithApprovalRuleName
ApprovalRule & WithApprovalRuleName(Aws::String &&value)
Definition: ApprovalRule.h:116
Aws::CodeCommit::Model::ApprovalRule::WithLastModifiedUser
ApprovalRule & WithLastModifiedUser(const char *value)
Definition: ApprovalRule.h:320
Aws::CodeCommit::Model::ApprovalRule::WithRuleContentSha256
ApprovalRule & WithRuleContentSha256(const Aws::String &value)
Definition: ApprovalRule.h:193
Aws::CodeCommit::Model::ApprovalRule::ApprovalRuleNameHasBeenSet
bool ApprovalRuleNameHasBeenSet() const
Definition: ApprovalRule.h:91
Aws::CodeCommit::Model::ApprovalRule::SetLastModifiedDate
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: ApprovalRule.h:222
Aws::CodeCommit::Model::OriginApprovalRuleTemplate
Definition: OriginApprovalRuleTemplate.h:33
Aws::CodeCommit::Model::ApprovalRule::WithCreationDate
ApprovalRule & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: ApprovalRule.h:266
Aws::CodeCommit::Model::ApprovalRule::WithOriginApprovalRuleTemplate
ApprovalRule & WithOriginApprovalRuleTemplate(OriginApprovalRuleTemplate &&value)
Definition: ApprovalRule.h:351
Aws::CodeCommit::Model::ApprovalRule::GetRuleContentSha256
const Aws::String & GetRuleContentSha256() const
Definition: ApprovalRule.h:168
Aws::CodeCommit::Model::ApprovalRule::WithLastModifiedDate
ApprovalRule & WithLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: ApprovalRule.h:240
Aws::CodeCommit::Model::ApprovalRule::GetApprovalRuleId
const Aws::String & GetApprovalRuleId() const
Definition: ApprovalRule.h:45
Aws::CodeCommit::Model::ApprovalRule::SetApprovalRuleId
void SetApprovalRuleId(const Aws::String &value)
Definition: ApprovalRule.h:55
Aws::CodeCommit::Model::ApprovalRule::WithOriginApprovalRuleTemplate
ApprovalRule & WithOriginApprovalRuleTemplate(const OriginApprovalRuleTemplate &value)
Definition: ApprovalRule.h:346
Aws::CodeCommit::Model::ApprovalRule::WithLastModifiedUser
ApprovalRule & WithLastModifiedUser(Aws::String &&value)
Definition: ApprovalRule.h:314
Aws::CodeCommit::Model::ApprovalRule
Definition: ApprovalRule.h:34
Aws::CodeCommit::Model::ApprovalRule::WithApprovalRuleName
ApprovalRule & WithApprovalRuleName(const char *value)
Definition: ApprovalRule.h:121
Aws::CodeCommit::Model::ApprovalRule::SetLastModifiedUser
void SetLastModifiedUser(const Aws::String &value)
Definition: ApprovalRule.h:290
Aws::CodeCommit::Model::ApprovalRule::LastModifiedDateHasBeenSet
bool LastModifiedDateHasBeenSet() const
Definition: ApprovalRule.h:216
Aws::CodeCommit::Model::ApprovalRule::LastModifiedUserHasBeenSet
bool LastModifiedUserHasBeenSet() const
Definition: ApprovalRule.h:284
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CodeCommit::Model::ApprovalRule::WithApprovalRuleContent
ApprovalRule & WithApprovalRuleContent(const char *value)
Definition: ApprovalRule.h:162
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::ApprovalRule::SetLastModifiedDate
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: ApprovalRule.h:228
Aws::CodeCommit::Model::ApprovalRule::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: ApprovalRule.h:246
Aws::CodeCommit::Model::ApprovalRule::WithApprovalRuleContent
ApprovalRule & WithApprovalRuleContent(const Aws::String &value)
Definition: ApprovalRule.h:152
Aws::CodeCommit::Model::ApprovalRule::WithCreationDate
ApprovalRule & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: ApprovalRule.h:271
Aws::CodeCommit::Model::ApprovalRule::SetApprovalRuleContent
void SetApprovalRuleContent(Aws::String &&value)
Definition: ApprovalRule.h:142
Aws::CodeCommit::Model::ApprovalRule::WithApprovalRuleId
ApprovalRule & WithApprovalRuleId(Aws::String &&value)
Definition: ApprovalRule.h:75
Aws::CodeCommit::Model::ApprovalRule::SetOriginApprovalRuleTemplate
void SetOriginApprovalRuleTemplate(const OriginApprovalRuleTemplate &value)
Definition: ApprovalRule.h:336
Aws::CodeCommit::Model::ApprovalRule::SetApprovalRuleName
void SetApprovalRuleName(const char *value)
Definition: ApprovalRule.h:106
Aws::CodeCommit::Model::ApprovalRule::WithRuleContentSha256
ApprovalRule & WithRuleContentSha256(Aws::String &&value)
Definition: ApprovalRule.h:198
Aws::CodeCommit::Model::ApprovalRule::GetOriginApprovalRuleTemplate
const OriginApprovalRuleTemplate & GetOriginApprovalRuleTemplate() const
Definition: ApprovalRule.h:326
Aws::CodeCommit::Model::ApprovalRule::ApprovalRuleContentHasBeenSet
bool ApprovalRuleContentHasBeenSet() const
Definition: ApprovalRule.h:132
Aws::CodeCommit::Model::ApprovalRule::SetApprovalRuleId
void SetApprovalRuleId(const char *value)
Definition: ApprovalRule.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::ApprovalRule::SetApprovalRuleName
void SetApprovalRuleName(Aws::String &&value)
Definition: ApprovalRule.h:101
Aws::CodeCommit::Model::ApprovalRule::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: ApprovalRule.h:261
Aws::CodeCommit::Model::ApprovalRule::ApprovalRule
ApprovalRule(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ApprovalRule::SetLastModifiedUser
void SetLastModifiedUser(Aws::String &&value)
Definition: ApprovalRule.h:296
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::ApprovalRule::SetRuleContentSha256
void SetRuleContentSha256(Aws::String &&value)
Definition: ApprovalRule.h:183
Aws::CodeCommit::Model::ApprovalRule::SetApprovalRuleContent
void SetApprovalRuleContent(const Aws::String &value)
Definition: ApprovalRule.h:137
Aws::CodeCommit::Model::ApprovalRule::SetOriginApprovalRuleTemplate
void SetOriginApprovalRuleTemplate(OriginApprovalRuleTemplate &&value)
Definition: ApprovalRule.h:341
Aws::CodeCommit::Model::ApprovalRule::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: ApprovalRule.h:256
Aws::CodeCommit::Model::ApprovalRule::SetApprovalRuleName
void SetApprovalRuleName(const Aws::String &value)
Definition: ApprovalRule.h:96
Aws::CodeCommit::Model::ApprovalRule::SetApprovalRuleContent
void SetApprovalRuleContent(const char *value)
Definition: ApprovalRule.h:147
Aws::CodeCommit::Model::ApprovalRule::GetLastModifiedDate
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition: ApprovalRule.h:210
Aws::CodeCommit::Model::ApprovalRule::CreationDateHasBeenSet
bool CreationDateHasBeenSet() const
Definition: ApprovalRule.h:251
Aws::CodeCommit::Model::ApprovalRule::WithApprovalRuleContent
ApprovalRule & WithApprovalRuleContent(Aws::String &&value)
Definition: ApprovalRule.h:157
Aws::CodeCommit::Model::ApprovalRule::WithApprovalRuleId
ApprovalRule & WithApprovalRuleId(const char *value)
Definition: ApprovalRule.h:80
Aws::CodeCommit::Model::ApprovalRule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::ApprovalRule::GetApprovalRuleContent
const Aws::String & GetApprovalRuleContent() const
Definition: ApprovalRule.h:127
Aws::CodeCommit::Model::ApprovalRule::RuleContentSha256HasBeenSet
bool RuleContentSha256HasBeenSet() const
Definition: ApprovalRule.h:173