AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ResourceSynchronizationStatusSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
10#include <aws/network-security-manager/model/OutOfSyncReasonsView.h>
11#include <aws/network-security-manager/model/RemediationIssuesView.h>
12#include <aws/network-security-manager/model/ResourceType.h>
13#include <aws/network-security-manager/model/SynchronizationStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkSecurityManager {
25namespace Model {
26
34 public:
35 AWS_NETWORKSECURITYMANAGER_API ResourceSynchronizationStatusSummary() = default;
36 AWS_NETWORKSECURITYMANAGER_API ResourceSynchronizationStatusSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline SynchronizationStatus GetSynchronizationStatus() const { return m_synchronizationStatus; }
46 inline bool SynchronizationStatusHasBeenSet() const { return m_synchronizationStatusHasBeenSet; }
48 m_synchronizationStatusHasBeenSet = true;
49 m_synchronizationStatus = value;
50 }
56
58
61 inline const Aws::String& GetAccountId() const { return m_accountId; }
62 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
63 template <typename AccountIdT = Aws::String>
64 void SetAccountId(AccountIdT&& value) {
65 m_accountIdHasBeenSet = true;
66 m_accountId = std::forward<AccountIdT>(value);
67 }
68 template <typename AccountIdT = Aws::String>
70 SetAccountId(std::forward<AccountIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
80 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
81 template <typename ResourceArnT = Aws::String>
82 void SetResourceArn(ResourceArnT&& value) {
83 m_resourceArnHasBeenSet = true;
84 m_resourceArn = std::forward<ResourceArnT>(value);
85 }
86 template <typename ResourceArnT = Aws::String>
88 SetResourceArn(std::forward<ResourceArnT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetDeploymentArn() const { return m_deploymentArn; }
99 inline bool DeploymentArnHasBeenSet() const { return m_deploymentArnHasBeenSet; }
100 template <typename DeploymentArnT = Aws::String>
101 void SetDeploymentArn(DeploymentArnT&& value) {
102 m_deploymentArnHasBeenSet = true;
103 m_deploymentArn = std::forward<DeploymentArnT>(value);
104 }
105 template <typename DeploymentArnT = Aws::String>
107 SetDeploymentArn(std::forward<DeploymentArnT>(value));
108 return *this;
109 }
111
113
116 inline ResourceType GetResourceType() const { return m_resourceType; }
117 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
118 inline void SetResourceType(ResourceType value) {
119 m_resourceTypeHasBeenSet = true;
120 m_resourceType = value;
121 }
123 SetResourceType(value);
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
133 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
134 template <typename UpdatedAtT = Aws::Utils::DateTime>
135 void SetUpdatedAt(UpdatedAtT&& value) {
136 m_updatedAtHasBeenSet = true;
137 m_updatedAt = std::forward<UpdatedAtT>(value);
138 }
139 template <typename UpdatedAtT = Aws::Utils::DateTime>
141 SetUpdatedAt(std::forward<UpdatedAtT>(value));
142 return *this;
143 }
145
147
151 inline const OutOfSyncReasonsView& GetOutOfSyncReasons() const { return m_outOfSyncReasons; }
152 inline bool OutOfSyncReasonsHasBeenSet() const { return m_outOfSyncReasonsHasBeenSet; }
153 template <typename OutOfSyncReasonsT = OutOfSyncReasonsView>
154 void SetOutOfSyncReasons(OutOfSyncReasonsT&& value) {
155 m_outOfSyncReasonsHasBeenSet = true;
156 m_outOfSyncReasons = std::forward<OutOfSyncReasonsT>(value);
157 }
158 template <typename OutOfSyncReasonsT = OutOfSyncReasonsView>
160 SetOutOfSyncReasons(std::forward<OutOfSyncReasonsT>(value));
161 return *this;
162 }
164
166
170 inline const RemediationIssuesView& GetRemediationIssues() const { return m_remediationIssues; }
171 inline bool RemediationIssuesHasBeenSet() const { return m_remediationIssuesHasBeenSet; }
172 template <typename RemediationIssuesT = RemediationIssuesView>
173 void SetRemediationIssues(RemediationIssuesT&& value) {
174 m_remediationIssuesHasBeenSet = true;
175 m_remediationIssues = std::forward<RemediationIssuesT>(value);
176 }
177 template <typename RemediationIssuesT = RemediationIssuesView>
179 SetRemediationIssues(std::forward<RemediationIssuesT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Utils::DateTime& GetEvaluatedAt() const { return m_evaluatedAt; }
189 inline bool EvaluatedAtHasBeenSet() const { return m_evaluatedAtHasBeenSet; }
190 template <typename EvaluatedAtT = Aws::Utils::DateTime>
191 void SetEvaluatedAt(EvaluatedAtT&& value) {
192 m_evaluatedAtHasBeenSet = true;
193 m_evaluatedAt = std::forward<EvaluatedAtT>(value);
194 }
195 template <typename EvaluatedAtT = Aws::Utils::DateTime>
197 SetEvaluatedAt(std::forward<EvaluatedAtT>(value));
198 return *this;
199 }
201 private:
203
204 Aws::String m_accountId;
205
206 Aws::String m_resourceArn;
207
208 Aws::String m_deploymentArn;
209
210 ResourceType m_resourceType{ResourceType::NOT_SET};
211
212 Aws::Utils::DateTime m_updatedAt{};
213
214 OutOfSyncReasonsView m_outOfSyncReasons;
215
216 RemediationIssuesView m_remediationIssues;
217
218 Aws::Utils::DateTime m_evaluatedAt{};
219 bool m_synchronizationStatusHasBeenSet = false;
220 bool m_accountIdHasBeenSet = false;
221 bool m_resourceArnHasBeenSet = false;
222 bool m_deploymentArnHasBeenSet = false;
223 bool m_resourceTypeHasBeenSet = false;
224 bool m_updatedAtHasBeenSet = false;
225 bool m_outOfSyncReasonsHasBeenSet = false;
226 bool m_remediationIssuesHasBeenSet = false;
227 bool m_evaluatedAtHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace NetworkSecurityManager
232} // namespace Aws
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKSECURITYMANAGER_API ResourceSynchronizationStatusSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceSynchronizationStatusSummary & WithSynchronizationStatus(SynchronizationStatus value)
ResourceSynchronizationStatusSummary & WithOutOfSyncReasons(OutOfSyncReasonsT &&value)
AWS_NETWORKSECURITYMANAGER_API ResourceSynchronizationStatusSummary(Aws::Utils::Json::JsonView jsonValue)
ResourceSynchronizationStatusSummary & WithRemediationIssues(RemediationIssuesT &&value)
AWS_NETWORKSECURITYMANAGER_API ResourceSynchronizationStatusSummary()=default
ResourceSynchronizationStatusSummary & WithDeploymentArn(DeploymentArnT &&value)
ResourceSynchronizationStatusSummary & WithResourceArn(ResourceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue