AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CoveredResource.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/inspector2/model/ResourceScanMetadata.h>
11#include <aws/inspector2/model/CoverageResourceType.h>
12#include <aws/inspector2/model/ScanMode.h>
13#include <aws/inspector2/model/ScanStatus.h>
14#include <aws/inspector2/model/ScanType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Inspector2
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_INSPECTOR2_API CoveredResource() = default;
42 AWS_INSPECTOR2_API CoveredResource(Aws::Utils::Json::JsonView jsonValue);
44 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetAccountId() const { return m_accountId; }
52 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
53 template<typename AccountIdT = Aws::String>
54 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
55 template<typename AccountIdT = Aws::String>
56 CoveredResource& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetLastScannedAt() const { return m_lastScannedAt; }
64 inline bool LastScannedAtHasBeenSet() const { return m_lastScannedAtHasBeenSet; }
65 template<typename LastScannedAtT = Aws::Utils::DateTime>
66 void SetLastScannedAt(LastScannedAtT&& value) { m_lastScannedAtHasBeenSet = true; m_lastScannedAt = std::forward<LastScannedAtT>(value); }
67 template<typename LastScannedAtT = Aws::Utils::DateTime>
68 CoveredResource& WithLastScannedAt(LastScannedAtT&& value) { SetLastScannedAt(std::forward<LastScannedAtT>(value)); return *this;}
70
72
75 inline const Aws::String& GetResourceId() const { return m_resourceId; }
76 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
77 template<typename ResourceIdT = Aws::String>
78 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
79 template<typename ResourceIdT = Aws::String>
80 CoveredResource& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
82
84
87 inline const ResourceScanMetadata& GetResourceMetadata() const { return m_resourceMetadata; }
88 inline bool ResourceMetadataHasBeenSet() const { return m_resourceMetadataHasBeenSet; }
89 template<typename ResourceMetadataT = ResourceScanMetadata>
90 void SetResourceMetadata(ResourceMetadataT&& value) { m_resourceMetadataHasBeenSet = true; m_resourceMetadata = std::forward<ResourceMetadataT>(value); }
91 template<typename ResourceMetadataT = ResourceScanMetadata>
92 CoveredResource& WithResourceMetadata(ResourceMetadataT&& value) { SetResourceMetadata(std::forward<ResourceMetadataT>(value)); return *this;}
94
96
99 inline CoverageResourceType GetResourceType() const { return m_resourceType; }
100 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
101 inline void SetResourceType(CoverageResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
104
106
109 inline ScanMode GetScanMode() const { return m_scanMode; }
110 inline bool ScanModeHasBeenSet() const { return m_scanModeHasBeenSet; }
111 inline void SetScanMode(ScanMode value) { m_scanModeHasBeenSet = true; m_scanMode = value; }
112 inline CoveredResource& WithScanMode(ScanMode value) { SetScanMode(value); return *this;}
114
116
119 inline const ScanStatus& GetScanStatus() const { return m_scanStatus; }
120 inline bool ScanStatusHasBeenSet() const { return m_scanStatusHasBeenSet; }
121 template<typename ScanStatusT = ScanStatus>
122 void SetScanStatus(ScanStatusT&& value) { m_scanStatusHasBeenSet = true; m_scanStatus = std::forward<ScanStatusT>(value); }
123 template<typename ScanStatusT = ScanStatus>
124 CoveredResource& WithScanStatus(ScanStatusT&& value) { SetScanStatus(std::forward<ScanStatusT>(value)); return *this;}
126
128
131 inline ScanType GetScanType() const { return m_scanType; }
132 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
133 inline void SetScanType(ScanType value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
134 inline CoveredResource& WithScanType(ScanType value) { SetScanType(value); return *this;}
136 private:
137
138 Aws::String m_accountId;
139 bool m_accountIdHasBeenSet = false;
140
141 Aws::Utils::DateTime m_lastScannedAt{};
142 bool m_lastScannedAtHasBeenSet = false;
143
144 Aws::String m_resourceId;
145 bool m_resourceIdHasBeenSet = false;
146
147 ResourceScanMetadata m_resourceMetadata;
148 bool m_resourceMetadataHasBeenSet = false;
149
151 bool m_resourceTypeHasBeenSet = false;
152
153 ScanMode m_scanMode{ScanMode::NOT_SET};
154 bool m_scanModeHasBeenSet = false;
155
156 ScanStatus m_scanStatus;
157 bool m_scanStatusHasBeenSet = false;
158
159 ScanType m_scanType{ScanType::NOT_SET};
160 bool m_scanTypeHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace Inspector2
165} // 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