AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ResourceCoverageSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
11#include <aws/network-security-manager/model/CoverageStatus.h>
12#include <aws/network-security-manager/model/PolicyFirewallType.h>
13#include <aws/network-security-manager/model/ScopeResourceType.h>
14#include <aws/network-security-manager/model/ServiceResourceType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace NetworkSecurityManager {
26namespace Model {
27
35 public:
36 AWS_NETWORKSECURITYMANAGER_API ResourceCoverageSummary() = default;
37 AWS_NETWORKSECURITYMANAGER_API ResourceCoverageSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKSECURITYMANAGER_API ResourceCoverageSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
46 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
47 template <typename ResourceArnT = Aws::String>
48 void SetResourceArn(ResourceArnT&& value) {
49 m_resourceArnHasBeenSet = true;
50 m_resourceArn = std::forward<ResourceArnT>(value);
51 }
52 template <typename ResourceArnT = Aws::String>
54 SetResourceArn(std::forward<ResourceArnT>(value));
55 return *this;
56 }
58
60
64 inline ServiceResourceType GetEntityType() const { return m_entityType; }
65 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
67 m_entityTypeHasBeenSet = true;
68 m_entityType = value;
69 }
71 SetEntityType(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetEntityArn() const { return m_entityArn; }
81 inline bool EntityArnHasBeenSet() const { return m_entityArnHasBeenSet; }
82 template <typename EntityArnT = Aws::String>
83 void SetEntityArn(EntityArnT&& value) {
84 m_entityArnHasBeenSet = true;
85 m_entityArn = std::forward<EntityArnT>(value);
86 }
87 template <typename EntityArnT = Aws::String>
89 SetEntityArn(std::forward<EntityArnT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetResourceOwnerAccountId() const { return m_resourceOwnerAccountId; }
100 inline bool ResourceOwnerAccountIdHasBeenSet() const { return m_resourceOwnerAccountIdHasBeenSet; }
101 template <typename ResourceOwnerAccountIdT = Aws::String>
102 void SetResourceOwnerAccountId(ResourceOwnerAccountIdT&& value) {
103 m_resourceOwnerAccountIdHasBeenSet = true;
104 m_resourceOwnerAccountId = std::forward<ResourceOwnerAccountIdT>(value);
105 }
106 template <typename ResourceOwnerAccountIdT = Aws::String>
107 ResourceCoverageSummary& WithResourceOwnerAccountId(ResourceOwnerAccountIdT&& value) {
108 SetResourceOwnerAccountId(std::forward<ResourceOwnerAccountIdT>(value));
109 return *this;
110 }
112
114
117 inline ScopeResourceType GetResourceType() const { return m_resourceType; }
118 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
120 m_resourceTypeHasBeenSet = true;
121 m_resourceType = value;
122 }
124 SetResourceType(value);
125 return *this;
126 }
128
130
134 inline PolicyFirewallType GetFirewallType() const { return m_firewallType; }
135 inline bool FirewallTypeHasBeenSet() const { return m_firewallTypeHasBeenSet; }
137 m_firewallTypeHasBeenSet = true;
138 m_firewallType = value;
139 }
141 SetFirewallType(value);
142 return *this;
143 }
145
147
155 inline CoverageStatus GetCoverageStatus() const { return m_coverageStatus; }
156 inline bool CoverageStatusHasBeenSet() const { return m_coverageStatusHasBeenSet; }
158 m_coverageStatusHasBeenSet = true;
159 m_coverageStatus = value;
160 }
162 SetCoverageStatus(value);
163 return *this;
164 }
166
168
172 inline const Aws::Vector<Aws::String>& GetDeploymentArns() const { return m_deploymentArns; }
173 inline bool DeploymentArnsHasBeenSet() const { return m_deploymentArnsHasBeenSet; }
174 template <typename DeploymentArnsT = Aws::Vector<Aws::String>>
175 void SetDeploymentArns(DeploymentArnsT&& value) {
176 m_deploymentArnsHasBeenSet = true;
177 m_deploymentArns = std::forward<DeploymentArnsT>(value);
178 }
179 template <typename DeploymentArnsT = Aws::Vector<Aws::String>>
180 ResourceCoverageSummary& WithDeploymentArns(DeploymentArnsT&& value) {
181 SetDeploymentArns(std::forward<DeploymentArnsT>(value));
182 return *this;
183 }
184 template <typename DeploymentArnsT = Aws::String>
185 ResourceCoverageSummary& AddDeploymentArns(DeploymentArnsT&& value) {
186 m_deploymentArnsHasBeenSet = true;
187 m_deploymentArns.emplace_back(std::forward<DeploymentArnsT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
197 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
198 template <typename UpdatedAtT = Aws::Utils::DateTime>
199 void SetUpdatedAt(UpdatedAtT&& value) {
200 m_updatedAtHasBeenSet = true;
201 m_updatedAt = std::forward<UpdatedAtT>(value);
202 }
203 template <typename UpdatedAtT = Aws::Utils::DateTime>
205 SetUpdatedAt(std::forward<UpdatedAtT>(value));
206 return *this;
207 }
209 private:
210 Aws::String m_resourceArn;
211
213
214 Aws::String m_entityArn;
215
216 Aws::String m_resourceOwnerAccountId;
217
219
221
222 CoverageStatus m_coverageStatus{CoverageStatus::NOT_SET};
223
224 Aws::Vector<Aws::String> m_deploymentArns;
225
226 Aws::Utils::DateTime m_updatedAt{};
227 bool m_resourceArnHasBeenSet = false;
228 bool m_entityTypeHasBeenSet = false;
229 bool m_entityArnHasBeenSet = false;
230 bool m_resourceOwnerAccountIdHasBeenSet = false;
231 bool m_resourceTypeHasBeenSet = false;
232 bool m_firewallTypeHasBeenSet = false;
233 bool m_coverageStatusHasBeenSet = false;
234 bool m_deploymentArnsHasBeenSet = false;
235 bool m_updatedAtHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace NetworkSecurityManager
240} // namespace Aws
AWS_NETWORKSECURITYMANAGER_API ResourceCoverageSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKSECURITYMANAGER_API ResourceCoverageSummary(Aws::Utils::Json::JsonView jsonValue)
ResourceCoverageSummary & AddDeploymentArns(DeploymentArnsT &&value)
ResourceCoverageSummary & WithDeploymentArns(DeploymentArnsT &&value)
ResourceCoverageSummary & WithEntityType(ServiceResourceType value)
AWS_NETWORKSECURITYMANAGER_API ResourceCoverageSummary()=default
ResourceCoverageSummary & WithResourceArn(ResourceArnT &&value)
ResourceCoverageSummary & WithFirewallType(PolicyFirewallType value)
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceCoverageSummary & WithUpdatedAt(UpdatedAtT &&value)
ResourceCoverageSummary & WithCoverageStatus(CoverageStatus value)
ResourceCoverageSummary & WithEntityArn(EntityArnT &&value)
ResourceCoverageSummary & WithResourceOwnerAccountId(ResourceOwnerAccountIdT &&value)
ResourceCoverageSummary & WithResourceType(ScopeResourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue