/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns information about an approval rule.See Also:
AWS
* API Reference
The system-generated ID of the approval rule.
*/ inline const Aws::String& GetApprovalRuleId() const{ return m_approvalRuleId; } /** *The system-generated ID of the approval rule.
*/ inline bool ApprovalRuleIdHasBeenSet() const { return m_approvalRuleIdHasBeenSet; } /** *The system-generated ID of the approval rule.
*/ inline void SetApprovalRuleId(const Aws::String& value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId = value; } /** *The system-generated ID of the approval rule.
*/ inline void SetApprovalRuleId(Aws::String&& value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId = std::move(value); } /** *The system-generated ID of the approval rule.
*/ inline void SetApprovalRuleId(const char* value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId.assign(value); } /** *The system-generated ID of the approval rule.
*/ inline ApprovalRule& WithApprovalRuleId(const Aws::String& value) { SetApprovalRuleId(value); return *this;} /** *The system-generated ID of the approval rule.
*/ inline ApprovalRule& WithApprovalRuleId(Aws::String&& value) { SetApprovalRuleId(std::move(value)); return *this;} /** *The system-generated ID of the approval rule.
*/ inline ApprovalRule& WithApprovalRuleId(const char* value) { SetApprovalRuleId(value); return *this;} /** *The name of the approval rule.
*/ inline const Aws::String& GetApprovalRuleName() const{ return m_approvalRuleName; } /** *The name of the approval rule.
*/ inline bool ApprovalRuleNameHasBeenSet() const { return m_approvalRuleNameHasBeenSet; } /** *The name of the approval rule.
*/ inline void SetApprovalRuleName(const Aws::String& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = value; } /** *The name of the approval rule.
*/ inline void SetApprovalRuleName(Aws::String&& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = std::move(value); } /** *The name of the approval rule.
*/ inline void SetApprovalRuleName(const char* value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName.assign(value); } /** *The name of the approval rule.
*/ inline ApprovalRule& WithApprovalRuleName(const Aws::String& value) { SetApprovalRuleName(value); return *this;} /** *The name of the approval rule.
*/ inline ApprovalRule& WithApprovalRuleName(Aws::String&& value) { SetApprovalRuleName(std::move(value)); return *this;} /** *The name of the approval rule.
*/ inline ApprovalRule& WithApprovalRuleName(const char* value) { SetApprovalRuleName(value); return *this;} /** *The content of the approval rule.
*/ inline const Aws::String& GetApprovalRuleContent() const{ return m_approvalRuleContent; } /** *The content of the approval rule.
*/ inline bool ApprovalRuleContentHasBeenSet() const { return m_approvalRuleContentHasBeenSet; } /** *The content of the approval rule.
*/ inline void SetApprovalRuleContent(const Aws::String& value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent = value; } /** *The content of the approval rule.
*/ inline void SetApprovalRuleContent(Aws::String&& value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent = std::move(value); } /** *The content of the approval rule.
*/ inline void SetApprovalRuleContent(const char* value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent.assign(value); } /** *The content of the approval rule.
*/ inline ApprovalRule& WithApprovalRuleContent(const Aws::String& value) { SetApprovalRuleContent(value); return *this;} /** *The content of the approval rule.
*/ inline ApprovalRule& WithApprovalRuleContent(Aws::String&& value) { SetApprovalRuleContent(std::move(value)); return *this;} /** *The content of the approval rule.
*/ inline ApprovalRule& WithApprovalRuleContent(const char* value) { SetApprovalRuleContent(value); return *this;} /** *The SHA-256 hash signature for the content of the approval rule.
*/ inline const Aws::String& GetRuleContentSha256() const{ return m_ruleContentSha256; } /** *The SHA-256 hash signature for the content of the approval rule.
*/ inline bool RuleContentSha256HasBeenSet() const { return m_ruleContentSha256HasBeenSet; } /** *The SHA-256 hash signature for the content of the approval rule.
*/ inline void SetRuleContentSha256(const Aws::String& value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256 = value; } /** *The SHA-256 hash signature for the content of the approval rule.
*/ inline void SetRuleContentSha256(Aws::String&& value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256 = std::move(value); } /** *The SHA-256 hash signature for the content of the approval rule.
*/ inline void SetRuleContentSha256(const char* value) { m_ruleContentSha256HasBeenSet = true; m_ruleContentSha256.assign(value); } /** *The SHA-256 hash signature for the content of the approval rule.
*/ inline ApprovalRule& WithRuleContentSha256(const Aws::String& value) { SetRuleContentSha256(value); return *this;} /** *The SHA-256 hash signature for the content of the approval rule.
*/ inline ApprovalRule& WithRuleContentSha256(Aws::String&& value) { SetRuleContentSha256(std::move(value)); return *this;} /** *The SHA-256 hash signature for the content of the approval rule.
*/ inline ApprovalRule& WithRuleContentSha256(const char* value) { SetRuleContentSha256(value); return *this;} /** *The date the approval rule was most recently changed, in timestamp * format.
*/ inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *The date the approval rule was most recently changed, in timestamp * format.
*/ inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; } /** *The date the approval rule was most recently changed, in timestamp * format.
*/ inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; } /** *The date the approval rule was most recently changed, in timestamp * format.
*/ inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); } /** *The date the approval rule was most recently changed, in timestamp * format.
*/ inline ApprovalRule& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;} /** *The date the approval rule was most recently changed, in timestamp * format.
*/ inline ApprovalRule& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} /** *The date the approval rule was created, in timestamp format.
*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *The date the approval rule was created, in timestamp format.
*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *The date the approval rule was created, in timestamp format.
*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *The date the approval rule was created, in timestamp format.
*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *The date the approval rule was created, in timestamp format.
*/ inline ApprovalRule& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *The date the approval rule was created, in timestamp format.
*/ inline ApprovalRule& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the user who made the most recent changes * to the approval rule.
*/ inline const Aws::String& GetLastModifiedUser() const{ return m_lastModifiedUser; } /** *The Amazon Resource Name (ARN) of the user who made the most recent changes * to the approval rule.
*/ inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; } /** *The Amazon Resource Name (ARN) of the user who made the most recent changes * to the approval rule.
*/ inline void SetLastModifiedUser(const Aws::String& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = value; } /** *The Amazon Resource Name (ARN) of the user who made the most recent changes * to the approval rule.
*/ inline void SetLastModifiedUser(Aws::String&& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = std::move(value); } /** *The Amazon Resource Name (ARN) of the user who made the most recent changes * to the approval rule.
*/ inline void SetLastModifiedUser(const char* value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser.assign(value); } /** *The Amazon Resource Name (ARN) of the user who made the most recent changes * to the approval rule.
*/ inline ApprovalRule& WithLastModifiedUser(const Aws::String& value) { SetLastModifiedUser(value); return *this;} /** *The Amazon Resource Name (ARN) of the user who made the most recent changes * to the approval rule.
*/ inline ApprovalRule& WithLastModifiedUser(Aws::String&& value) { SetLastModifiedUser(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the user who made the most recent changes * to the approval rule.
*/ inline ApprovalRule& WithLastModifiedUser(const char* value) { SetLastModifiedUser(value); return *this;} /** *The approval rule template used to create the rule.
*/ inline const OriginApprovalRuleTemplate& GetOriginApprovalRuleTemplate() const{ return m_originApprovalRuleTemplate; } /** *The approval rule template used to create the rule.
*/ inline bool OriginApprovalRuleTemplateHasBeenSet() const { return m_originApprovalRuleTemplateHasBeenSet; } /** *The approval rule template used to create the rule.
*/ inline void SetOriginApprovalRuleTemplate(const OriginApprovalRuleTemplate& value) { m_originApprovalRuleTemplateHasBeenSet = true; m_originApprovalRuleTemplate = value; } /** *The approval rule template used to create the rule.
*/ inline void SetOriginApprovalRuleTemplate(OriginApprovalRuleTemplate&& value) { m_originApprovalRuleTemplateHasBeenSet = true; m_originApprovalRuleTemplate = std::move(value); } /** *The approval rule template used to create the rule.
*/ inline ApprovalRule& WithOriginApprovalRuleTemplate(const OriginApprovalRuleTemplate& value) { SetOriginApprovalRuleTemplate(value); return *this;} /** *The approval rule template used to create the rule.
*/ inline ApprovalRule& WithOriginApprovalRuleTemplate(OriginApprovalRuleTemplate&& value) { SetOriginApprovalRuleTemplate(std::move(value)); return *this;} private: Aws::String m_approvalRuleId; bool m_approvalRuleIdHasBeenSet = false; Aws::String m_approvalRuleName; bool m_approvalRuleNameHasBeenSet = false; Aws::String m_approvalRuleContent; bool m_approvalRuleContentHasBeenSet = false; Aws::String m_ruleContentSha256; bool m_ruleContentSha256HasBeenSet = false; Aws::Utils::DateTime m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::String m_lastModifiedUser; bool m_lastModifiedUserHasBeenSet = false; OriginApprovalRuleTemplate m_originApprovalRuleTemplate; bool m_originApprovalRuleTemplateHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws