AWS SDK for C++  0.14.3
AWS SDK for C++
CreatePolicyResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iot/IoT_EXPORTS.h>
18 
19 namespace Aws
20 {
21 template<typename RESULT_TYPE>
22 class AmazonWebServiceResult;
23 
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace IoT
32 {
33 namespace Model
34 {
39  {
40  public:
44 
48  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
49 
53  inline void SetPolicyName(const Aws::String& value) { m_policyName = value; }
54 
58  inline void SetPolicyName(Aws::String&& value) { m_policyName = value; }
59 
63  inline void SetPolicyName(const char* value) { m_policyName.assign(value); }
64 
68  inline CreatePolicyResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
69 
73  inline CreatePolicyResult& WithPolicyName(Aws::String&& value) { SetPolicyName(value); return *this;}
74 
78  inline CreatePolicyResult& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
79 
83  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
84 
88  inline void SetPolicyArn(const Aws::String& value) { m_policyArn = value; }
89 
93  inline void SetPolicyArn(Aws::String&& value) { m_policyArn = value; }
94 
98  inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); }
99 
103  inline CreatePolicyResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
104 
108  inline CreatePolicyResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(value); return *this;}
109 
113  inline CreatePolicyResult& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
114 
118  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
119 
123  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocument = value; }
124 
128  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocument = value; }
129 
133  inline void SetPolicyDocument(const char* value) { m_policyDocument.assign(value); }
134 
138  inline CreatePolicyResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
139 
143  inline CreatePolicyResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(value); return *this;}
144 
148  inline CreatePolicyResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
149 
153  inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; }
154 
158  inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionId = value; }
159 
163  inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionId = value; }
164 
168  inline void SetPolicyVersionId(const char* value) { m_policyVersionId.assign(value); }
169 
173  inline CreatePolicyResult& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;}
174 
178  inline CreatePolicyResult& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(value); return *this;}
179 
183  inline CreatePolicyResult& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;}
184 
185  private:
186  Aws::String m_policyName;
187  Aws::String m_policyArn;
188  Aws::String m_policyDocument;
189  Aws::String m_policyVersionId;
190  };
191 
192 } // namespace Model
193 } // namespace IoT
194 } // namespace Aws
void SetPolicyDocument(const char *value)
const Aws::String & GetPolicyArn() const
CreatePolicyResult & WithPolicyArn(const Aws::String &value)
CreatePolicyResult & WithPolicyName(const Aws::String &value)
void SetPolicyDocument(const Aws::String &value)
void SetPolicyArn(const Aws::String &value)
CreatePolicyResult & WithPolicyDocument(Aws::String &&value)
void SetPolicyName(const Aws::String &value)
void SetPolicyDocument(Aws::String &&value)
void SetPolicyName(const char *value)
CreatePolicyResult & WithPolicyArn(Aws::String &&value)
void SetPolicyVersionId(Aws::String &&value)
CreatePolicyResult & WithPolicyVersionId(const Aws::String &value)
const Aws::String & GetPolicyVersionId() const
void SetPolicyArn(const char *value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
CreatePolicyResult & WithPolicyVersionId(Aws::String &&value)
CreatePolicyResult & WithPolicyArn(const char *value)
const Aws::String & GetPolicyDocument() const
void SetPolicyName(Aws::String &&value)
void SetPolicyVersionId(const Aws::String &value)
CreatePolicyResult & WithPolicyName(const char *value)
CreatePolicyResult & WithPolicyDocument(const Aws::String &value)
CreatePolicyResult & WithPolicyName(Aws::String &&value)
CreatePolicyResult & WithPolicyDocument(const char *value)
const Aws::String & GetPolicyName() const
void SetPolicyArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreatePolicyResult & WithPolicyVersionId(const char *value)
JSON (JavaScript Object Notation).
void SetPolicyVersionId(const char *value)