/** * 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 Macie2 { namespace Model { /** *

Provides the details of a policy finding.

See Also:

AWS * API Reference

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

The action that produced the finding.

*/ inline const FindingAction& GetAction() const{ return m_action; } /** *

The action that produced the finding.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The action that produced the finding.

*/ inline void SetAction(const FindingAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The action that produced the finding.

*/ inline void SetAction(FindingAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The action that produced the finding.

*/ inline PolicyDetails& WithAction(const FindingAction& value) { SetAction(value); return *this;} /** *

The action that produced the finding.

*/ inline PolicyDetails& WithAction(FindingAction&& value) { SetAction(std::move(value)); return *this;} /** *

The entity that performed the action that produced the finding.

*/ inline const FindingActor& GetActor() const{ return m_actor; } /** *

The entity that performed the action that produced the finding.

*/ inline bool ActorHasBeenSet() const { return m_actorHasBeenSet; } /** *

The entity that performed the action that produced the finding.

*/ inline void SetActor(const FindingActor& value) { m_actorHasBeenSet = true; m_actor = value; } /** *

The entity that performed the action that produced the finding.

*/ inline void SetActor(FindingActor&& value) { m_actorHasBeenSet = true; m_actor = std::move(value); } /** *

The entity that performed the action that produced the finding.

*/ inline PolicyDetails& WithActor(const FindingActor& value) { SetActor(value); return *this;} /** *

The entity that performed the action that produced the finding.

*/ inline PolicyDetails& WithActor(FindingActor&& value) { SetActor(std::move(value)); return *this;} private: FindingAction m_action; bool m_actionHasBeenSet = false; FindingActor m_actor; bool m_actorHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws