AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
45 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
46 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
47 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
48 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
49 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
50 inline EffectivePolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
51 inline EffectivePolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
52 inline EffectivePolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
54
56
59 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
60 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
61 inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
62 inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
63 inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
64 inline EffectivePolicy& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
65 inline EffectivePolicy& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
66 inline EffectivePolicy& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
68
70
73 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
74 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
75 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
76 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
77 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
78 inline EffectivePolicy& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
79 inline EffectivePolicy& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
80 inline EffectivePolicy& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
82 private:
83
84 Aws::String m_policyName;
85 bool m_policyNameHasBeenSet = false;
86
87 Aws::String m_policyArn;
88 bool m_policyArnHasBeenSet = false;
89
90 Aws::String m_policyDocument;
91 bool m_policyDocumentHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace IoT
96} // namespace Aws
const Aws::String & GetPolicyName() const
AWS_IOT_API EffectivePolicy(Aws::Utils::Json::JsonView jsonValue)
EffectivePolicy & WithPolicyArn(Aws::String &&value)
EffectivePolicy & WithPolicyDocument(const char *value)
void SetPolicyDocument(const Aws::String &value)
EffectivePolicy & WithPolicyName(Aws::String &&value)
void SetPolicyDocument(Aws::String &&value)
void SetPolicyName(const Aws::String &value)
void SetPolicyArn(const char *value)
void SetPolicyArn(Aws::String &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
EffectivePolicy & WithPolicyDocument(Aws::String &&value)
EffectivePolicy & WithPolicyName(const Aws::String &value)
AWS_IOT_API EffectivePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPolicyDocument() const
EffectivePolicy & WithPolicyDocument(const Aws::String &value)
EffectivePolicy & WithPolicyName(const char *value)
EffectivePolicy & WithPolicyArn(const Aws::String &value)
void SetPolicyArn(const Aws::String &value)
void SetPolicyDocument(const char *value)
void SetPolicyName(Aws::String &&value)
const Aws::String & GetPolicyArn() const
EffectivePolicy & WithPolicyArn(const char *value)
void SetPolicyName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue