/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns information about an event for an approval rule.See
* Also:
AWS
* API Reference
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 ApprovalRuleEventMetadata& WithApprovalRuleName(const Aws::String& value) { SetApprovalRuleName(value); return *this;} /** *The name of the approval rule.
*/ inline ApprovalRuleEventMetadata& WithApprovalRuleName(Aws::String&& value) { SetApprovalRuleName(std::move(value)); return *this;} /** *The name of the approval rule.
*/ inline ApprovalRuleEventMetadata& WithApprovalRuleName(const char* value) { SetApprovalRuleName(value); return *this;} /** *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 ApprovalRuleEventMetadata& WithApprovalRuleId(const Aws::String& value) { SetApprovalRuleId(value); return *this;} /** *The system-generated ID of the approval rule.
*/ inline ApprovalRuleEventMetadata& WithApprovalRuleId(Aws::String&& value) { SetApprovalRuleId(std::move(value)); return *this;} /** *The system-generated ID of the approval rule.
*/ inline ApprovalRuleEventMetadata& WithApprovalRuleId(const char* value) { SetApprovalRuleId(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 ApprovalRuleEventMetadata& WithApprovalRuleContent(const Aws::String& value) { SetApprovalRuleContent(value); return *this;} /** *The content of the approval rule.
*/ inline ApprovalRuleEventMetadata& WithApprovalRuleContent(Aws::String&& value) { SetApprovalRuleContent(std::move(value)); return *this;} /** *The content of the approval rule.
*/ inline ApprovalRuleEventMetadata& WithApprovalRuleContent(const char* value) { SetApprovalRuleContent(value); return *this;} private: Aws::String m_approvalRuleName; bool m_approvalRuleNameHasBeenSet = false; Aws::String m_approvalRuleId; bool m_approvalRuleIdHasBeenSet = false; Aws::String m_approvalRuleContent; bool m_approvalRuleContentHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws