AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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 }
99 SetAssociationType(value);
100 return *this;
101 }
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
127 inline ConfigurationPolicyAssociationStatus GetAssociationStatus() const { return m_associationStatus; }
129 m_associationStatusHasBeenSet = true;
130 m_associationStatus = value;
131 }
134 return *this;
135 }
137
139
143 inline const Aws::String& GetAssociationStatusMessage() const { return m_associationStatusMessage; }
144 template <typename AssociationStatusMessageT = Aws::String>
145 void SetAssociationStatusMessage(AssociationStatusMessageT&& value) {
146 m_associationStatusMessageHasBeenSet = true;
147 m_associationStatusMessage = std::forward<AssociationStatusMessageT>(value);
148 }
149 template <typename AssociationStatusMessageT = Aws::String>
151 SetAssociationStatusMessage(std::forward<AssociationStatusMessageT>(value));
152 return *this;
153 }
155
157
158 inline const Aws::String& GetRequestId() const { return m_requestId; }
159 template <typename RequestIdT = Aws::String>
160 void SetRequestId(RequestIdT&& value) {
161 m_requestIdHasBeenSet = true;
162 m_requestId = std::forward<RequestIdT>(value);
163 }
164 template <typename RequestIdT = Aws::String>
166 SetRequestId(std::forward<RequestIdT>(value));
167 return *this;
168 }
170 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
171
172 private:
173 Aws::String m_configurationPolicyId;
174
175 Aws::String m_targetId;
176
177 TargetType m_targetType{TargetType::NOT_SET};
178
179 AssociationType m_associationType{AssociationType::NOT_SET};
180
181 Aws::Utils::DateTime m_updatedAt{};
182
184
185 Aws::String m_associationStatusMessage;
186
187 Aws::String m_requestId;
188 Aws::Http::HttpResponseCode m_HttpResponseCode;
189 bool m_configurationPolicyIdHasBeenSet = false;
190 bool m_targetIdHasBeenSet = false;
191 bool m_targetTypeHasBeenSet = false;
192 bool m_associationTypeHasBeenSet = false;
193 bool m_updatedAtHasBeenSet = false;
194 bool m_associationStatusHasBeenSet = false;
195 bool m_associationStatusMessageHasBeenSet = false;
196 bool m_requestIdHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace SecurityHub
201} // 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