AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
CreatePolicyVersionResult.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 {
31 public:
32 AWS_IOT_API CreatePolicyVersionResult() = default;
35
37
40 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
41 template <typename PolicyArnT = Aws::String>
42 void SetPolicyArn(PolicyArnT&& value) {
43 m_policyArnHasBeenSet = true;
44 m_policyArn = std::forward<PolicyArnT>(value);
45 }
46 template <typename PolicyArnT = Aws::String>
48 SetPolicyArn(std::forward<PolicyArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
58 template <typename PolicyDocumentT = Aws::String>
59 void SetPolicyDocument(PolicyDocumentT&& value) {
60 m_policyDocumentHasBeenSet = true;
61 m_policyDocument = std::forward<PolicyDocumentT>(value);
62 }
63 template <typename PolicyDocumentT = Aws::String>
65 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetPolicyVersionId() const { return m_policyVersionId; }
75 template <typename PolicyVersionIdT = Aws::String>
76 void SetPolicyVersionId(PolicyVersionIdT&& value) {
77 m_policyVersionIdHasBeenSet = true;
78 m_policyVersionId = std::forward<PolicyVersionIdT>(value);
79 }
80 template <typename PolicyVersionIdT = Aws::String>
82 SetPolicyVersionId(std::forward<PolicyVersionIdT>(value));
83 return *this;
84 }
86
88
91 inline bool GetIsDefaultVersion() const { return m_isDefaultVersion; }
92 inline void SetIsDefaultVersion(bool value) {
93 m_isDefaultVersionHasBeenSet = true;
94 m_isDefaultVersion = value;
95 }
98 return *this;
99 }
101
103
104 inline const Aws::String& GetRequestId() const { return m_requestId; }
105 template <typename RequestIdT = Aws::String>
106 void SetRequestId(RequestIdT&& value) {
107 m_requestIdHasBeenSet = true;
108 m_requestId = std::forward<RequestIdT>(value);
109 }
110 template <typename RequestIdT = Aws::String>
112 SetRequestId(std::forward<RequestIdT>(value));
113 return *this;
114 }
116 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
117
118 private:
119 Aws::String m_policyArn;
120
121 Aws::String m_policyDocument;
122
123 Aws::String m_policyVersionId;
124
125 bool m_isDefaultVersion{false};
126
127 Aws::String m_requestId;
128 Aws::Http::HttpResponseCode m_HttpResponseCode;
129 bool m_policyArnHasBeenSet = false;
130 bool m_policyDocumentHasBeenSet = false;
131 bool m_policyVersionIdHasBeenSet = false;
132 bool m_isDefaultVersionHasBeenSet = false;
133 bool m_requestIdHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace IoT
138} // namespace Aws
CreatePolicyVersionResult & WithPolicyArn(PolicyArnT &&value)
CreatePolicyVersionResult & WithIsDefaultVersion(bool value)
AWS_IOT_API CreatePolicyVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_IOT_API CreatePolicyVersionResult()=default
CreatePolicyVersionResult & WithPolicyVersionId(PolicyVersionIdT &&value)
CreatePolicyVersionResult & WithRequestId(RequestIdT &&value)
CreatePolicyVersionResult & WithPolicyDocument(PolicyDocumentT &&value)
AWS_IOT_API CreatePolicyVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue