This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-iot/include/aws/iot/model/EffectivePolicy.h

178 lines
4.8 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot/IoT_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT
{
namespace Model
{
/**
* <p>The policy that has the effect on the authorization results.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/EffectivePolicy">AWS
* API Reference</a></p>
*/
class AWS_IOT_API EffectivePolicy
{
public:
EffectivePolicy();
EffectivePolicy(Aws::Utils::Json::JsonView jsonValue);
EffectivePolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The policy name.</p>
*/
inline const Aws::String& GetPolicyName() const{ return m_policyName; }
/**
* <p>The policy name.</p>
*/
inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
/**
* <p>The policy name.</p>
*/
inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
/**
* <p>The policy name.</p>
*/
inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
/**
* <p>The policy name.</p>
*/
inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
/**
* <p>The policy name.</p>
*/
inline EffectivePolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
/**
* <p>The policy name.</p>
*/
inline EffectivePolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
/**
* <p>The policy name.</p>
*/
inline EffectivePolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
/**
* <p>The policy ARN.</p>
*/
inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
/**
* <p>The policy ARN.</p>
*/
inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
/**
* <p>The policy ARN.</p>
*/
inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
/**
* <p>The policy ARN.</p>
*/
inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
/**
* <p>The policy ARN.</p>
*/
inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
/**
* <p>The policy ARN.</p>
*/
inline EffectivePolicy& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
/**
* <p>The policy ARN.</p>
*/
inline EffectivePolicy& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
/**
* <p>The policy ARN.</p>
*/
inline EffectivePolicy& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
/**
* <p>The IAM policy document.</p>
*/
inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
/**
* <p>The IAM policy document.</p>
*/
inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
/**
* <p>The IAM policy document.</p>
*/
inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
/**
* <p>The IAM policy document.</p>
*/
inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
/**
* <p>The IAM policy document.</p>
*/
inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
/**
* <p>The IAM policy document.</p>
*/
inline EffectivePolicy& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
/**
* <p>The IAM policy document.</p>
*/
inline EffectivePolicy& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
/**
* <p>The IAM policy document.</p>
*/
inline EffectivePolicy& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
private:
Aws::String m_policyName;
bool m_policyNameHasBeenSet;
Aws::String m_policyArn;
bool m_policyArnHasBeenSet;
Aws::String m_policyDocument;
bool m_policyDocumentHasBeenSet;
};
} // namespace Model
} // namespace IoT
} // namespace Aws