AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
GetConfigurationPolicyResult.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 GetConfigurationPolicyResult() = 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
147 inline const Policy& GetConfigurationPolicy() const { return m_configurationPolicy; }
148 template <typename ConfigurationPolicyT = Policy>
149 void SetConfigurationPolicy(ConfigurationPolicyT&& value) {
150 m_configurationPolicyHasBeenSet = true;
151 m_configurationPolicy = std::forward<ConfigurationPolicyT>(value);
152 }
153 template <typename ConfigurationPolicyT = Policy>
155 SetConfigurationPolicy(std::forward<ConfigurationPolicyT>(value));
156 return *this;
157 }
159
161
162 inline const Aws::String& GetRequestId() const { return m_requestId; }
163 template <typename RequestIdT = Aws::String>
164 void SetRequestId(RequestIdT&& value) {
165 m_requestIdHasBeenSet = true;
166 m_requestId = std::forward<RequestIdT>(value);
167 }
168 template <typename RequestIdT = Aws::String>
170 SetRequestId(std::forward<RequestIdT>(value));
171 return *this;
172 }
174 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
175
176 private:
177 Aws::String m_arn;
178
179 Aws::String m_id;
180
181 Aws::String m_name;
182
183 Aws::String m_description;
184
185 Aws::Utils::DateTime m_updatedAt{};
186
187 Aws::Utils::DateTime m_createdAt{};
188
189 Policy m_configurationPolicy;
190
191 Aws::String m_requestId;
192 Aws::Http::HttpResponseCode m_HttpResponseCode;
193 bool m_arnHasBeenSet = false;
194 bool m_idHasBeenSet = false;
195 bool m_nameHasBeenSet = false;
196 bool m_descriptionHasBeenSet = false;
197 bool m_updatedAtHasBeenSet = false;
198 bool m_createdAtHasBeenSet = false;
199 bool m_configurationPolicyHasBeenSet = false;
200 bool m_requestIdHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace SecurityHub
205} // namespace Aws
AWS_SECURITYHUB_API GetConfigurationPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetConfigurationPolicyResult & WithDescription(DescriptionT &&value)
GetConfigurationPolicyResult & WithName(NameT &&value)
AWS_SECURITYHUB_API GetConfigurationPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetConfigurationPolicyResult & WithRequestId(RequestIdT &&value)
GetConfigurationPolicyResult & WithCreatedAt(CreatedAtT &&value)
GetConfigurationPolicyResult & WithUpdatedAt(UpdatedAtT &&value)
GetConfigurationPolicyResult & WithConfigurationPolicy(ConfigurationPolicyT &&value)
AWS_SECURITYHUB_API GetConfigurationPolicyResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue