AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
54 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
55 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
56 inline CoveredResource& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
57 inline CoveredResource& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
58 inline CoveredResource& WithAccountId(const char* value) { SetAccountId(value); return *this;}
60
62
65 inline const Aws::Utils::DateTime& GetLastScannedAt() const{ return m_lastScannedAt; }
66 inline bool LastScannedAtHasBeenSet() const { return m_lastScannedAtHasBeenSet; }
67 inline void SetLastScannedAt(const Aws::Utils::DateTime& value) { m_lastScannedAtHasBeenSet = true; m_lastScannedAt = value; }
68 inline void SetLastScannedAt(Aws::Utils::DateTime&& value) { m_lastScannedAtHasBeenSet = true; m_lastScannedAt = std::move(value); }
69 inline CoveredResource& WithLastScannedAt(const Aws::Utils::DateTime& value) { SetLastScannedAt(value); return *this;}
70 inline CoveredResource& WithLastScannedAt(Aws::Utils::DateTime&& value) { SetLastScannedAt(std::move(value)); return *this;}
72
74
77 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
78 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
79 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
80 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
81 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
82 inline CoveredResource& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
83 inline CoveredResource& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
84 inline CoveredResource& WithResourceId(const char* value) { SetResourceId(value); return *this;}
86
88
91 inline const ResourceScanMetadata& GetResourceMetadata() const{ return m_resourceMetadata; }
92 inline bool ResourceMetadataHasBeenSet() const { return m_resourceMetadataHasBeenSet; }
93 inline void SetResourceMetadata(const ResourceScanMetadata& value) { m_resourceMetadataHasBeenSet = true; m_resourceMetadata = value; }
94 inline void SetResourceMetadata(ResourceScanMetadata&& value) { m_resourceMetadataHasBeenSet = true; m_resourceMetadata = std::move(value); }
96 inline CoveredResource& WithResourceMetadata(ResourceScanMetadata&& value) { SetResourceMetadata(std::move(value)); return *this;}
98
100
103 inline const CoverageResourceType& GetResourceType() const{ return m_resourceType; }
104 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
105 inline void SetResourceType(const CoverageResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
106 inline void SetResourceType(CoverageResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
107 inline CoveredResource& WithResourceType(const CoverageResourceType& value) { SetResourceType(value); return *this;}
108 inline CoveredResource& WithResourceType(CoverageResourceType&& value) { SetResourceType(std::move(value)); return *this;}
110
112
115 inline const ScanMode& GetScanMode() const{ return m_scanMode; }
116 inline bool ScanModeHasBeenSet() const { return m_scanModeHasBeenSet; }
117 inline void SetScanMode(const ScanMode& value) { m_scanModeHasBeenSet = true; m_scanMode = value; }
118 inline void SetScanMode(ScanMode&& value) { m_scanModeHasBeenSet = true; m_scanMode = std::move(value); }
119 inline CoveredResource& WithScanMode(const ScanMode& value) { SetScanMode(value); return *this;}
120 inline CoveredResource& WithScanMode(ScanMode&& value) { SetScanMode(std::move(value)); return *this;}
122
124
127 inline const ScanStatus& GetScanStatus() const{ return m_scanStatus; }
128 inline bool ScanStatusHasBeenSet() const { return m_scanStatusHasBeenSet; }
129 inline void SetScanStatus(const ScanStatus& value) { m_scanStatusHasBeenSet = true; m_scanStatus = value; }
130 inline void SetScanStatus(ScanStatus&& value) { m_scanStatusHasBeenSet = true; m_scanStatus = std::move(value); }
131 inline CoveredResource& WithScanStatus(const ScanStatus& value) { SetScanStatus(value); return *this;}
132 inline CoveredResource& WithScanStatus(ScanStatus&& value) { SetScanStatus(std::move(value)); return *this;}
134
136
139 inline const ScanType& GetScanType() const{ return m_scanType; }
140 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
141 inline void SetScanType(const ScanType& value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
142 inline void SetScanType(ScanType&& value) { m_scanTypeHasBeenSet = true; m_scanType = std::move(value); }
143 inline CoveredResource& WithScanType(const ScanType& value) { SetScanType(value); return *this;}
144 inline CoveredResource& WithScanType(ScanType&& value) { SetScanType(std::move(value)); return *this;}
146 private:
147
148 Aws::String m_accountId;
149 bool m_accountIdHasBeenSet = false;
150
151 Aws::Utils::DateTime m_lastScannedAt;
152 bool m_lastScannedAtHasBeenSet = false;
153
154 Aws::String m_resourceId;
155 bool m_resourceIdHasBeenSet = false;
156
157 ResourceScanMetadata m_resourceMetadata;
158 bool m_resourceMetadataHasBeenSet = false;
159
160 CoverageResourceType m_resourceType;
161 bool m_resourceTypeHasBeenSet = false;
162
163 ScanMode m_scanMode;
164 bool m_scanModeHasBeenSet = false;
165
166 ScanStatus m_scanStatus;
167 bool m_scanStatusHasBeenSet = false;
168
169 ScanType m_scanType;
170 bool m_scanTypeHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace Inspector2
175} // namespace Aws
void SetResourceType(CoverageResourceType &&value)
CoveredResource & WithAccountId(const char *value)
void SetResourceMetadata(ResourceScanMetadata &&value)
CoveredResource & WithResourceMetadata(const ResourceScanMetadata &value)
void SetResourceId(const Aws::String &value)
void SetLastScannedAt(const Aws::Utils::DateTime &value)
AWS_INSPECTOR2_API CoveredResource(Aws::Utils::Json::JsonView jsonValue)
void SetResourceId(Aws::String &&value)
void SetResourceMetadata(const ResourceScanMetadata &value)
const Aws::String & GetAccountId() const
CoveredResource & WithResourceId(const char *value)
CoveredResource & WithResourceType(const CoverageResourceType &value)
CoveredResource & WithResourceId(Aws::String &&value)
CoveredResource & WithScanStatus(ScanStatus &&value)
CoveredResource & WithResourceType(CoverageResourceType &&value)
void SetScanStatus(const ScanStatus &value)
void SetAccountId(Aws::String &&value)
void SetResourceType(const CoverageResourceType &value)
const CoverageResourceType & GetResourceType() const
void SetLastScannedAt(Aws::Utils::DateTime &&value)
CoveredResource & WithAccountId(const Aws::String &value)
CoveredResource & WithLastScannedAt(const Aws::Utils::DateTime &value)
void SetScanType(const ScanType &value)
CoveredResource & WithScanMode(const ScanMode &value)
const Aws::String & GetResourceId() const
void SetScanMode(const ScanMode &value)
CoveredResource & WithScanMode(ScanMode &&value)
const Aws::Utils::DateTime & GetLastScannedAt() const
AWS_INSPECTOR2_API CoveredResource & operator=(Aws::Utils::Json::JsonView jsonValue)
CoveredResource & WithScanType(ScanType &&value)
void SetAccountId(const Aws::String &value)
CoveredResource & WithAccountId(Aws::String &&value)
CoveredResource & WithLastScannedAt(Aws::Utils::DateTime &&value)
CoveredResource & WithResourceMetadata(ResourceScanMetadata &&value)
CoveredResource & WithScanType(const ScanType &value)
CoveredResource & WithScanStatus(const ScanStatus &value)
CoveredResource & WithResourceId(const Aws::String &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