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>
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>
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>
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>
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>
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>
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>
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>
134 template<
typename OriginApprovalRuleTemplateT = OriginApprovalRuleTemplate>
135 void SetOriginApprovalRuleTemplate(OriginApprovalRuleTemplateT&& value) { m_originApprovalRuleTemplateHasBeenSet =
true; m_originApprovalRuleTemplate = std::forward<OriginApprovalRuleTemplateT>(value); }
136 template<
typename OriginApprovalRuleTemplateT = OriginApprovalRuleTemplate>
142 bool m_approvalRuleIdHasBeenSet =
false;
145 bool m_approvalRuleNameHasBeenSet =
false;
148 bool m_approvalRuleContentHasBeenSet =
false;
151 bool m_ruleContentSha256HasBeenSet =
false;
154 bool m_lastModifiedDateHasBeenSet =
false;
157 bool m_creationDateHasBeenSet =
false;
160 bool m_lastModifiedUserHasBeenSet =
false;
162 OriginApprovalRuleTemplate m_originApprovalRuleTemplate;
163 bool m_originApprovalRuleTemplateHasBeenSet =
false;
AWS_CODECOMMIT_API ApprovalRule()=default
void SetRuleContentSha256(RuleContentSha256T &&value)
ApprovalRule & WithApprovalRuleContent(ApprovalRuleContentT &&value)
AWS_CODECOMMIT_API ApprovalRule(Aws::Utils::Json::JsonView jsonValue)
bool RuleContentSha256HasBeenSet() const
void SetApprovalRuleId(ApprovalRuleIdT &&value)
void SetOriginApprovalRuleTemplate(OriginApprovalRuleTemplateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
bool OriginApprovalRuleTemplateHasBeenSet() 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)
bool CreationDateHasBeenSet() const
ApprovalRule & WithApprovalRuleId(ApprovalRuleIdT &&value)
AWS_CODECOMMIT_API ApprovalRule & operator=(Aws::Utils::Json::JsonView jsonValue)
ApprovalRule & WithLastModifiedDate(LastModifiedDateT &&value)
bool ApprovalRuleNameHasBeenSet() const
bool LastModifiedDateHasBeenSet() const
const OriginApprovalRuleTemplate & GetOriginApprovalRuleTemplate() const
const Aws::String & GetApprovalRuleContent() const
void SetApprovalRuleContent(ApprovalRuleContentT &&value)
bool ApprovalRuleContentHasBeenSet() const
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)
bool LastModifiedUserHasBeenSet() const
bool ApprovalRuleIdHasBeenSet() const
ApprovalRule & WithApprovalRuleName(ApprovalRuleNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue