AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ApprovalRuleTemplateIdT = Aws::String>
49 void SetApprovalRuleTemplateId(ApprovalRuleTemplateIdT&& value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId = std::forward<ApprovalRuleTemplateIdT>(value); }
50 template<typename ApprovalRuleTemplateIdT = Aws::String>
51 ApprovalRuleTemplate& WithApprovalRuleTemplateId(ApprovalRuleTemplateIdT&& value) { SetApprovalRuleTemplateId(std::forward<ApprovalRuleTemplateIdT>(value)); return *this;}
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) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = std::forward<ApprovalRuleTemplateNameT>(value); }
62 template<typename ApprovalRuleTemplateNameT = Aws::String>
63 ApprovalRuleTemplate& WithApprovalRuleTemplateName(ApprovalRuleTemplateNameT&& value) { SetApprovalRuleTemplateName(std::forward<ApprovalRuleTemplateNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetApprovalRuleTemplateDescription() const { return m_approvalRuleTemplateDescription; }
71 inline bool ApprovalRuleTemplateDescriptionHasBeenSet() const { return m_approvalRuleTemplateDescriptionHasBeenSet; }
72 template<typename ApprovalRuleTemplateDescriptionT = Aws::String>
73 void SetApprovalRuleTemplateDescription(ApprovalRuleTemplateDescriptionT&& value) { m_approvalRuleTemplateDescriptionHasBeenSet = true; m_approvalRuleTemplateDescription = std::forward<ApprovalRuleTemplateDescriptionT>(value); }
74 template<typename ApprovalRuleTemplateDescriptionT = Aws::String>
75 ApprovalRuleTemplate& WithApprovalRuleTemplateDescription(ApprovalRuleTemplateDescriptionT&& value) { SetApprovalRuleTemplateDescription(std::forward<ApprovalRuleTemplateDescriptionT>(value)); return *this;}
77
79
82 inline const Aws::String& GetApprovalRuleTemplateContent() const { return m_approvalRuleTemplateContent; }
83 inline bool ApprovalRuleTemplateContentHasBeenSet() const { return m_approvalRuleTemplateContentHasBeenSet; }
84 template<typename ApprovalRuleTemplateContentT = Aws::String>
85 void SetApprovalRuleTemplateContent(ApprovalRuleTemplateContentT&& value) { m_approvalRuleTemplateContentHasBeenSet = true; m_approvalRuleTemplateContent = std::forward<ApprovalRuleTemplateContentT>(value); }
86 template<typename ApprovalRuleTemplateContentT = Aws::String>
87 ApprovalRuleTemplate& WithApprovalRuleTemplateContent(ApprovalRuleTemplateContentT&& value) { SetApprovalRuleTemplateContent(std::forward<ApprovalRuleTemplateContentT>(value)); return *this;}
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) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256 = std::forward<RuleContentSha256T>(value); }
98 template<typename RuleContentSha256T = Aws::String>
99 ApprovalRuleTemplate& WithRuleContentSha256(RuleContentSha256T&& value) { SetRuleContentSha256(std::forward<RuleContentSha256T>(value)); return *this;}
101
103
107 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
108 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
109 template<typename LastModifiedDateT = Aws::Utils::DateTime>
110 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
111 template<typename LastModifiedDateT = Aws::Utils::DateTime>
112 ApprovalRuleTemplate& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
120 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
121 template<typename CreationDateT = Aws::Utils::DateTime>
122 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
123 template<typename CreationDateT = Aws::Utils::DateTime>
124 ApprovalRuleTemplate& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
126
128
132 inline const Aws::String& GetLastModifiedUser() const { return m_lastModifiedUser; }
133 inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
134 template<typename LastModifiedUserT = Aws::String>
135 void SetLastModifiedUser(LastModifiedUserT&& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = std::forward<LastModifiedUserT>(value); }
136 template<typename LastModifiedUserT = Aws::String>
137 ApprovalRuleTemplate& WithLastModifiedUser(LastModifiedUserT&& value) { SetLastModifiedUser(std::forward<LastModifiedUserT>(value)); return *this;}
139 private:
140
141 Aws::String m_approvalRuleTemplateId;
142 bool m_approvalRuleTemplateIdHasBeenSet = false;
143
144 Aws::String m_approvalRuleTemplateName;
145 bool m_approvalRuleTemplateNameHasBeenSet = false;
146
147 Aws::String m_approvalRuleTemplateDescription;
148 bool m_approvalRuleTemplateDescriptionHasBeenSet = false;
149
150 Aws::String m_approvalRuleTemplateContent;
151 bool m_approvalRuleTemplateContentHasBeenSet = false;
152
153 Aws::String m_ruleContentSha256;
154 bool m_ruleContentSha256HasBeenSet = false;
155
156 Aws::Utils::DateTime m_lastModifiedDate{};
157 bool m_lastModifiedDateHasBeenSet = false;
158
159 Aws::Utils::DateTime m_creationDate{};
160 bool m_creationDateHasBeenSet = false;
161
162 Aws::String m_lastModifiedUser;
163 bool m_lastModifiedUserHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace CodeCommit
168} // 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