/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { /** *

Returns information about a change in the approval state for a pull * request.

See Also:

AWS * API Reference

*/ class ApprovalStateChangedEventMetadata { public: AWS_CODECOMMIT_API ApprovalStateChangedEventMetadata(); AWS_CODECOMMIT_API ApprovalStateChangedEventMetadata(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API ApprovalStateChangedEventMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The revision ID of the pull request when the approval state changed.

*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** *

The revision ID of the pull request when the approval state changed.

*/ inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; } /** *

The revision ID of the pull request when the approval state changed.

*/ inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; } /** *

The revision ID of the pull request when the approval state changed.

*/ inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); } /** *

The revision ID of the pull request when the approval state changed.

*/ inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); } /** *

The revision ID of the pull request when the approval state changed.

*/ inline ApprovalStateChangedEventMetadata& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** *

The revision ID of the pull request when the approval state changed.

*/ inline ApprovalStateChangedEventMetadata& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** *

The revision ID of the pull request when the approval state changed.

*/ inline ApprovalStateChangedEventMetadata& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} /** *

The approval status for the pull request.

*/ inline const ApprovalState& GetApprovalStatus() const{ return m_approvalStatus; } /** *

The approval status for the pull request.

*/ inline bool ApprovalStatusHasBeenSet() const { return m_approvalStatusHasBeenSet; } /** *

The approval status for the pull request.

*/ inline void SetApprovalStatus(const ApprovalState& value) { m_approvalStatusHasBeenSet = true; m_approvalStatus = value; } /** *

The approval status for the pull request.

*/ inline void SetApprovalStatus(ApprovalState&& value) { m_approvalStatusHasBeenSet = true; m_approvalStatus = std::move(value); } /** *

The approval status for the pull request.

*/ inline ApprovalStateChangedEventMetadata& WithApprovalStatus(const ApprovalState& value) { SetApprovalStatus(value); return *this;} /** *

The approval status for the pull request.

*/ inline ApprovalStateChangedEventMetadata& WithApprovalStatus(ApprovalState&& value) { SetApprovalStatus(std::move(value)); return *this;} private: Aws::String m_revisionId; bool m_revisionIdHasBeenSet = false; ApprovalState m_approvalStatus; bool m_approvalStatusHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws