/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about an action for a request for which an authorization
* decision is made. This data type is used as an request parameter to the
* IsAuthorized
* and IsAuthorizedWithToken
* operations. Example: { "actionId": "<action name>",
* "actionType": "Action" }
See Also:
AWS
* API Reference
The type of an action.
*/ inline const Aws::String& GetActionType() const{ return m_actionType; } /** *The type of an action.
*/ inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; } /** *The type of an action.
*/ inline void SetActionType(const Aws::String& value) { m_actionTypeHasBeenSet = true; m_actionType = value; } /** *The type of an action.
*/ inline void SetActionType(Aws::String&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); } /** *The type of an action.
*/ inline void SetActionType(const char* value) { m_actionTypeHasBeenSet = true; m_actionType.assign(value); } /** *The type of an action.
*/ inline ActionIdentifier& WithActionType(const Aws::String& value) { SetActionType(value); return *this;} /** *The type of an action.
*/ inline ActionIdentifier& WithActionType(Aws::String&& value) { SetActionType(std::move(value)); return *this;} /** *The type of an action.
*/ inline ActionIdentifier& WithActionType(const char* value) { SetActionType(value); return *this;} /** *The ID of an action.
*/ inline const Aws::String& GetActionId() const{ return m_actionId; } /** *The ID of an action.
*/ inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; } /** *The ID of an action.
*/ inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; } /** *The ID of an action.
*/ inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); } /** *The ID of an action.
*/ inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); } /** *The ID of an action.
*/ inline ActionIdentifier& WithActionId(const Aws::String& value) { SetActionId(value); return *this;} /** *The ID of an action.
*/ inline ActionIdentifier& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;} /** *The ID of an action.
*/ inline ActionIdentifier& WithActionId(const char* value) { SetActionId(value); return *this;} private: Aws::String m_actionType; bool m_actionTypeHasBeenSet = false; Aws::String m_actionId; bool m_actionIdHasBeenSet = false; }; } // namespace Model } // namespace VerifiedPermissions } // namespace Aws