AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
StartConfigurationPolicyAssociationResult.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 StartConfigurationPolicyAssociationResult() = default;
34
36
39 inline const Aws::String& GetConfigurationPolicyId() const { return m_configurationPolicyId; }
40 template <typename ConfigurationPolicyIdT = Aws::String>
41 void SetConfigurationPolicyId(ConfigurationPolicyIdT&& value) {
42 m_configurationPolicyIdHasBeenSet = true;
43 m_configurationPolicyId = std::forward<ConfigurationPolicyIdT>(value);
44 }
45 template <typename ConfigurationPolicyIdT = Aws::String>
47 SetConfigurationPolicyId(std::forward<ConfigurationPolicyIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetTargetId() const { return m_targetId; }
58 template <typename TargetIdT = Aws::String>
59 void SetTargetId(TargetIdT&& value) {
60 m_targetIdHasBeenSet = true;
61 m_targetId = std::forward<TargetIdT>(value);
62 }
63 template <typename TargetIdT = Aws::String>
65 SetTargetId(std::forward<TargetIdT>(value));
66 return *this;
67 }
69
71
75 inline TargetType GetTargetType() const { return m_targetType; }
76 inline void SetTargetType(TargetType value) {
77 m_targetTypeHasBeenSet = true;
78 m_targetType = value;
79 }
81 SetTargetType(value);
82 return *this;
83 }
85
87
92 inline AssociationType GetAssociationType() const { return m_associationType; }
94 m_associationTypeHasBeenSet = true;
95 m_associationType = value;
96 }
102
104
108 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
109 template <typename UpdatedAtT = Aws::Utils::DateTime>
110 void SetUpdatedAt(UpdatedAtT&& value) {
111 m_updatedAtHasBeenSet = true;
112 m_updatedAt = std::forward<UpdatedAtT>(value);
113 }
114 template <typename UpdatedAtT = Aws::Utils::DateTime>
116 SetUpdatedAt(std::forward<UpdatedAtT>(value));
117 return *this;
118 }
120
122
132 inline ConfigurationPolicyAssociationStatus GetAssociationStatus() const { return m_associationStatus; }
134 m_associationStatusHasBeenSet = true;
135 m_associationStatus = value;
136 }
142
144
148 inline const Aws::String& GetAssociationStatusMessage() const { return m_associationStatusMessage; }
149 template <typename AssociationStatusMessageT = Aws::String>
150 void SetAssociationStatusMessage(AssociationStatusMessageT&& value) {
151 m_associationStatusMessageHasBeenSet = true;
152 m_associationStatusMessage = std::forward<AssociationStatusMessageT>(value);
153 }
154 template <typename AssociationStatusMessageT = Aws::String>
156 SetAssociationStatusMessage(std::forward<AssociationStatusMessageT>(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_configurationPolicyId;
179
180 Aws::String m_targetId;
181
182 TargetType m_targetType{TargetType::NOT_SET};
183
184 AssociationType m_associationType{AssociationType::NOT_SET};
185
186 Aws::Utils::DateTime m_updatedAt{};
187
189
190 Aws::String m_associationStatusMessage;
191
192 Aws::String m_requestId;
193 Aws::Http::HttpResponseCode m_HttpResponseCode;
194 bool m_configurationPolicyIdHasBeenSet = false;
195 bool m_targetIdHasBeenSet = false;
196 bool m_targetTypeHasBeenSet = false;
197 bool m_associationTypeHasBeenSet = false;
198 bool m_updatedAtHasBeenSet = false;
199 bool m_associationStatusHasBeenSet = false;
200 bool m_associationStatusMessageHasBeenSet = false;
201 bool m_requestIdHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace SecurityHub
206} // namespace Aws
StartConfigurationPolicyAssociationResult & WithAssociationStatusMessage(AssociationStatusMessageT &&value)
StartConfigurationPolicyAssociationResult & WithConfigurationPolicyId(ConfigurationPolicyIdT &&value)
StartConfigurationPolicyAssociationResult & WithAssociationStatus(ConfigurationPolicyAssociationStatus value)
AWS_SECURITYHUB_API StartConfigurationPolicyAssociationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartConfigurationPolicyAssociationResult & WithTargetType(TargetType value)
StartConfigurationPolicyAssociationResult & WithTargetId(TargetIdT &&value)
StartConfigurationPolicyAssociationResult & WithRequestId(RequestIdT &&value)
StartConfigurationPolicyAssociationResult & WithAssociationType(AssociationType value)
StartConfigurationPolicyAssociationResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_SECURITYHUB_API StartConfigurationPolicyAssociationResult(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