AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApprovalRuleTemplate.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODECOMMIT_API ApprovalRuleTemplate();
37 AWS_CODECOMMIT_API ApprovalRuleTemplate(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetApprovalRuleTemplateId() const{ return m_approvalRuleTemplateId; }
47 inline bool ApprovalRuleTemplateIdHasBeenSet() const { return m_approvalRuleTemplateIdHasBeenSet; }
48 inline void SetApprovalRuleTemplateId(const Aws::String& value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId = value; }
49 inline void SetApprovalRuleTemplateId(Aws::String&& value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId = std::move(value); }
50 inline void SetApprovalRuleTemplateId(const char* value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId.assign(value); }
52 inline ApprovalRuleTemplate& WithApprovalRuleTemplateId(Aws::String&& value) { SetApprovalRuleTemplateId(std::move(value)); return *this;}
53 inline ApprovalRuleTemplate& WithApprovalRuleTemplateId(const char* value) { SetApprovalRuleTemplateId(value); return *this;}
55
57
60 inline const Aws::String& GetApprovalRuleTemplateName() const{ return m_approvalRuleTemplateName; }
61 inline bool ApprovalRuleTemplateNameHasBeenSet() const { return m_approvalRuleTemplateNameHasBeenSet; }
62 inline void SetApprovalRuleTemplateName(const Aws::String& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = value; }
63 inline void SetApprovalRuleTemplateName(Aws::String&& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = std::move(value); }
64 inline void SetApprovalRuleTemplateName(const char* value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName.assign(value); }
67 inline ApprovalRuleTemplate& WithApprovalRuleTemplateName(const char* value) { SetApprovalRuleTemplateName(value); return *this;}
69
71
74 inline const Aws::String& GetApprovalRuleTemplateDescription() const{ return m_approvalRuleTemplateDescription; }
75 inline bool ApprovalRuleTemplateDescriptionHasBeenSet() const { return m_approvalRuleTemplateDescriptionHasBeenSet; }
76 inline void SetApprovalRuleTemplateDescription(const Aws::String& value) { m_approvalRuleTemplateDescriptionHasBeenSet = true; m_approvalRuleTemplateDescription = value; }
77 inline void SetApprovalRuleTemplateDescription(Aws::String&& value) { m_approvalRuleTemplateDescriptionHasBeenSet = true; m_approvalRuleTemplateDescription = std::move(value); }
78 inline void SetApprovalRuleTemplateDescription(const char* value) { m_approvalRuleTemplateDescriptionHasBeenSet = true; m_approvalRuleTemplateDescription.assign(value); }
83
85
88 inline const Aws::String& GetApprovalRuleTemplateContent() const{ return m_approvalRuleTemplateContent; }
89 inline bool ApprovalRuleTemplateContentHasBeenSet() const { return m_approvalRuleTemplateContentHasBeenSet; }
90 inline void SetApprovalRuleTemplateContent(const Aws::String& value) { m_approvalRuleTemplateContentHasBeenSet = true; m_approvalRuleTemplateContent = value; }
91 inline void SetApprovalRuleTemplateContent(Aws::String&& value) { m_approvalRuleTemplateContentHasBeenSet = true; m_approvalRuleTemplateContent = std::move(value); }
92 inline void SetApprovalRuleTemplateContent(const char* value) { m_approvalRuleTemplateContentHasBeenSet = true; m_approvalRuleTemplateContent.assign(value); }
97
99
102 inline const Aws::String& GetRuleContentSha256() const{ return m_ruleContentSha256; }
103 inline bool RuleContentSha256HasBeenSet() const { return m_ruleContentSha256HasBeenSet; }
104 inline void SetRuleContentSha256(const Aws::String& value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256 = value; }
105 inline void SetRuleContentSha256(Aws::String&& value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256 = std::move(value); }
106 inline void SetRuleContentSha256(const char* value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256.assign(value); }
107 inline ApprovalRuleTemplate& WithRuleContentSha256(const Aws::String& value) { SetRuleContentSha256(value); return *this;}
108 inline ApprovalRuleTemplate& WithRuleContentSha256(Aws::String&& value) { SetRuleContentSha256(std::move(value)); return *this;}
109 inline ApprovalRuleTemplate& WithRuleContentSha256(const char* value) { SetRuleContentSha256(value); return *this;}
111
113
117 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
118 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
119 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
120 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
122 inline ApprovalRuleTemplate& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
130 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
131 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
132 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
133 inline ApprovalRuleTemplate& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
134 inline ApprovalRuleTemplate& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
136
138
142 inline const Aws::String& GetLastModifiedUser() const{ return m_lastModifiedUser; }
143 inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
144 inline void SetLastModifiedUser(const Aws::String& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = value; }
145 inline void SetLastModifiedUser(Aws::String&& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = std::move(value); }
146 inline void SetLastModifiedUser(const char* value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser.assign(value); }
147 inline ApprovalRuleTemplate& WithLastModifiedUser(const Aws::String& value) { SetLastModifiedUser(value); return *this;}
148 inline ApprovalRuleTemplate& WithLastModifiedUser(Aws::String&& value) { SetLastModifiedUser(std::move(value)); return *this;}
149 inline ApprovalRuleTemplate& WithLastModifiedUser(const char* value) { SetLastModifiedUser(value); return *this;}
151 private:
152
153 Aws::String m_approvalRuleTemplateId;
154 bool m_approvalRuleTemplateIdHasBeenSet = false;
155
156 Aws::String m_approvalRuleTemplateName;
157 bool m_approvalRuleTemplateNameHasBeenSet = false;
158
159 Aws::String m_approvalRuleTemplateDescription;
160 bool m_approvalRuleTemplateDescriptionHasBeenSet = false;
161
162 Aws::String m_approvalRuleTemplateContent;
163 bool m_approvalRuleTemplateContentHasBeenSet = false;
164
165 Aws::String m_ruleContentSha256;
166 bool m_ruleContentSha256HasBeenSet = false;
167
168 Aws::Utils::DateTime m_lastModifiedDate;
169 bool m_lastModifiedDateHasBeenSet = false;
170
171 Aws::Utils::DateTime m_creationDate;
172 bool m_creationDateHasBeenSet = false;
173
174 Aws::String m_lastModifiedUser;
175 bool m_lastModifiedUserHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace CodeCommit
180} // namespace Aws
ApprovalRuleTemplate & WithApprovalRuleTemplateDescription(Aws::String &&value)
ApprovalRuleTemplate & WithLastModifiedDate(Aws::Utils::DateTime &&value)
ApprovalRuleTemplate & WithApprovalRuleTemplateName(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationDate() const
ApprovalRuleTemplate & WithLastModifiedUser(const char *value)
void SetApprovalRuleTemplateName(const Aws::String &value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
ApprovalRuleTemplate & WithApprovalRuleTemplateDescription(const Aws::String &value)
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
ApprovalRuleTemplate & WithLastModifiedUser(Aws::String &&value)
ApprovalRuleTemplate & WithRuleContentSha256(const char *value)
const Aws::String & GetApprovalRuleTemplateName() const
ApprovalRuleTemplate & WithLastModifiedDate(const Aws::Utils::DateTime &value)
const Aws::String & GetApprovalRuleTemplateDescription() const
ApprovalRuleTemplate & WithLastModifiedUser(const Aws::String &value)
ApprovalRuleTemplate & WithCreationDate(Aws::Utils::DateTime &&value)
ApprovalRuleTemplate & WithRuleContentSha256(const Aws::String &value)
void SetApprovalRuleTemplateContent(const Aws::String &value)
ApprovalRuleTemplate & WithApprovalRuleTemplateDescription(const char *value)
ApprovalRuleTemplate & WithCreationDate(const Aws::Utils::DateTime &value)
ApprovalRuleTemplate & WithApprovalRuleTemplateName(const Aws::String &value)
ApprovalRuleTemplate & WithApprovalRuleTemplateContent(const Aws::String &value)
const Aws::String & GetApprovalRuleTemplateId() const
const Aws::String & GetApprovalRuleTemplateContent() const
ApprovalRuleTemplate & WithApprovalRuleTemplateContent(Aws::String &&value)
ApprovalRuleTemplate & WithApprovalRuleTemplateContent(const char *value)
ApprovalRuleTemplate & WithApprovalRuleTemplateId(Aws::String &&value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
ApprovalRuleTemplate & WithApprovalRuleTemplateId(const Aws::String &value)
AWS_CODECOMMIT_API ApprovalRuleTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
ApprovalRuleTemplate & WithApprovalRuleTemplateId(const char *value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
void SetApprovalRuleTemplateDescription(const Aws::String &value)
void SetCreationDate(Aws::Utils::DateTime &&value)
ApprovalRuleTemplate & WithRuleContentSha256(Aws::String &&value)
void SetApprovalRuleTemplateId(const Aws::String &value)
AWS_CODECOMMIT_API ApprovalRuleTemplate(Aws::Utils::Json::JsonView jsonValue)
void SetRuleContentSha256(const Aws::String &value)
void SetLastModifiedUser(const Aws::String &value)
void SetApprovalRuleTemplateDescription(Aws::String &&value)
ApprovalRuleTemplate & WithApprovalRuleTemplateName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue