AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApprovalRule.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/codecommit/model/OriginApprovalRuleTemplate.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeCommit
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CODECOMMIT_API ApprovalRule();
37 AWS_CODECOMMIT_API ApprovalRule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API ApprovalRule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetApprovalRuleId() const{ return m_approvalRuleId; }
47 inline bool ApprovalRuleIdHasBeenSet() const { return m_approvalRuleIdHasBeenSet; }
48 inline void SetApprovalRuleId(const Aws::String& value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId = value; }
49 inline void SetApprovalRuleId(Aws::String&& value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId = std::move(value); }
50 inline void SetApprovalRuleId(const char* value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId.assign(value); }
51 inline ApprovalRule& WithApprovalRuleId(const Aws::String& value) { SetApprovalRuleId(value); return *this;}
52 inline ApprovalRule& WithApprovalRuleId(Aws::String&& value) { SetApprovalRuleId(std::move(value)); return *this;}
53 inline ApprovalRule& WithApprovalRuleId(const char* value) { SetApprovalRuleId(value); return *this;}
55
57
60 inline const Aws::String& GetApprovalRuleName() const{ return m_approvalRuleName; }
61 inline bool ApprovalRuleNameHasBeenSet() const { return m_approvalRuleNameHasBeenSet; }
62 inline void SetApprovalRuleName(const Aws::String& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = value; }
63 inline void SetApprovalRuleName(Aws::String&& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = std::move(value); }
64 inline void SetApprovalRuleName(const char* value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName.assign(value); }
65 inline ApprovalRule& WithApprovalRuleName(const Aws::String& value) { SetApprovalRuleName(value); return *this;}
66 inline ApprovalRule& WithApprovalRuleName(Aws::String&& value) { SetApprovalRuleName(std::move(value)); return *this;}
67 inline ApprovalRule& WithApprovalRuleName(const char* value) { SetApprovalRuleName(value); return *this;}
69
71
74 inline const Aws::String& GetApprovalRuleContent() const{ return m_approvalRuleContent; }
75 inline bool ApprovalRuleContentHasBeenSet() const { return m_approvalRuleContentHasBeenSet; }
76 inline void SetApprovalRuleContent(const Aws::String& value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent = value; }
77 inline void SetApprovalRuleContent(Aws::String&& value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent = std::move(value); }
78 inline void SetApprovalRuleContent(const char* value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent.assign(value); }
79 inline ApprovalRule& WithApprovalRuleContent(const Aws::String& value) { SetApprovalRuleContent(value); return *this;}
80 inline ApprovalRule& WithApprovalRuleContent(Aws::String&& value) { SetApprovalRuleContent(std::move(value)); return *this;}
81 inline ApprovalRule& WithApprovalRuleContent(const char* value) { SetApprovalRuleContent(value); return *this;}
83
85
88 inline const Aws::String& GetRuleContentSha256() const{ return m_ruleContentSha256; }
89 inline bool RuleContentSha256HasBeenSet() const { return m_ruleContentSha256HasBeenSet; }
90 inline void SetRuleContentSha256(const Aws::String& value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256 = value; }
91 inline void SetRuleContentSha256(Aws::String&& value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256 = std::move(value); }
92 inline void SetRuleContentSha256(const char* value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256.assign(value); }
93 inline ApprovalRule& WithRuleContentSha256(const Aws::String& value) { SetRuleContentSha256(value); return *this;}
94 inline ApprovalRule& WithRuleContentSha256(Aws::String&& value) { SetRuleContentSha256(std::move(value)); return *this;}
95 inline ApprovalRule& WithRuleContentSha256(const char* value) { SetRuleContentSha256(value); return *this;}
97
99
103 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
104 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
105 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
106 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
107 inline ApprovalRule& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
108 inline ApprovalRule& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
116 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
117 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
118 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
119 inline ApprovalRule& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
120 inline ApprovalRule& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
122
124
128 inline const Aws::String& GetLastModifiedUser() const{ return m_lastModifiedUser; }
129 inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
130 inline void SetLastModifiedUser(const Aws::String& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = value; }
131 inline void SetLastModifiedUser(Aws::String&& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = std::move(value); }
132 inline void SetLastModifiedUser(const char* value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser.assign(value); }
133 inline ApprovalRule& WithLastModifiedUser(const Aws::String& value) { SetLastModifiedUser(value); return *this;}
134 inline ApprovalRule& WithLastModifiedUser(Aws::String&& value) { SetLastModifiedUser(std::move(value)); return *this;}
135 inline ApprovalRule& WithLastModifiedUser(const char* value) { SetLastModifiedUser(value); return *this;}
137
139
142 inline const OriginApprovalRuleTemplate& GetOriginApprovalRuleTemplate() const{ return m_originApprovalRuleTemplate; }
143 inline bool OriginApprovalRuleTemplateHasBeenSet() const { return m_originApprovalRuleTemplateHasBeenSet; }
144 inline void SetOriginApprovalRuleTemplate(const OriginApprovalRuleTemplate& value) { m_originApprovalRuleTemplateHasBeenSet = true; m_originApprovalRuleTemplate = value; }
145 inline void SetOriginApprovalRuleTemplate(OriginApprovalRuleTemplate&& value) { m_originApprovalRuleTemplateHasBeenSet = true; m_originApprovalRuleTemplate = std::move(value); }
149 private:
150
151 Aws::String m_approvalRuleId;
152 bool m_approvalRuleIdHasBeenSet = false;
153
154 Aws::String m_approvalRuleName;
155 bool m_approvalRuleNameHasBeenSet = false;
156
157 Aws::String m_approvalRuleContent;
158 bool m_approvalRuleContentHasBeenSet = false;
159
160 Aws::String m_ruleContentSha256;
161 bool m_ruleContentSha256HasBeenSet = false;
162
163 Aws::Utils::DateTime m_lastModifiedDate;
164 bool m_lastModifiedDateHasBeenSet = false;
165
166 Aws::Utils::DateTime m_creationDate;
167 bool m_creationDateHasBeenSet = false;
168
169 Aws::String m_lastModifiedUser;
170 bool m_lastModifiedUserHasBeenSet = false;
171
172 OriginApprovalRuleTemplate m_originApprovalRuleTemplate;
173 bool m_originApprovalRuleTemplateHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace CodeCommit
178} // namespace Aws
ApprovalRule & WithCreationDate(const Aws::Utils::DateTime &value)
void SetLastModifiedUser(const Aws::String &value)
void SetRuleContentSha256(const char *value)
void SetApprovalRuleId(const Aws::String &value)
AWS_CODECOMMIT_API ApprovalRule(Aws::Utils::Json::JsonView jsonValue)
void SetApprovalRuleId(Aws::String &&value)
void SetApprovalRuleContent(const char *value)
const Aws::Utils::DateTime & GetCreationDate() const
ApprovalRule & WithLastModifiedUser(const char *value)
void SetApprovalRuleName(const Aws::String &value)
void SetCreationDate(Aws::Utils::DateTime &&value)
void SetApprovalRuleName(const char *value)
ApprovalRule & WithCreationDate(Aws::Utils::DateTime &&value)
ApprovalRule & WithApprovalRuleContent(const Aws::String &value)
void SetRuleContentSha256(Aws::String &&value)
ApprovalRule & WithApprovalRuleName(const char *value)
ApprovalRule & WithRuleContentSha256(Aws::String &&value)
void SetApprovalRuleContent(Aws::String &&value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
const Aws::String & GetRuleContentSha256() const
ApprovalRule & WithLastModifiedDate(Aws::Utils::DateTime &&value)
ApprovalRule & WithApprovalRuleName(const Aws::String &value)
void SetApprovalRuleContent(const Aws::String &value)
ApprovalRule & WithLastModifiedDate(const Aws::Utils::DateTime &value)
void SetRuleContentSha256(const Aws::String &value)
void SetOriginApprovalRuleTemplate(const OriginApprovalRuleTemplate &value)
ApprovalRule & WithApprovalRuleContent(const char *value)
ApprovalRule & WithApprovalRuleId(Aws::String &&value)
ApprovalRule & WithRuleContentSha256(const char *value)
const Aws::String & GetLastModifiedUser() const
ApprovalRule & WithOriginApprovalRuleTemplate(OriginApprovalRuleTemplate &&value)
void SetApprovalRuleName(Aws::String &&value)
void SetLastModifiedUser(const char *value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastModifiedUser(Aws::String &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
ApprovalRule & WithApprovalRuleId(const Aws::String &value)
const Aws::String & GetApprovalRuleName() const
void SetOriginApprovalRuleTemplate(OriginApprovalRuleTemplate &&value)
ApprovalRule & WithApprovalRuleId(const char *value)
void SetApprovalRuleId(const char *value)
ApprovalRule & WithLastModifiedUser(const Aws::String &value)
AWS_CODECOMMIT_API ApprovalRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
ApprovalRule & WithApprovalRuleContent(Aws::String &&value)
const OriginApprovalRuleTemplate & GetOriginApprovalRuleTemplate() const
const Aws::String & GetApprovalRuleContent() const
ApprovalRule & WithRuleContentSha256(const Aws::String &value)
void SetCreationDate(const Aws::Utils::DateTime &value)
ApprovalRule & WithOriginApprovalRuleTemplate(const OriginApprovalRuleTemplate &value)
const Aws::String & GetApprovalRuleId() const
ApprovalRule & WithApprovalRuleName(Aws::String &&value)
ApprovalRule & WithLastModifiedUser(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue