AWS SDK for C++  1.9.123
AWS SDK for C++
EffectivePolicy.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
45 
49  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
50 
54  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
55 
59  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
60 
64  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
65 
69  inline EffectivePolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
70 
74  inline EffectivePolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
75 
79  inline EffectivePolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
80 
81 
85  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
86 
90  inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
91 
95  inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
96 
100  inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
101 
105  inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
106 
110  inline EffectivePolicy& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
111 
115  inline EffectivePolicy& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
116 
120  inline EffectivePolicy& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
121 
122 
126  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
127 
131  inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
132 
136  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
137 
141  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
142 
146  inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
147 
151  inline EffectivePolicy& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
152 
156  inline EffectivePolicy& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
157 
161  inline EffectivePolicy& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
162 
163  private:
164 
165  Aws::String m_policyName;
166  bool m_policyNameHasBeenSet;
167 
168  Aws::String m_policyArn;
169  bool m_policyArnHasBeenSet;
170 
171  Aws::String m_policyDocument;
172  bool m_policyDocumentHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace IoT
177 } // namespace Aws
Aws::IoT::Model::EffectivePolicy::operator=
EffectivePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::EffectivePolicy::SetPolicyArn
void SetPolicyArn(Aws::String &&value)
Definition: EffectivePolicy.h:100
Aws::IoT::Model::EffectivePolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::EffectivePolicy::EffectivePolicy
EffectivePolicy()
Aws::IoT::Model::EffectivePolicy::GetPolicyArn
const Aws::String & GetPolicyArn() const
Definition: EffectivePolicy.h:85
Aws::IoT::Model::EffectivePolicy::SetPolicyDocument
void SetPolicyDocument(const char *value)
Definition: EffectivePolicy.h:146
Aws::IoT::Model::EffectivePolicy::WithPolicyDocument
EffectivePolicy & WithPolicyDocument(const Aws::String &value)
Definition: EffectivePolicy.h:151
Aws::IoT::Model::EffectivePolicy::WithPolicyArn
EffectivePolicy & WithPolicyArn(Aws::String &&value)
Definition: EffectivePolicy.h:115
Aws::IoT::Model::EffectivePolicy::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: EffectivePolicy.h:49
Aws::IoT::Model::EffectivePolicy::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: EffectivePolicy.h:44
Aws::IoT::Model::EffectivePolicy::WithPolicyName
EffectivePolicy & WithPolicyName(Aws::String &&value)
Definition: EffectivePolicy.h:74
Aws::IoT::Model::EffectivePolicy::SetPolicyName
void SetPolicyName(const char *value)
Definition: EffectivePolicy.h:64
Aws::IoT::Model::EffectivePolicy::EffectivePolicy
EffectivePolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::EffectivePolicy::WithPolicyArn
EffectivePolicy & WithPolicyArn(const char *value)
Definition: EffectivePolicy.h:120
Aws::IoT::Model::EffectivePolicy::WithPolicyName
EffectivePolicy & WithPolicyName(const Aws::String &value)
Definition: EffectivePolicy.h:69
Aws::IoT::Model::EffectivePolicy::PolicyArnHasBeenSet
bool PolicyArnHasBeenSet() const
Definition: EffectivePolicy.h:90
Aws::IoT::Model::EffectivePolicy
Definition: EffectivePolicy.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::EffectivePolicy::PolicyDocumentHasBeenSet
bool PolicyDocumentHasBeenSet() const
Definition: EffectivePolicy.h:131
Aws::IoT::Model::EffectivePolicy::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: EffectivePolicy.h:54
Aws::IoT::Model::EffectivePolicy::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: EffectivePolicy.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::EffectivePolicy::SetPolicyArn
void SetPolicyArn(const char *value)
Definition: EffectivePolicy.h:105
Aws::IoT::Model::EffectivePolicy::SetPolicyDocument
void SetPolicyDocument(const Aws::String &value)
Definition: EffectivePolicy.h:136
Aws::IoT::Model::EffectivePolicy::WithPolicyArn
EffectivePolicy & WithPolicyArn(const Aws::String &value)
Definition: EffectivePolicy.h:110
Aws::IoT::Model::EffectivePolicy::WithPolicyDocument
EffectivePolicy & WithPolicyDocument(const char *value)
Definition: EffectivePolicy.h:161
Aws::IoT::Model::EffectivePolicy::SetPolicyDocument
void SetPolicyDocument(Aws::String &&value)
Definition: EffectivePolicy.h:141
Aws::IoT::Model::EffectivePolicy::WithPolicyName
EffectivePolicy & WithPolicyName(const char *value)
Definition: EffectivePolicy.h:79
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::EffectivePolicy::GetPolicyDocument
const Aws::String & GetPolicyDocument() const
Definition: EffectivePolicy.h:126
Aws::IoT::Model::EffectivePolicy::WithPolicyDocument
EffectivePolicy & WithPolicyDocument(Aws::String &&value)
Definition: EffectivePolicy.h:156
Aws::IoT::Model::EffectivePolicy::SetPolicyArn
void SetPolicyArn(const Aws::String &value)
Definition: EffectivePolicy.h:95
IoT_EXPORTS.h