/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { class AWS_CODECOMMIT_API UpdatePullRequestApprovalRuleContentResult { public: UpdatePullRequestApprovalRuleContentResult(); UpdatePullRequestApprovalRuleContentResult(const Aws::AmazonWebServiceResult& result); UpdatePullRequestApprovalRuleContentResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the updated approval rule.

*/ inline const ApprovalRule& GetApprovalRule() const{ return m_approvalRule; } /** *

Information about the updated approval rule.

*/ inline void SetApprovalRule(const ApprovalRule& value) { m_approvalRule = value; } /** *

Information about the updated approval rule.

*/ inline void SetApprovalRule(ApprovalRule&& value) { m_approvalRule = std::move(value); } /** *

Information about the updated approval rule.

*/ inline UpdatePullRequestApprovalRuleContentResult& WithApprovalRule(const ApprovalRule& value) { SetApprovalRule(value); return *this;} /** *

Information about the updated approval rule.

*/ inline UpdatePullRequestApprovalRuleContentResult& WithApprovalRule(ApprovalRule&& value) { SetApprovalRule(std::move(value)); return *this;} private: ApprovalRule m_approvalRule; }; } // namespace Model } // namespace CodeCommit } // namespace Aws