/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The policy that has the effect on the authorization results.See
* Also:
AWS
* API Reference
The policy name.
*/ inline const Aws::String& GetPolicyName() const{ return m_policyName; } /** *The policy name.
*/ inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; } /** *The policy name.
*/ inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; } /** *The policy name.
*/ inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); } /** *The policy name.
*/ inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); } /** *The policy name.
*/ inline EffectivePolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;} /** *The policy name.
*/ inline EffectivePolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;} /** *The policy name.
*/ inline EffectivePolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;} /** *The policy ARN.
*/ inline const Aws::String& GetPolicyArn() const{ return m_policyArn; } /** *The policy ARN.
*/ inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; } /** *The policy ARN.
*/ inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; } /** *The policy ARN.
*/ inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); } /** *The policy ARN.
*/ inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); } /** *The policy ARN.
*/ inline EffectivePolicy& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;} /** *The policy ARN.
*/ inline EffectivePolicy& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;} /** *The policy ARN.
*/ inline EffectivePolicy& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;} /** *The IAM policy document.
*/ inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; } /** *The IAM policy document.
*/ inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; } /** *The IAM policy document.
*/ inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; } /** *The IAM policy document.
*/ inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); } /** *The IAM policy document.
*/ inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); } /** *The IAM policy document.
*/ inline EffectivePolicy& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;} /** *The IAM policy document.
*/ inline EffectivePolicy& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;} /** *The IAM policy document.
*/ inline EffectivePolicy& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;} private: Aws::String m_policyName; bool m_policyNameHasBeenSet = false; Aws::String m_policyArn; bool m_policyArnHasBeenSet = false; Aws::String m_policyDocument; bool m_policyDocumentHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws