AWS SDK for C++  1.9.47
AWS SDK for C++
Policy.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 
32  {
33  public:
34  Policy();
38 
39 
43  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
44 
48  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
49 
53  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
54 
58  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
59 
63  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
64 
68  inline Policy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
69 
73  inline Policy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
74 
78  inline Policy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
79 
80 
84  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
85 
89  inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
90 
94  inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
95 
99  inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
100 
104  inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
105 
109  inline Policy& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
110 
114  inline Policy& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
115 
119  inline Policy& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
120 
121  private:
122 
123  Aws::String m_policyName;
124  bool m_policyNameHasBeenSet;
125 
126  Aws::String m_policyArn;
127  bool m_policyArnHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace IoT
132 } // namespace Aws
Aws::IoT::Model::Policy::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: Policy.h:53
Aws::IoT::Model::Policy::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: Policy.h:43
Aws::IoT::Model::Policy::WithPolicyName
Policy & WithPolicyName(Aws::String &&value)
Definition: Policy.h:73
Aws::IoT::Model::Policy::SetPolicyArn
void SetPolicyArn(const char *value)
Definition: Policy.h:104
Aws::IoT::Model::Policy::WithPolicyArn
Policy & WithPolicyArn(const char *value)
Definition: Policy.h:119
Aws::IoT::Model::Policy::Policy
Policy()
Aws::IoT::Model::Policy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::Policy::WithPolicyArn
Policy & WithPolicyArn(Aws::String &&value)
Definition: Policy.h:114
Aws::IoT::Model::Policy::PolicyArnHasBeenSet
bool PolicyArnHasBeenSet() const
Definition: Policy.h:89
Aws::IoT::Model::Policy::SetPolicyName
void SetPolicyName(const char *value)
Definition: Policy.h:63
Aws::IoT::Model::Policy::WithPolicyName
Policy & WithPolicyName(const char *value)
Definition: Policy.h:78
Aws::IoT::Model::Policy::operator=
Policy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::Policy::SetPolicyArn
void SetPolicyArn(const Aws::String &value)
Definition: Policy.h:94
Aws::IoT::Model::Policy::GetPolicyArn
const Aws::String & GetPolicyArn() const
Definition: Policy.h:84
Aws::IoT::Model::Policy::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: Policy.h:48
Aws::IoT::Model::Policy
Definition: Policy.h:32
Aws::IoT::Model::Policy::SetPolicyArn
void SetPolicyArn(Aws::String &&value)
Definition: Policy.h:99
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::IoT::Model::Policy::WithPolicyArn
Policy & WithPolicyArn(const Aws::String &value)
Definition: Policy.h:109
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::IoT::Model::Policy::Policy
Policy(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::Policy::WithPolicyName
Policy & WithPolicyName(const Aws::String &value)
Definition: Policy.h:68
Aws::IoT::Model::Policy::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: Policy.h:58
Aws
Definition: AccessManagementClient.h:15
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
IoT_EXPORTS.h