/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace VerifiedPermissions
{
namespace Model
{
/**
* Contains information about one of the policies that determined an
* authorization decision.
This data type is used as an element in a
* response parameter for the IsAuthorized
* and IsAuthorizedWithToken
* operations.
Example:
* "determiningPolicies":[{"policyId":"SPEXAMPLEabcdefg111111"}]
*
See Also:
AWS
* API Reference
*/
class DeterminingPolicyItem
{
public:
AWS_VERIFIEDPERMISSIONS_API DeterminingPolicyItem();
AWS_VERIFIEDPERMISSIONS_API DeterminingPolicyItem(Aws::Utils::Json::JsonView jsonValue);
AWS_VERIFIEDPERMISSIONS_API DeterminingPolicyItem& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The Id of a policy that determined to an authorization decision.
* Example: "policyId":"SPEXAMPLEabcdefg111111"
*/
inline const Aws::String& GetPolicyId() const{ return m_policyId; }
/**
* The Id of a policy that determined to an authorization decision.
* Example: "policyId":"SPEXAMPLEabcdefg111111"
*/
inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
/**
* The Id of a policy that determined to an authorization decision.
* Example: "policyId":"SPEXAMPLEabcdefg111111"
*/
inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
/**
* The Id of a policy that determined to an authorization decision.
* Example: "policyId":"SPEXAMPLEabcdefg111111"
*/
inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
/**
* The Id of a policy that determined to an authorization decision.
* Example: "policyId":"SPEXAMPLEabcdefg111111"
*/
inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
/**
* The Id of a policy that determined to an authorization decision.
* Example: "policyId":"SPEXAMPLEabcdefg111111"
*/
inline DeterminingPolicyItem& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
/**
* The Id of a policy that determined to an authorization decision.
* Example: "policyId":"SPEXAMPLEabcdefg111111"
*/
inline DeterminingPolicyItem& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
/**
* The Id of a policy that determined to an authorization decision.
* Example: "policyId":"SPEXAMPLEabcdefg111111"
*/
inline DeterminingPolicyItem& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
private:
Aws::String m_policyId;
bool m_policyIdHasBeenSet = false;
};
} // namespace Model
} // namespace VerifiedPermissions
} // namespace Aws