AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ApprovalRuleTemplate.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeCommit {
21namespace Model {
22
30 public:
31 AWS_CODECOMMIT_API ApprovalRuleTemplate() = default;
32 AWS_CODECOMMIT_API ApprovalRuleTemplate(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetApprovalRuleTemplateId() const { return m_approvalRuleTemplateId; }
41 inline bool ApprovalRuleTemplateIdHasBeenSet() const { return m_approvalRuleTemplateIdHasBeenSet; }
42 template <typename ApprovalRuleTemplateIdT = Aws::String>
43 void SetApprovalRuleTemplateId(ApprovalRuleTemplateIdT&& value) {
44 m_approvalRuleTemplateIdHasBeenSet = true;
45 m_approvalRuleTemplateId = std::forward<ApprovalRuleTemplateIdT>(value);
46 }
47 template <typename ApprovalRuleTemplateIdT = Aws::String>
48 ApprovalRuleTemplate& WithApprovalRuleTemplateId(ApprovalRuleTemplateIdT&& value) {
49 SetApprovalRuleTemplateId(std::forward<ApprovalRuleTemplateIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetApprovalRuleTemplateName() const { return m_approvalRuleTemplateName; }
59 inline bool ApprovalRuleTemplateNameHasBeenSet() const { return m_approvalRuleTemplateNameHasBeenSet; }
60 template <typename ApprovalRuleTemplateNameT = Aws::String>
61 void SetApprovalRuleTemplateName(ApprovalRuleTemplateNameT&& value) {
62 m_approvalRuleTemplateNameHasBeenSet = true;
63 m_approvalRuleTemplateName = std::forward<ApprovalRuleTemplateNameT>(value);
64 }
65 template <typename ApprovalRuleTemplateNameT = Aws::String>
66 ApprovalRuleTemplate& WithApprovalRuleTemplateName(ApprovalRuleTemplateNameT&& value) {
67 SetApprovalRuleTemplateName(std::forward<ApprovalRuleTemplateNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetApprovalRuleTemplateDescription() const { return m_approvalRuleTemplateDescription; }
77 inline bool ApprovalRuleTemplateDescriptionHasBeenSet() const { return m_approvalRuleTemplateDescriptionHasBeenSet; }
78 template <typename ApprovalRuleTemplateDescriptionT = Aws::String>
79 void SetApprovalRuleTemplateDescription(ApprovalRuleTemplateDescriptionT&& value) {
80 m_approvalRuleTemplateDescriptionHasBeenSet = true;
81 m_approvalRuleTemplateDescription = std::forward<ApprovalRuleTemplateDescriptionT>(value);
82 }
83 template <typename ApprovalRuleTemplateDescriptionT = Aws::String>
84 ApprovalRuleTemplate& WithApprovalRuleTemplateDescription(ApprovalRuleTemplateDescriptionT&& value) {
85 SetApprovalRuleTemplateDescription(std::forward<ApprovalRuleTemplateDescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetApprovalRuleTemplateContent() const { return m_approvalRuleTemplateContent; }
95 inline bool ApprovalRuleTemplateContentHasBeenSet() const { return m_approvalRuleTemplateContentHasBeenSet; }
96 template <typename ApprovalRuleTemplateContentT = Aws::String>
97 void SetApprovalRuleTemplateContent(ApprovalRuleTemplateContentT&& value) {
98 m_approvalRuleTemplateContentHasBeenSet = true;
99 m_approvalRuleTemplateContent = std::forward<ApprovalRuleTemplateContentT>(value);
100 }
101 template <typename ApprovalRuleTemplateContentT = Aws::String>
102 ApprovalRuleTemplate& WithApprovalRuleTemplateContent(ApprovalRuleTemplateContentT&& value) {
103 SetApprovalRuleTemplateContent(std::forward<ApprovalRuleTemplateContentT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetRuleContentSha256() const { return m_ruleContentSha256; }
113 inline bool RuleContentSha256HasBeenSet() const { return m_ruleContentSha256HasBeenSet; }
114 template <typename RuleContentSha256T = Aws::String>
115 void SetRuleContentSha256(RuleContentSha256T&& value) {
116 m_ruleContentSha256HasBeenSet = true;
117 m_ruleContentSha256 = std::forward<RuleContentSha256T>(value);
118 }
119 template <typename RuleContentSha256T = Aws::String>
120 ApprovalRuleTemplate& WithRuleContentSha256(RuleContentSha256T&& value) {
121 SetRuleContentSha256(std::forward<RuleContentSha256T>(value));
122 return *this;
123 }
125
127
131 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
132 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
133 template <typename LastModifiedDateT = Aws::Utils::DateTime>
134 void SetLastModifiedDate(LastModifiedDateT&& value) {
135 m_lastModifiedDateHasBeenSet = true;
136 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
137 }
138 template <typename LastModifiedDateT = Aws::Utils::DateTime>
139 ApprovalRuleTemplate& WithLastModifiedDate(LastModifiedDateT&& value) {
140 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
150 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
151 template <typename CreationDateT = Aws::Utils::DateTime>
152 void SetCreationDate(CreationDateT&& value) {
153 m_creationDateHasBeenSet = true;
154 m_creationDate = std::forward<CreationDateT>(value);
155 }
156 template <typename CreationDateT = Aws::Utils::DateTime>
157 ApprovalRuleTemplate& WithCreationDate(CreationDateT&& value) {
158 SetCreationDate(std::forward<CreationDateT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetLastModifiedUser() const { return m_lastModifiedUser; }
169 inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
170 template <typename LastModifiedUserT = Aws::String>
171 void SetLastModifiedUser(LastModifiedUserT&& value) {
172 m_lastModifiedUserHasBeenSet = true;
173 m_lastModifiedUser = std::forward<LastModifiedUserT>(value);
174 }
175 template <typename LastModifiedUserT = Aws::String>
176 ApprovalRuleTemplate& WithLastModifiedUser(LastModifiedUserT&& value) {
177 SetLastModifiedUser(std::forward<LastModifiedUserT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_approvalRuleTemplateId;
183
184 Aws::String m_approvalRuleTemplateName;
185
186 Aws::String m_approvalRuleTemplateDescription;
187
188 Aws::String m_approvalRuleTemplateContent;
189
190 Aws::String m_ruleContentSha256;
191
192 Aws::Utils::DateTime m_lastModifiedDate{};
193
194 Aws::Utils::DateTime m_creationDate{};
195
196 Aws::String m_lastModifiedUser;
197 bool m_approvalRuleTemplateIdHasBeenSet = false;
198 bool m_approvalRuleTemplateNameHasBeenSet = false;
199 bool m_approvalRuleTemplateDescriptionHasBeenSet = false;
200 bool m_approvalRuleTemplateContentHasBeenSet = false;
201 bool m_ruleContentSha256HasBeenSet = false;
202 bool m_lastModifiedDateHasBeenSet = false;
203 bool m_creationDateHasBeenSet = false;
204 bool m_lastModifiedUserHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace CodeCommit
209} // namespace Aws
ApprovalRuleTemplate & WithApprovalRuleTemplateName(ApprovalRuleTemplateNameT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
ApprovalRuleTemplate & WithLastModifiedUser(LastModifiedUserT &&value)
void SetApprovalRuleTemplateName(ApprovalRuleTemplateNameT &&value)
ApprovalRuleTemplate & WithRuleContentSha256(RuleContentSha256T &&value)
ApprovalRuleTemplate & WithLastModifiedDate(LastModifiedDateT &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
const Aws::String & GetApprovalRuleTemplateName() const
const Aws::String & GetApprovalRuleTemplateDescription() const
void SetRuleContentSha256(RuleContentSha256T &&value)
AWS_CODECOMMIT_API ApprovalRuleTemplate()=default
ApprovalRuleTemplate & WithCreationDate(CreationDateT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
const Aws::String & GetApprovalRuleTemplateId() const
const Aws::String & GetApprovalRuleTemplateContent() const
void SetApprovalRuleTemplateId(ApprovalRuleTemplateIdT &&value)
void SetLastModifiedUser(LastModifiedUserT &&value)
ApprovalRuleTemplate & WithApprovalRuleTemplateContent(ApprovalRuleTemplateContentT &&value)
ApprovalRuleTemplate & WithApprovalRuleTemplateDescription(ApprovalRuleTemplateDescriptionT &&value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetApprovalRuleTemplateDescription(ApprovalRuleTemplateDescriptionT &&value)
AWS_CODECOMMIT_API ApprovalRuleTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API ApprovalRuleTemplate(Aws::Utils::Json::JsonView jsonValue)
void SetApprovalRuleTemplateContent(ApprovalRuleTemplateContentT &&value)
ApprovalRuleTemplate & WithApprovalRuleTemplateId(ApprovalRuleTemplateIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue