AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ApprovalRuleIdT = Aws::String>
49 void SetApprovalRuleId(ApprovalRuleIdT&& value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId = std::forward<ApprovalRuleIdT>(value); }
50 template<typename ApprovalRuleIdT = Aws::String>
51 ApprovalRule& WithApprovalRuleId(ApprovalRuleIdT&& value) { SetApprovalRuleId(std::forward<ApprovalRuleIdT>(value)); return *this;}
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) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = std::forward<ApprovalRuleNameT>(value); }
62 template<typename ApprovalRuleNameT = Aws::String>
63 ApprovalRule& WithApprovalRuleName(ApprovalRuleNameT&& value) { SetApprovalRuleName(std::forward<ApprovalRuleNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetApprovalRuleContent() const { return m_approvalRuleContent; }
71 inline bool ApprovalRuleContentHasBeenSet() const { return m_approvalRuleContentHasBeenSet; }
72 template<typename ApprovalRuleContentT = Aws::String>
73 void SetApprovalRuleContent(ApprovalRuleContentT&& value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent = std::forward<ApprovalRuleContentT>(value); }
74 template<typename ApprovalRuleContentT = Aws::String>
75 ApprovalRule& WithApprovalRuleContent(ApprovalRuleContentT&& value) { SetApprovalRuleContent(std::forward<ApprovalRuleContentT>(value)); return *this;}
77
79
82 inline const Aws::String& GetRuleContentSha256() const { return m_ruleContentSha256; }
83 inline bool RuleContentSha256HasBeenSet() const { return m_ruleContentSha256HasBeenSet; }
84 template<typename RuleContentSha256T = Aws::String>
85 void SetRuleContentSha256(RuleContentSha256T&& value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256 = std::forward<RuleContentSha256T>(value); }
86 template<typename RuleContentSha256T = Aws::String>
87 ApprovalRule& WithRuleContentSha256(RuleContentSha256T&& value) { SetRuleContentSha256(std::forward<RuleContentSha256T>(value)); return *this;}
89
91
95 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
96 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
97 template<typename LastModifiedDateT = Aws::Utils::DateTime>
98 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
99 template<typename LastModifiedDateT = Aws::Utils::DateTime>
100 ApprovalRule& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
108 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
109 template<typename CreationDateT = Aws::Utils::DateTime>
110 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
111 template<typename CreationDateT = Aws::Utils::DateTime>
112 ApprovalRule& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
114
116
120 inline const Aws::String& GetLastModifiedUser() const { return m_lastModifiedUser; }
121 inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
122 template<typename LastModifiedUserT = Aws::String>
123 void SetLastModifiedUser(LastModifiedUserT&& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = std::forward<LastModifiedUserT>(value); }
124 template<typename LastModifiedUserT = Aws::String>
125 ApprovalRule& WithLastModifiedUser(LastModifiedUserT&& value) { SetLastModifiedUser(std::forward<LastModifiedUserT>(value)); return *this;}
127
129
132 inline const OriginApprovalRuleTemplate& GetOriginApprovalRuleTemplate() const { return m_originApprovalRuleTemplate; }
133 inline bool OriginApprovalRuleTemplateHasBeenSet() const { return m_originApprovalRuleTemplateHasBeenSet; }
134 template<typename OriginApprovalRuleTemplateT = OriginApprovalRuleTemplate>
135 void SetOriginApprovalRuleTemplate(OriginApprovalRuleTemplateT&& value) { m_originApprovalRuleTemplateHasBeenSet = true; m_originApprovalRuleTemplate = std::forward<OriginApprovalRuleTemplateT>(value); }
136 template<typename OriginApprovalRuleTemplateT = OriginApprovalRuleTemplate>
137 ApprovalRule& WithOriginApprovalRuleTemplate(OriginApprovalRuleTemplateT&& value) { SetOriginApprovalRuleTemplate(std::forward<OriginApprovalRuleTemplateT>(value)); return *this;}
139 private:
140
141 Aws::String m_approvalRuleId;
142 bool m_approvalRuleIdHasBeenSet = false;
143
144 Aws::String m_approvalRuleName;
145 bool m_approvalRuleNameHasBeenSet = false;
146
147 Aws::String m_approvalRuleContent;
148 bool m_approvalRuleContentHasBeenSet = false;
149
150 Aws::String m_ruleContentSha256;
151 bool m_ruleContentSha256HasBeenSet = false;
152
153 Aws::Utils::DateTime m_lastModifiedDate{};
154 bool m_lastModifiedDateHasBeenSet = false;
155
156 Aws::Utils::DateTime m_creationDate{};
157 bool m_creationDateHasBeenSet = false;
158
159 Aws::String m_lastModifiedUser;
160 bool m_lastModifiedUserHasBeenSet = false;
161
162 OriginApprovalRuleTemplate m_originApprovalRuleTemplate;
163 bool m_originApprovalRuleTemplateHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace CodeCommit
168} // 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