AWS SDK for C++  1.9.131
AWS SDK for C++
CreatePolicyResult.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 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoT
24 {
25 namespace Model
26 {
33  {
34  public:
38 
39 
43  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
44 
48  inline void SetPolicyName(const Aws::String& value) { m_policyName = value; }
49 
53  inline void SetPolicyName(Aws::String&& value) { m_policyName = std::move(value); }
54 
58  inline void SetPolicyName(const char* value) { m_policyName.assign(value); }
59 
63  inline CreatePolicyResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
64 
68  inline CreatePolicyResult& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
69 
73  inline CreatePolicyResult& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
74 
75 
79  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
80 
84  inline void SetPolicyArn(const Aws::String& value) { m_policyArn = value; }
85 
89  inline void SetPolicyArn(Aws::String&& value) { m_policyArn = std::move(value); }
90 
94  inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); }
95 
99  inline CreatePolicyResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
100 
104  inline CreatePolicyResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
105 
109  inline CreatePolicyResult& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
110 
111 
115  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
116 
120  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocument = value; }
121 
125  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocument = std::move(value); }
126 
130  inline void SetPolicyDocument(const char* value) { m_policyDocument.assign(value); }
131 
135  inline CreatePolicyResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
136 
140  inline CreatePolicyResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
141 
145  inline CreatePolicyResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
146 
147 
151  inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; }
152 
156  inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionId = value; }
157 
161  inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionId = std::move(value); }
162 
166  inline void SetPolicyVersionId(const char* value) { m_policyVersionId.assign(value); }
167 
171  inline CreatePolicyResult& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;}
172 
176  inline CreatePolicyResult& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;}
177 
181  inline CreatePolicyResult& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;}
182 
183  private:
184 
185  Aws::String m_policyName;
186 
187  Aws::String m_policyArn;
188 
189  Aws::String m_policyDocument;
190 
191  Aws::String m_policyVersionId;
192  };
193 
194 } // namespace Model
195 } // namespace IoT
196 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::CreatePolicyResult::WithPolicyArn
CreatePolicyResult & WithPolicyArn(const char *value)
Definition: CreatePolicyResult.h:109
Aws::IoT::Model::CreatePolicyResult::operator=
CreatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::CreatePolicyResult::SetPolicyDocument
void SetPolicyDocument(const char *value)
Definition: CreatePolicyResult.h:130
Aws::IoT::Model::CreatePolicyResult::WithPolicyName
CreatePolicyResult & WithPolicyName(const char *value)
Definition: CreatePolicyResult.h:73
Aws::IoT::Model::CreatePolicyResult::GetPolicyVersionId
const Aws::String & GetPolicyVersionId() const
Definition: CreatePolicyResult.h:151
Aws::IoT::Model::CreatePolicyResult::WithPolicyDocument
CreatePolicyResult & WithPolicyDocument(const char *value)
Definition: CreatePolicyResult.h:145
Aws::IoT::Model::CreatePolicyResult::WithPolicyVersionId
CreatePolicyResult & WithPolicyVersionId(Aws::String &&value)
Definition: CreatePolicyResult.h:176
Aws::IoT::Model::CreatePolicyResult::CreatePolicyResult
CreatePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::CreatePolicyResult::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: CreatePolicyResult.h:48
Aws::IoT::Model::CreatePolicyResult::SetPolicyVersionId
void SetPolicyVersionId(const Aws::String &value)
Definition: CreatePolicyResult.h:156
Aws::IoT::Model::CreatePolicyResult::GetPolicyDocument
const Aws::String & GetPolicyDocument() const
Definition: CreatePolicyResult.h:115
Aws::IoT::Model::CreatePolicyResult::SetPolicyName
void SetPolicyName(const char *value)
Definition: CreatePolicyResult.h:58
Aws::IoT::Model::CreatePolicyResult::SetPolicyArn
void SetPolicyArn(const char *value)
Definition: CreatePolicyResult.h:94
Aws::IoT::Model::CreatePolicyResult::SetPolicyDocument
void SetPolicyDocument(const Aws::String &value)
Definition: CreatePolicyResult.h:120
Aws::IoT::Model::CreatePolicyResult
Definition: CreatePolicyResult.h:33
Aws::IoT::Model::CreatePolicyResult::GetPolicyArn
const Aws::String & GetPolicyArn() const
Definition: CreatePolicyResult.h:79
Aws::IoT::Model::CreatePolicyResult::SetPolicyVersionId
void SetPolicyVersionId(const char *value)
Definition: CreatePolicyResult.h:166
Aws::IoT::Model::CreatePolicyResult::WithPolicyVersionId
CreatePolicyResult & WithPolicyVersionId(const char *value)
Definition: CreatePolicyResult.h:181
Aws::IoT::Model::CreatePolicyResult::WithPolicyArn
CreatePolicyResult & WithPolicyArn(Aws::String &&value)
Definition: CreatePolicyResult.h:104
Aws::IoT::Model::CreatePolicyResult::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: CreatePolicyResult.h:53
Aws::IoT::Model::CreatePolicyResult::WithPolicyVersionId
CreatePolicyResult & WithPolicyVersionId(const Aws::String &value)
Definition: CreatePolicyResult.h:171
Aws::IoT::Model::CreatePolicyResult::WithPolicyDocument
CreatePolicyResult & WithPolicyDocument(const Aws::String &value)
Definition: CreatePolicyResult.h:135
Aws::IoT::Model::CreatePolicyResult::SetPolicyArn
void SetPolicyArn(const Aws::String &value)
Definition: CreatePolicyResult.h:84
Aws::IoT::Model::CreatePolicyResult::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: CreatePolicyResult.h:43
AWSString.h
Aws::IoT::Model::CreatePolicyResult::WithPolicyName
CreatePolicyResult & WithPolicyName(Aws::String &&value)
Definition: CreatePolicyResult.h:68
Aws::IoT::Model::CreatePolicyResult::CreatePolicyResult
CreatePolicyResult()
Aws::IoT::Model::CreatePolicyResult::SetPolicyDocument
void SetPolicyDocument(Aws::String &&value)
Definition: CreatePolicyResult.h:125
Aws::IoT::Model::CreatePolicyResult::WithPolicyArn
CreatePolicyResult & WithPolicyArn(const Aws::String &value)
Definition: CreatePolicyResult.h:99
Aws::IoT::Model::CreatePolicyResult::SetPolicyArn
void SetPolicyArn(Aws::String &&value)
Definition: CreatePolicyResult.h:89
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::CreatePolicyResult::WithPolicyDocument
CreatePolicyResult & WithPolicyDocument(Aws::String &&value)
Definition: CreatePolicyResult.h:140
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CreatePolicyResult::SetPolicyVersionId
void SetPolicyVersionId(Aws::String &&value)
Definition: CreatePolicyResult.h:161
Aws::IoT::Model::CreatePolicyResult::WithPolicyName
CreatePolicyResult & WithPolicyName(const Aws::String &value)
Definition: CreatePolicyResult.h:63
IoT_EXPORTS.h