/** * 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 information about an action that occurred for a resource and * produced a policy finding.

See Also:

AWS * API Reference

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

The type of action that occurred for the affected resource. This value is * typically AWS_API_CALL, which indicates that an entity invoked an API operation * for the resource.

*/ inline const FindingActionType& GetActionType() const{ return m_actionType; } /** *

The type of action that occurred for the affected resource. This value is * typically AWS_API_CALL, which indicates that an entity invoked an API operation * for the resource.

*/ inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; } /** *

The type of action that occurred for the affected resource. This value is * typically AWS_API_CALL, which indicates that an entity invoked an API operation * for the resource.

*/ inline void SetActionType(const FindingActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; } /** *

The type of action that occurred for the affected resource. This value is * typically AWS_API_CALL, which indicates that an entity invoked an API operation * for the resource.

*/ inline void SetActionType(FindingActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); } /** *

The type of action that occurred for the affected resource. This value is * typically AWS_API_CALL, which indicates that an entity invoked an API operation * for the resource.

*/ inline FindingAction& WithActionType(const FindingActionType& value) { SetActionType(value); return *this;} /** *

The type of action that occurred for the affected resource. This value is * typically AWS_API_CALL, which indicates that an entity invoked an API operation * for the resource.

*/ inline FindingAction& WithActionType(FindingActionType&& value) { SetActionType(std::move(value)); return *this;} /** *

The invocation details of the API operation that an entity invoked for the * affected resource, if the value for the actionType property is AWS_API_CALL.

*/ inline const ApiCallDetails& GetApiCallDetails() const{ return m_apiCallDetails; } /** *

The invocation details of the API operation that an entity invoked for the * affected resource, if the value for the actionType property is AWS_API_CALL.

*/ inline bool ApiCallDetailsHasBeenSet() const { return m_apiCallDetailsHasBeenSet; } /** *

The invocation details of the API operation that an entity invoked for the * affected resource, if the value for the actionType property is AWS_API_CALL.

*/ inline void SetApiCallDetails(const ApiCallDetails& value) { m_apiCallDetailsHasBeenSet = true; m_apiCallDetails = value; } /** *

The invocation details of the API operation that an entity invoked for the * affected resource, if the value for the actionType property is AWS_API_CALL.

*/ inline void SetApiCallDetails(ApiCallDetails&& value) { m_apiCallDetailsHasBeenSet = true; m_apiCallDetails = std::move(value); } /** *

The invocation details of the API operation that an entity invoked for the * affected resource, if the value for the actionType property is AWS_API_CALL.

*/ inline FindingAction& WithApiCallDetails(const ApiCallDetails& value) { SetApiCallDetails(value); return *this;} /** *

The invocation details of the API operation that an entity invoked for the * affected resource, if the value for the actionType property is AWS_API_CALL.

*/ inline FindingAction& WithApiCallDetails(ApiCallDetails&& value) { SetApiCallDetails(std::move(value)); return *this;} private: FindingActionType m_actionType; bool m_actionTypeHasBeenSet = false; ApiCallDetails m_apiCallDetails; bool m_apiCallDetailsHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws