AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetConfigurationPolicyAssociationResult.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/AssociationType.h>
12#include <aws/securityhub/model/ConfigurationPolicyAssociationStatus.h>
13#include <aws/securityhub/model/TargetType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SecurityHub {
27namespace Model {
29 public:
30 AWS_SECURITYHUB_API GetConfigurationPolicyAssociationResult() = default;
34
36
40 inline const Aws::String& GetConfigurationPolicyId() const { return m_configurationPolicyId; }
41 template <typename ConfigurationPolicyIdT = Aws::String>
42 void SetConfigurationPolicyId(ConfigurationPolicyIdT&& value) {
43 m_configurationPolicyIdHasBeenSet = true;
44 m_configurationPolicyId = std::forward<ConfigurationPolicyIdT>(value);
45 }
46 template <typename ConfigurationPolicyIdT = Aws::String>
48 SetConfigurationPolicyId(std::forward<ConfigurationPolicyIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetTargetId() const { return m_targetId; }
59 template <typename TargetIdT = Aws::String>
60 void SetTargetId(TargetIdT&& value) {
61 m_targetIdHasBeenSet = true;
62 m_targetId = std::forward<TargetIdT>(value);
63 }
64 template <typename TargetIdT = Aws::String>
66 SetTargetId(std::forward<TargetIdT>(value));
67 return *this;
68 }
70
72
76 inline TargetType GetTargetType() const { return m_targetType; }
77 inline void SetTargetType(TargetType value) {
78 m_targetTypeHasBeenSet = true;
79 m_targetType = value;
80 }
82 SetTargetType(value);
83 return *this;
84 }
86
88
93 inline AssociationType GetAssociationType() const { return m_associationType; }
95 m_associationTypeHasBeenSet = true;
96 m_associationType = value;
97 }
103
105
109 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
110 template <typename UpdatedAtT = Aws::Utils::DateTime>
111 void SetUpdatedAt(UpdatedAtT&& value) {
112 m_updatedAtHasBeenSet = true;
113 m_updatedAt = std::forward<UpdatedAtT>(value);
114 }
115 template <typename UpdatedAtT = Aws::Utils::DateTime>
117 SetUpdatedAt(std::forward<UpdatedAtT>(value));
118 return *this;
119 }
121
123
133 inline ConfigurationPolicyAssociationStatus GetAssociationStatus() const { return m_associationStatus; }
135 m_associationStatusHasBeenSet = true;
136 m_associationStatus = value;
137 }
143
145
149 inline const Aws::String& GetAssociationStatusMessage() const { return m_associationStatusMessage; }
150 template <typename AssociationStatusMessageT = Aws::String>
151 void SetAssociationStatusMessage(AssociationStatusMessageT&& value) {
152 m_associationStatusMessageHasBeenSet = true;
153 m_associationStatusMessage = std::forward<AssociationStatusMessageT>(value);
154 }
155 template <typename AssociationStatusMessageT = Aws::String>
157 SetAssociationStatusMessage(std::forward<AssociationStatusMessageT>(value));
158 return *this;
159 }
161
163
164 inline const Aws::String& GetRequestId() const { return m_requestId; }
165 template <typename RequestIdT = Aws::String>
166 void SetRequestId(RequestIdT&& value) {
167 m_requestIdHasBeenSet = true;
168 m_requestId = std::forward<RequestIdT>(value);
169 }
170 template <typename RequestIdT = Aws::String>
172 SetRequestId(std::forward<RequestIdT>(value));
173 return *this;
174 }
176 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
177
178 private:
179 Aws::String m_configurationPolicyId;
180
181 Aws::String m_targetId;
182
183 TargetType m_targetType{TargetType::NOT_SET};
184
185 AssociationType m_associationType{AssociationType::NOT_SET};
186
187 Aws::Utils::DateTime m_updatedAt{};
188
190
191 Aws::String m_associationStatusMessage;
192
193 Aws::String m_requestId;
194 Aws::Http::HttpResponseCode m_HttpResponseCode;
195 bool m_configurationPolicyIdHasBeenSet = false;
196 bool m_targetIdHasBeenSet = false;
197 bool m_targetTypeHasBeenSet = false;
198 bool m_associationTypeHasBeenSet = false;
199 bool m_updatedAtHasBeenSet = false;
200 bool m_associationStatusHasBeenSet = false;
201 bool m_associationStatusMessageHasBeenSet = false;
202 bool m_requestIdHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace SecurityHub
207} // namespace Aws
AWS_SECURITYHUB_API GetConfigurationPolicyAssociationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetConfigurationPolicyAssociationResult & WithAssociationStatusMessage(AssociationStatusMessageT &&value)
GetConfigurationPolicyAssociationResult & WithTargetId(TargetIdT &&value)
AWS_SECURITYHUB_API GetConfigurationPolicyAssociationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetConfigurationPolicyAssociationResult & WithUpdatedAt(UpdatedAtT &&value)
GetConfigurationPolicyAssociationResult & WithRequestId(RequestIdT &&value)
GetConfigurationPolicyAssociationResult & WithTargetType(TargetType value)
GetConfigurationPolicyAssociationResult & WithConfigurationPolicyId(ConfigurationPolicyIdT &&value)
GetConfigurationPolicyAssociationResult & WithAssociationStatus(ConfigurationPolicyAssociationStatus value)
GetConfigurationPolicyAssociationResult & WithAssociationType(AssociationType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue