AWS SDK for C++

AWS SDK for C++ Version 1.11.785

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