/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { class UpdatePullRequestApprovalRuleContentResult { public: AWS_CODECOMMIT_API UpdatePullRequestApprovalRuleContentResult(); AWS_CODECOMMIT_API UpdatePullRequestApprovalRuleContentResult(const Aws::AmazonWebServiceResult& result); AWS_CODECOMMIT_API 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;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdatePullRequestApprovalRuleContentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdatePullRequestApprovalRuleContentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdatePullRequestApprovalRuleContentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ApprovalRule m_approvalRule; Aws::String m_requestId; }; } // namespace Model } // namespace CodeCommit } // namespace Aws