AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CoveredResource.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/CoverageResourceType.h>
11#include <aws/inspector2/model/ResourceScanMetadata.h>
12#include <aws/inspector2/model/ScanMode.h>
13#include <aws/inspector2/model/ScanStatus.h>
14#include <aws/inspector2/model/ScanType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Inspector2 {
26namespace Model {
27
35 public:
36 AWS_INSPECTOR2_API CoveredResource() = default;
37 AWS_INSPECTOR2_API CoveredResource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline CoverageResourceType GetResourceType() const { return m_resourceType; }
46 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
48 m_resourceTypeHasBeenSet = true;
49 m_resourceType = value;
50 }
52 SetResourceType(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetResourceId() const { return m_resourceId; }
62 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
63 template <typename ResourceIdT = Aws::String>
64 void SetResourceId(ResourceIdT&& value) {
65 m_resourceIdHasBeenSet = true;
66 m_resourceId = std::forward<ResourceIdT>(value);
67 }
68 template <typename ResourceIdT = Aws::String>
69 CoveredResource& WithResourceId(ResourceIdT&& value) {
70 SetResourceId(std::forward<ResourceIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetAccountId() const { return m_accountId; }
80 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
81 template <typename AccountIdT = Aws::String>
82 void SetAccountId(AccountIdT&& value) {
83 m_accountIdHasBeenSet = true;
84 m_accountId = std::forward<AccountIdT>(value);
85 }
86 template <typename AccountIdT = Aws::String>
87 CoveredResource& WithAccountId(AccountIdT&& value) {
88 SetAccountId(std::forward<AccountIdT>(value));
89 return *this;
90 }
92
94
97 inline ScanType GetScanType() const { return m_scanType; }
98 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
99 inline void SetScanType(ScanType value) {
100 m_scanTypeHasBeenSet = true;
101 m_scanType = value;
102 }
104 SetScanType(value);
105 return *this;
106 }
108
110
113 inline const ScanStatus& GetScanStatus() const { return m_scanStatus; }
114 inline bool ScanStatusHasBeenSet() const { return m_scanStatusHasBeenSet; }
115 template <typename ScanStatusT = ScanStatus>
116 void SetScanStatus(ScanStatusT&& value) {
117 m_scanStatusHasBeenSet = true;
118 m_scanStatus = std::forward<ScanStatusT>(value);
119 }
120 template <typename ScanStatusT = ScanStatus>
121 CoveredResource& WithScanStatus(ScanStatusT&& value) {
122 SetScanStatus(std::forward<ScanStatusT>(value));
123 return *this;
124 }
126
128
131 inline const ResourceScanMetadata& GetResourceMetadata() const { return m_resourceMetadata; }
132 inline bool ResourceMetadataHasBeenSet() const { return m_resourceMetadataHasBeenSet; }
133 template <typename ResourceMetadataT = ResourceScanMetadata>
134 void SetResourceMetadata(ResourceMetadataT&& value) {
135 m_resourceMetadataHasBeenSet = true;
136 m_resourceMetadata = std::forward<ResourceMetadataT>(value);
137 }
138 template <typename ResourceMetadataT = ResourceScanMetadata>
139 CoveredResource& WithResourceMetadata(ResourceMetadataT&& value) {
140 SetResourceMetadata(std::forward<ResourceMetadataT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetLastScannedAt() const { return m_lastScannedAt; }
150 inline bool LastScannedAtHasBeenSet() const { return m_lastScannedAtHasBeenSet; }
151 template <typename LastScannedAtT = Aws::Utils::DateTime>
152 void SetLastScannedAt(LastScannedAtT&& value) {
153 m_lastScannedAtHasBeenSet = true;
154 m_lastScannedAt = std::forward<LastScannedAtT>(value);
155 }
156 template <typename LastScannedAtT = Aws::Utils::DateTime>
157 CoveredResource& WithLastScannedAt(LastScannedAtT&& value) {
158 SetLastScannedAt(std::forward<LastScannedAtT>(value));
159 return *this;
160 }
162
164
167 inline ScanMode GetScanMode() const { return m_scanMode; }
168 inline bool ScanModeHasBeenSet() const { return m_scanModeHasBeenSet; }
169 inline void SetScanMode(ScanMode value) {
170 m_scanModeHasBeenSet = true;
171 m_scanMode = value;
172 }
174 SetScanMode(value);
175 return *this;
176 }
178 private:
180
181 Aws::String m_resourceId;
182
183 Aws::String m_accountId;
184
185 ScanType m_scanType{ScanType::NOT_SET};
186
187 ScanStatus m_scanStatus;
188
189 ResourceScanMetadata m_resourceMetadata;
190
191 Aws::Utils::DateTime m_lastScannedAt{};
192
193 ScanMode m_scanMode{ScanMode::NOT_SET};
194 bool m_resourceTypeHasBeenSet = false;
195 bool m_resourceIdHasBeenSet = false;
196 bool m_accountIdHasBeenSet = false;
197 bool m_scanTypeHasBeenSet = false;
198 bool m_scanStatusHasBeenSet = false;
199 bool m_resourceMetadataHasBeenSet = false;
200 bool m_lastScannedAtHasBeenSet = false;
201 bool m_scanModeHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace Inspector2
206} // namespace Aws
CoveredResource & WithResourceMetadata(ResourceMetadataT &&value)
CoverageResourceType GetResourceType() const
CoveredResource & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API CoveredResource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccountId() const
void SetScanStatus(ScanStatusT &&value)
CoveredResource & WithLastScannedAt(LastScannedAtT &&value)
CoveredResource & WithScanMode(ScanMode value)
CoveredResource & WithScanStatus(ScanStatusT &&value)
CoveredResource & WithScanType(ScanType value)
void SetResourceId(ResourceIdT &&value)
void SetLastScannedAt(LastScannedAtT &&value)
const Aws::String & GetResourceId() const
AWS_INSPECTOR2_API CoveredResource()=default
const Aws::Utils::DateTime & GetLastScannedAt() const
AWS_INSPECTOR2_API CoveredResource & operator=(Aws::Utils::Json::JsonView jsonValue)
CoveredResource & WithResourceId(ResourceIdT &&value)
void SetResourceType(CoverageResourceType value)
void SetResourceMetadata(ResourceMetadataT &&value)
CoveredResource & WithResourceType(CoverageResourceType value)
const ResourceScanMetadata & GetResourceMetadata() const
const ScanStatus & GetScanStatus() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue