AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ApprovalRule.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/OriginApprovalRuleTemplate.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeCommit {
22namespace Model {
23
30 public:
31 AWS_CODECOMMIT_API ApprovalRule() = default;
32 AWS_CODECOMMIT_API ApprovalRule(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECOMMIT_API ApprovalRule& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetApprovalRuleId() const { return m_approvalRuleId; }
41 inline bool ApprovalRuleIdHasBeenSet() const { return m_approvalRuleIdHasBeenSet; }
42 template <typename ApprovalRuleIdT = Aws::String>
43 void SetApprovalRuleId(ApprovalRuleIdT&& value) {
44 m_approvalRuleIdHasBeenSet = true;
45 m_approvalRuleId = std::forward<ApprovalRuleIdT>(value);
46 }
47 template <typename ApprovalRuleIdT = Aws::String>
48 ApprovalRule& WithApprovalRuleId(ApprovalRuleIdT&& value) {
49 SetApprovalRuleId(std::forward<ApprovalRuleIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetApprovalRuleName() const { return m_approvalRuleName; }
59 inline bool ApprovalRuleNameHasBeenSet() const { return m_approvalRuleNameHasBeenSet; }
60 template <typename ApprovalRuleNameT = Aws::String>
61 void SetApprovalRuleName(ApprovalRuleNameT&& value) {
62 m_approvalRuleNameHasBeenSet = true;
63 m_approvalRuleName = std::forward<ApprovalRuleNameT>(value);
64 }
65 template <typename ApprovalRuleNameT = Aws::String>
66 ApprovalRule& WithApprovalRuleName(ApprovalRuleNameT&& value) {
67 SetApprovalRuleName(std::forward<ApprovalRuleNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetApprovalRuleContent() const { return m_approvalRuleContent; }
77 inline bool ApprovalRuleContentHasBeenSet() const { return m_approvalRuleContentHasBeenSet; }
78 template <typename ApprovalRuleContentT = Aws::String>
79 void SetApprovalRuleContent(ApprovalRuleContentT&& value) {
80 m_approvalRuleContentHasBeenSet = true;
81 m_approvalRuleContent = std::forward<ApprovalRuleContentT>(value);
82 }
83 template <typename ApprovalRuleContentT = Aws::String>
84 ApprovalRule& WithApprovalRuleContent(ApprovalRuleContentT&& value) {
85 SetApprovalRuleContent(std::forward<ApprovalRuleContentT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetRuleContentSha256() const { return m_ruleContentSha256; }
95 inline bool RuleContentSha256HasBeenSet() const { return m_ruleContentSha256HasBeenSet; }
96 template <typename RuleContentSha256T = Aws::String>
97 void SetRuleContentSha256(RuleContentSha256T&& value) {
98 m_ruleContentSha256HasBeenSet = true;
99 m_ruleContentSha256 = std::forward<RuleContentSha256T>(value);
100 }
101 template <typename RuleContentSha256T = Aws::String>
102 ApprovalRule& WithRuleContentSha256(RuleContentSha256T&& value) {
103 SetRuleContentSha256(std::forward<RuleContentSha256T>(value));
104 return *this;
105 }
107
109
113 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
114 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
115 template <typename LastModifiedDateT = Aws::Utils::DateTime>
116 void SetLastModifiedDate(LastModifiedDateT&& value) {
117 m_lastModifiedDateHasBeenSet = true;
118 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
119 }
120 template <typename LastModifiedDateT = Aws::Utils::DateTime>
121 ApprovalRule& WithLastModifiedDate(LastModifiedDateT&& value) {
122 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
132 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
133 template <typename CreationDateT = Aws::Utils::DateTime>
134 void SetCreationDate(CreationDateT&& value) {
135 m_creationDateHasBeenSet = true;
136 m_creationDate = std::forward<CreationDateT>(value);
137 }
138 template <typename CreationDateT = Aws::Utils::DateTime>
139 ApprovalRule& WithCreationDate(CreationDateT&& value) {
140 SetCreationDate(std::forward<CreationDateT>(value));
141 return *this;
142 }
144
146
150 inline const Aws::String& GetLastModifiedUser() const { return m_lastModifiedUser; }
151 inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
152 template <typename LastModifiedUserT = Aws::String>
153 void SetLastModifiedUser(LastModifiedUserT&& value) {
154 m_lastModifiedUserHasBeenSet = true;
155 m_lastModifiedUser = std::forward<LastModifiedUserT>(value);
156 }
157 template <typename LastModifiedUserT = Aws::String>
158 ApprovalRule& WithLastModifiedUser(LastModifiedUserT&& value) {
159 SetLastModifiedUser(std::forward<LastModifiedUserT>(value));
160 return *this;
161 }
163
165
168 inline const OriginApprovalRuleTemplate& GetOriginApprovalRuleTemplate() const { return m_originApprovalRuleTemplate; }
169 inline bool OriginApprovalRuleTemplateHasBeenSet() const { return m_originApprovalRuleTemplateHasBeenSet; }
170 template <typename OriginApprovalRuleTemplateT = OriginApprovalRuleTemplate>
171 void SetOriginApprovalRuleTemplate(OriginApprovalRuleTemplateT&& value) {
172 m_originApprovalRuleTemplateHasBeenSet = true;
173 m_originApprovalRuleTemplate = std::forward<OriginApprovalRuleTemplateT>(value);
174 }
175 template <typename OriginApprovalRuleTemplateT = OriginApprovalRuleTemplate>
176 ApprovalRule& WithOriginApprovalRuleTemplate(OriginApprovalRuleTemplateT&& value) {
177 SetOriginApprovalRuleTemplate(std::forward<OriginApprovalRuleTemplateT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_approvalRuleId;
183
184 Aws::String m_approvalRuleName;
185
186 Aws::String m_approvalRuleContent;
187
188 Aws::String m_ruleContentSha256;
189
190 Aws::Utils::DateTime m_lastModifiedDate{};
191
192 Aws::Utils::DateTime m_creationDate{};
193
194 Aws::String m_lastModifiedUser;
195
196 OriginApprovalRuleTemplate m_originApprovalRuleTemplate;
197 bool m_approvalRuleIdHasBeenSet = false;
198 bool m_approvalRuleNameHasBeenSet = false;
199 bool m_approvalRuleContentHasBeenSet = false;
200 bool m_ruleContentSha256HasBeenSet = false;
201 bool m_lastModifiedDateHasBeenSet = false;
202 bool m_creationDateHasBeenSet = false;
203 bool m_lastModifiedUserHasBeenSet = false;
204 bool m_originApprovalRuleTemplateHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace CodeCommit
209} // namespace Aws
AWS_CODECOMMIT_API ApprovalRule()=default
void SetRuleContentSha256(RuleContentSha256T &&value)
ApprovalRule & WithApprovalRuleContent(ApprovalRuleContentT &&value)
AWS_CODECOMMIT_API ApprovalRule(Aws::Utils::Json::JsonView jsonValue)
void SetApprovalRuleId(ApprovalRuleIdT &&value)
void SetOriginApprovalRuleTemplate(OriginApprovalRuleTemplateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
ApprovalRule & WithCreationDate(CreationDateT &&value)
void SetCreationDate(CreationDateT &&value)
const Aws::String & GetRuleContentSha256() const
const Aws::String & GetLastModifiedUser() const
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModifiedDate() const
const Aws::String & GetApprovalRuleName() const
void SetLastModifiedDate(LastModifiedDateT &&value)
ApprovalRule & WithApprovalRuleId(ApprovalRuleIdT &&value)
AWS_CODECOMMIT_API ApprovalRule & operator=(Aws::Utils::Json::JsonView jsonValue)
ApprovalRule & WithLastModifiedDate(LastModifiedDateT &&value)
const OriginApprovalRuleTemplate & GetOriginApprovalRuleTemplate() const
const Aws::String & GetApprovalRuleContent() const
void SetApprovalRuleContent(ApprovalRuleContentT &&value)
void SetApprovalRuleName(ApprovalRuleNameT &&value)
ApprovalRule & WithRuleContentSha256(RuleContentSha256T &&value)
ApprovalRule & WithLastModifiedUser(LastModifiedUserT &&value)
const Aws::String & GetApprovalRuleId() const
ApprovalRule & WithOriginApprovalRuleTemplate(OriginApprovalRuleTemplateT &&value)
void SetLastModifiedUser(LastModifiedUserT &&value)
ApprovalRule & WithApprovalRuleName(ApprovalRuleNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue