AWS SDK for C++  1.9.129
AWS SDK for C++
CreatePolicyVersionResult.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 {
34  {
35  public:
39 
40 
44  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
45 
49  inline void SetPolicyArn(const Aws::String& value) { m_policyArn = value; }
50 
54  inline void SetPolicyArn(Aws::String&& value) { m_policyArn = std::move(value); }
55 
59  inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); }
60 
64  inline CreatePolicyVersionResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
65 
69  inline CreatePolicyVersionResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
70 
74  inline CreatePolicyVersionResult& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
75 
76 
80  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
81 
85  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocument = value; }
86 
90  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocument = std::move(value); }
91 
95  inline void SetPolicyDocument(const char* value) { m_policyDocument.assign(value); }
96 
100  inline CreatePolicyVersionResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
101 
105  inline CreatePolicyVersionResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
106 
110  inline CreatePolicyVersionResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
111 
112 
116  inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; }
117 
121  inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionId = value; }
122 
126  inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionId = std::move(value); }
127 
131  inline void SetPolicyVersionId(const char* value) { m_policyVersionId.assign(value); }
132 
136  inline CreatePolicyVersionResult& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;}
137 
141  inline CreatePolicyVersionResult& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;}
142 
146  inline CreatePolicyVersionResult& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;}
147 
148 
152  inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; }
153 
157  inline void SetIsDefaultVersion(bool value) { m_isDefaultVersion = value; }
158 
162  inline CreatePolicyVersionResult& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
163 
164  private:
165 
166  Aws::String m_policyArn;
167 
168  Aws::String m_policyDocument;
169 
170  Aws::String m_policyVersionId;
171 
172  bool m_isDefaultVersion;
173  };
174 
175 } // namespace Model
176 } // namespace IoT
177 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::CreatePolicyVersionResult::WithPolicyDocument
CreatePolicyVersionResult & WithPolicyDocument(Aws::String &&value)
Definition: CreatePolicyVersionResult.h:105
Aws::IoT::Model::CreatePolicyVersionResult::GetIsDefaultVersion
bool GetIsDefaultVersion() const
Definition: CreatePolicyVersionResult.h:152
Aws::IoT::Model::CreatePolicyVersionResult::SetPolicyArn
void SetPolicyArn(const char *value)
Definition: CreatePolicyVersionResult.h:59
Aws::IoT::Model::CreatePolicyVersionResult
Definition: CreatePolicyVersionResult.h:34
Aws::IoT::Model::CreatePolicyVersionResult::WithIsDefaultVersion
CreatePolicyVersionResult & WithIsDefaultVersion(bool value)
Definition: CreatePolicyVersionResult.h:162
Aws::IoT::Model::CreatePolicyVersionResult::GetPolicyVersionId
const Aws::String & GetPolicyVersionId() const
Definition: CreatePolicyVersionResult.h:116
Aws::IoT::Model::CreatePolicyVersionResult::SetPolicyDocument
void SetPolicyDocument(const Aws::String &value)
Definition: CreatePolicyVersionResult.h:85
Aws::IoT::Model::CreatePolicyVersionResult::SetPolicyArn
void SetPolicyArn(Aws::String &&value)
Definition: CreatePolicyVersionResult.h:54
Aws::IoT::Model::CreatePolicyVersionResult::WithPolicyDocument
CreatePolicyVersionResult & WithPolicyDocument(const Aws::String &value)
Definition: CreatePolicyVersionResult.h:100
Aws::IoT::Model::CreatePolicyVersionResult::CreatePolicyVersionResult
CreatePolicyVersionResult()
Aws::IoT::Model::CreatePolicyVersionResult::GetPolicyDocument
const Aws::String & GetPolicyDocument() const
Definition: CreatePolicyVersionResult.h:80
Aws::IoT::Model::CreatePolicyVersionResult::SetPolicyVersionId
void SetPolicyVersionId(const Aws::String &value)
Definition: CreatePolicyVersionResult.h:121
Aws::IoT::Model::CreatePolicyVersionResult::GetPolicyArn
const Aws::String & GetPolicyArn() const
Definition: CreatePolicyVersionResult.h:44
Aws::IoT::Model::CreatePolicyVersionResult::CreatePolicyVersionResult
CreatePolicyVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::CreatePolicyVersionResult::WithPolicyVersionId
CreatePolicyVersionResult & WithPolicyVersionId(Aws::String &&value)
Definition: CreatePolicyVersionResult.h:141
Aws::IoT::Model::CreatePolicyVersionResult::SetPolicyVersionId
void SetPolicyVersionId(const char *value)
Definition: CreatePolicyVersionResult.h:131
Aws::IoT::Model::CreatePolicyVersionResult::WithPolicyDocument
CreatePolicyVersionResult & WithPolicyDocument(const char *value)
Definition: CreatePolicyVersionResult.h:110
Aws::IoT::Model::CreatePolicyVersionResult::WithPolicyArn
CreatePolicyVersionResult & WithPolicyArn(const char *value)
Definition: CreatePolicyVersionResult.h:74
Aws::IoT::Model::CreatePolicyVersionResult::WithPolicyArn
CreatePolicyVersionResult & WithPolicyArn(Aws::String &&value)
Definition: CreatePolicyVersionResult.h:69
Aws::IoT::Model::CreatePolicyVersionResult::WithPolicyVersionId
CreatePolicyVersionResult & WithPolicyVersionId(const Aws::String &value)
Definition: CreatePolicyVersionResult.h:136
Aws::IoT::Model::CreatePolicyVersionResult::SetPolicyDocument
void SetPolicyDocument(Aws::String &&value)
Definition: CreatePolicyVersionResult.h:90
Aws::IoT::Model::CreatePolicyVersionResult::SetPolicyDocument
void SetPolicyDocument(const char *value)
Definition: CreatePolicyVersionResult.h:95
AWSString.h
Aws::IoT::Model::CreatePolicyVersionResult::operator=
CreatePolicyVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::CreatePolicyVersionResult::WithPolicyArn
CreatePolicyVersionResult & WithPolicyArn(const Aws::String &value)
Definition: CreatePolicyVersionResult.h:64
Aws::IoT::Model::CreatePolicyVersionResult::SetIsDefaultVersion
void SetIsDefaultVersion(bool value)
Definition: CreatePolicyVersionResult.h:157
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
Aws::IoT::Model::CreatePolicyVersionResult::WithPolicyVersionId
CreatePolicyVersionResult & WithPolicyVersionId(const char *value)
Definition: CreatePolicyVersionResult.h:146
Aws::IoT::Model::CreatePolicyVersionResult::SetPolicyArn
void SetPolicyArn(const Aws::String &value)
Definition: CreatePolicyVersionResult.h:49
Aws::IoT::Model::CreatePolicyVersionResult::SetPolicyVersionId
void SetPolicyVersionId(Aws::String &&value)
Definition: CreatePolicyVersionResult.h:126
IoT_EXPORTS.h