AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePolicyResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace IoT
24{
25namespace Model
26{
33 {
34 public:
35 AWS_IOT_API CreatePolicyResult();
38
39
41
44 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
45 inline void SetPolicyName(const Aws::String& value) { m_policyName = value; }
46 inline void SetPolicyName(Aws::String&& value) { m_policyName = std::move(value); }
47 inline void SetPolicyName(const char* value) { m_policyName.assign(value); }
48 inline CreatePolicyResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
49 inline CreatePolicyResult& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
50 inline CreatePolicyResult& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
52
54
57 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
58 inline void SetPolicyArn(const Aws::String& value) { m_policyArn = value; }
59 inline void SetPolicyArn(Aws::String&& value) { m_policyArn = std::move(value); }
60 inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); }
61 inline CreatePolicyResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
62 inline CreatePolicyResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
63 inline CreatePolicyResult& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
65
67
70 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
71 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocument = value; }
72 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocument = std::move(value); }
73 inline void SetPolicyDocument(const char* value) { m_policyDocument.assign(value); }
74 inline CreatePolicyResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
75 inline CreatePolicyResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
76 inline CreatePolicyResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
78
80
83 inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; }
84 inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionId = value; }
85 inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionId = std::move(value); }
86 inline void SetPolicyVersionId(const char* value) { m_policyVersionId.assign(value); }
87 inline CreatePolicyResult& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;}
88 inline CreatePolicyResult& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;}
89 inline CreatePolicyResult& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;}
91
93
94 inline const Aws::String& GetRequestId() const{ return m_requestId; }
95 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
96 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
97 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
98 inline CreatePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
99 inline CreatePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
100 inline CreatePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
102 private:
103
104 Aws::String m_policyName;
105
106 Aws::String m_policyArn;
107
108 Aws::String m_policyDocument;
109
110 Aws::String m_policyVersionId;
111
112 Aws::String m_requestId;
113 };
114
115} // namespace Model
116} // namespace IoT
117} // namespace Aws
CreatePolicyResult & WithPolicyDocument(const Aws::String &value)
void SetRequestId(const Aws::String &value)
CreatePolicyResult & WithPolicyArn(const char *value)
CreatePolicyResult & WithPolicyVersionId(Aws::String &&value)
CreatePolicyResult & WithPolicyDocument(Aws::String &&value)
void SetPolicyVersionId(const Aws::String &value)
void SetPolicyArn(const Aws::String &value)
AWS_IOT_API CreatePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOT_API CreatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPolicyVersionId(Aws::String &&value)
CreatePolicyResult & WithPolicyVersionId(const Aws::String &value)
CreatePolicyResult & WithPolicyArn(Aws::String &&value)
CreatePolicyResult & WithRequestId(const char *value)
CreatePolicyResult & WithPolicyName(Aws::String &&value)
CreatePolicyResult & WithRequestId(Aws::String &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetPolicyVersionId() const
void SetPolicyDocument(Aws::String &&value)
CreatePolicyResult & WithPolicyVersionId(const char *value)
CreatePolicyResult & WithRequestId(const Aws::String &value)
void SetRequestId(Aws::String &&value)
void SetPolicyName(const Aws::String &value)
CreatePolicyResult & WithPolicyDocument(const char *value)
const Aws::String & GetPolicyArn() const
CreatePolicyResult & WithPolicyName(const Aws::String &value)
void SetPolicyVersionId(const char *value)
CreatePolicyResult & WithPolicyArn(const Aws::String &value)
const Aws::String & GetPolicyName() const
const Aws::String & GetPolicyDocument() const
void SetPolicyDocument(const char *value)
void SetPolicyArn(Aws::String &&value)
void SetPolicyDocument(const Aws::String &value)
void SetPolicyName(Aws::String &&value)
CreatePolicyResult & WithPolicyName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue