AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
CreateConfigurationPolicyResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/Policy.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub {
25namespace Model {
27 public:
28 AWS_SECURITYHUB_API CreateConfigurationPolicyResult() = default;
31
33
36 inline const Aws::String& GetArn() const { return m_arn; }
37 template <typename ArnT = Aws::String>
38 void SetArn(ArnT&& value) {
39 m_arnHasBeenSet = true;
40 m_arn = std::forward<ArnT>(value);
41 }
42 template <typename ArnT = Aws::String>
44 SetArn(std::forward<ArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 template <typename IdT = Aws::String>
55 void SetId(IdT&& value) {
56 m_idHasBeenSet = true;
57 m_id = std::forward<IdT>(value);
58 }
59 template <typename IdT = Aws::String>
61 SetId(std::forward<IdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 template <typename NameT = Aws::String>
72 void SetName(NameT&& value) {
73 m_nameHasBeenSet = true;
74 m_name = std::forward<NameT>(value);
75 }
76 template <typename NameT = Aws::String>
78 SetName(std::forward<NameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 template <typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) {
90 m_descriptionHasBeenSet = true;
91 m_description = std::forward<DescriptionT>(value);
92 }
93 template <typename DescriptionT = Aws::String>
95 SetDescription(std::forward<DescriptionT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
106 template <typename UpdatedAtT = Aws::Utils::DateTime>
107 void SetUpdatedAt(UpdatedAtT&& value) {
108 m_updatedAtHasBeenSet = true;
109 m_updatedAt = std::forward<UpdatedAtT>(value);
110 }
111 template <typename UpdatedAtT = Aws::Utils::DateTime>
113 SetUpdatedAt(std::forward<UpdatedAtT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
124 template <typename CreatedAtT = Aws::Utils::DateTime>
125 void SetCreatedAt(CreatedAtT&& value) {
126 m_createdAtHasBeenSet = true;
127 m_createdAt = std::forward<CreatedAtT>(value);
128 }
129 template <typename CreatedAtT = Aws::Utils::DateTime>
131 SetCreatedAt(std::forward<CreatedAtT>(value));
132 return *this;
133 }
135
137
148 inline const Policy& GetConfigurationPolicy() const { return m_configurationPolicy; }
149 template <typename ConfigurationPolicyT = Policy>
150 void SetConfigurationPolicy(ConfigurationPolicyT&& value) {
151 m_configurationPolicyHasBeenSet = true;
152 m_configurationPolicy = std::forward<ConfigurationPolicyT>(value);
153 }
154 template <typename ConfigurationPolicyT = Policy>
156 SetConfigurationPolicy(std::forward<ConfigurationPolicyT>(value));
157 return *this;
158 }
160
162
163 inline const Aws::String& GetRequestId() const { return m_requestId; }
164 template <typename RequestIdT = Aws::String>
165 void SetRequestId(RequestIdT&& value) {
166 m_requestIdHasBeenSet = true;
167 m_requestId = std::forward<RequestIdT>(value);
168 }
169 template <typename RequestIdT = Aws::String>
171 SetRequestId(std::forward<RequestIdT>(value));
172 return *this;
173 }
175 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
176
177 private:
178 Aws::String m_arn;
179
180 Aws::String m_id;
181
182 Aws::String m_name;
183
184 Aws::String m_description;
185
186 Aws::Utils::DateTime m_updatedAt{};
187
188 Aws::Utils::DateTime m_createdAt{};
189
190 Policy m_configurationPolicy;
191
192 Aws::String m_requestId;
193 Aws::Http::HttpResponseCode m_HttpResponseCode;
194 bool m_arnHasBeenSet = false;
195 bool m_idHasBeenSet = false;
196 bool m_nameHasBeenSet = false;
197 bool m_descriptionHasBeenSet = false;
198 bool m_updatedAtHasBeenSet = false;
199 bool m_createdAtHasBeenSet = false;
200 bool m_configurationPolicyHasBeenSet = false;
201 bool m_requestIdHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace SecurityHub
206} // namespace Aws
AWS_SECURITYHUB_API CreateConfigurationPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateConfigurationPolicyResult & WithConfigurationPolicy(ConfigurationPolicyT &&value)
CreateConfigurationPolicyResult & WithRequestId(RequestIdT &&value)
CreateConfigurationPolicyResult & WithDescription(DescriptionT &&value)
CreateConfigurationPolicyResult & WithName(NameT &&value)
AWS_SECURITYHUB_API CreateConfigurationPolicyResult()=default
AWS_SECURITYHUB_API CreateConfigurationPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateConfigurationPolicyResult & WithUpdatedAt(UpdatedAtT &&value)
CreateConfigurationPolicyResult & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue