AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
CreatePolicyResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace IoT {
23namespace Model {
30 public:
31 AWS_IOT_API CreatePolicyResult() = default;
34
36
39 inline const Aws::String& GetPolicyName() const { return m_policyName; }
40 template <typename PolicyNameT = Aws::String>
41 void SetPolicyName(PolicyNameT&& value) {
42 m_policyNameHasBeenSet = true;
43 m_policyName = std::forward<PolicyNameT>(value);
44 }
45 template <typename PolicyNameT = Aws::String>
46 CreatePolicyResult& WithPolicyName(PolicyNameT&& value) {
47 SetPolicyName(std::forward<PolicyNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
57 template <typename PolicyArnT = Aws::String>
58 void SetPolicyArn(PolicyArnT&& value) {
59 m_policyArnHasBeenSet = true;
60 m_policyArn = std::forward<PolicyArnT>(value);
61 }
62 template <typename PolicyArnT = Aws::String>
63 CreatePolicyResult& WithPolicyArn(PolicyArnT&& value) {
64 SetPolicyArn(std::forward<PolicyArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
74 template <typename PolicyDocumentT = Aws::String>
75 void SetPolicyDocument(PolicyDocumentT&& value) {
76 m_policyDocumentHasBeenSet = true;
77 m_policyDocument = std::forward<PolicyDocumentT>(value);
78 }
79 template <typename PolicyDocumentT = Aws::String>
80 CreatePolicyResult& WithPolicyDocument(PolicyDocumentT&& value) {
81 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetPolicyVersionId() const { return m_policyVersionId; }
91 template <typename PolicyVersionIdT = Aws::String>
92 void SetPolicyVersionId(PolicyVersionIdT&& value) {
93 m_policyVersionIdHasBeenSet = true;
94 m_policyVersionId = std::forward<PolicyVersionIdT>(value);
95 }
96 template <typename PolicyVersionIdT = Aws::String>
97 CreatePolicyResult& WithPolicyVersionId(PolicyVersionIdT&& value) {
98 SetPolicyVersionId(std::forward<PolicyVersionIdT>(value));
99 return *this;
100 }
102
104
105 inline const Aws::String& GetRequestId() const { return m_requestId; }
106 template <typename RequestIdT = Aws::String>
107 void SetRequestId(RequestIdT&& value) {
108 m_requestIdHasBeenSet = true;
109 m_requestId = std::forward<RequestIdT>(value);
110 }
111 template <typename RequestIdT = Aws::String>
112 CreatePolicyResult& WithRequestId(RequestIdT&& value) {
113 SetRequestId(std::forward<RequestIdT>(value));
114 return *this;
115 }
117 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
118
119 private:
120 Aws::String m_policyName;
121
122 Aws::String m_policyArn;
123
124 Aws::String m_policyDocument;
125
126 Aws::String m_policyVersionId;
127
128 Aws::String m_requestId;
129 Aws::Http::HttpResponseCode m_HttpResponseCode;
130 bool m_policyNameHasBeenSet = false;
131 bool m_policyArnHasBeenSet = false;
132 bool m_policyDocumentHasBeenSet = false;
133 bool m_policyVersionIdHasBeenSet = false;
134 bool m_requestIdHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace IoT
139} // namespace Aws
void SetPolicyName(PolicyNameT &&value)
AWS_IOT_API CreatePolicyResult()=default
void SetPolicyVersionId(PolicyVersionIdT &&value)
CreatePolicyResult & WithPolicyVersionId(PolicyVersionIdT &&value)
void SetPolicyArn(PolicyArnT &&value)
CreatePolicyResult & WithPolicyName(PolicyNameT &&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 SetPolicyDocument(PolicyDocumentT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreatePolicyResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
CreatePolicyResult & WithPolicyDocument(PolicyDocumentT &&value)
const Aws::String & GetPolicyVersionId() const
const Aws::String & GetPolicyArn() const
const Aws::String & GetPolicyName() const
const Aws::String & GetPolicyDocument() const
CreatePolicyResult & WithPolicyArn(PolicyArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue