AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EffectivePolicy.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IOT_API EffectivePolicy() = default;
39
40
42
45 inline const Aws::String& GetPolicyName() const { return m_policyName; }
46 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
47 template<typename PolicyNameT = Aws::String>
48 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
49 template<typename PolicyNameT = Aws::String>
50 EffectivePolicy& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
58 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
59 template<typename PolicyArnT = Aws::String>
60 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
61 template<typename PolicyArnT = Aws::String>
62 EffectivePolicy& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
64
66
69 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
70 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
71 template<typename PolicyDocumentT = Aws::String>
72 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
73 template<typename PolicyDocumentT = Aws::String>
74 EffectivePolicy& WithPolicyDocument(PolicyDocumentT&& value) { SetPolicyDocument(std::forward<PolicyDocumentT>(value)); return *this;}
76 private:
77
78 Aws::String m_policyName;
79 bool m_policyNameHasBeenSet = false;
80
81 Aws::String m_policyArn;
82 bool m_policyArnHasBeenSet = false;
83
84 Aws::String m_policyDocument;
85 bool m_policyDocumentHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace IoT
90} // namespace Aws
const Aws::String & GetPolicyName() const
AWS_IOT_API EffectivePolicy(Aws::Utils::Json::JsonView jsonValue)
EffectivePolicy & WithPolicyArn(PolicyArnT &&value)
EffectivePolicy & WithPolicyDocument(PolicyDocumentT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPolicyName(PolicyNameT &&value)
void SetPolicyDocument(PolicyDocumentT &&value)
AWS_IOT_API EffectivePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPolicyDocument() const
AWS_IOT_API EffectivePolicy()=default
EffectivePolicy & WithPolicyName(PolicyNameT &&value)
const Aws::String & GetPolicyArn() const
void SetPolicyArn(PolicyArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue