/** * 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 an override event for approval rules for a pull * request.

See Also:

AWS * API Reference

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

The revision ID of the pull request when the override event occurred.

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

The revision ID of the pull request when the override event occurred.

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

The revision ID of the pull request when the override event occurred.

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

The revision ID of the pull request when the override event occurred.

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

The revision ID of the pull request when the override event occurred.

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

The revision ID of the pull request when the override event occurred.

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

The revision ID of the pull request when the override event occurred.

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

The revision ID of the pull request when the override event occurred.

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

The status of the override event.

*/ inline const OverrideStatus& GetOverrideStatus() const{ return m_overrideStatus; } /** *

The status of the override event.

*/ inline bool OverrideStatusHasBeenSet() const { return m_overrideStatusHasBeenSet; } /** *

The status of the override event.

*/ inline void SetOverrideStatus(const OverrideStatus& value) { m_overrideStatusHasBeenSet = true; m_overrideStatus = value; } /** *

The status of the override event.

*/ inline void SetOverrideStatus(OverrideStatus&& value) { m_overrideStatusHasBeenSet = true; m_overrideStatus = std::move(value); } /** *

The status of the override event.

*/ inline ApprovalRuleOverriddenEventMetadata& WithOverrideStatus(const OverrideStatus& value) { SetOverrideStatus(value); return *this;} /** *

The status of the override event.

*/ inline ApprovalRuleOverriddenEventMetadata& WithOverrideStatus(OverrideStatus&& value) { SetOverrideStatus(std::move(value)); return *this;} private: Aws::String m_revisionId; bool m_revisionIdHasBeenSet = false; OverrideStatus m_overrideStatus; bool m_overrideStatusHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws