AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CisTargetResourceAggregation.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/StatusCounts.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/inspector2/model/CisTargetStatus.h>
12#include <aws/inspector2/model/CisTargetStatusReason.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Inspector2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_INSPECTOR2_API CisTargetResourceAggregation();
42 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAccountId() const{ return m_accountId; }
50 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
51 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
52 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
53 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
54 inline CisTargetResourceAggregation& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
55 inline CisTargetResourceAggregation& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
56 inline CisTargetResourceAggregation& WithAccountId(const char* value) { SetAccountId(value); return *this;}
58
60
63 inline const Aws::String& GetPlatform() const{ return m_platform; }
64 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
65 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
66 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
67 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
68 inline CisTargetResourceAggregation& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
69 inline CisTargetResourceAggregation& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
70 inline CisTargetResourceAggregation& WithPlatform(const char* value) { SetPlatform(value); return *this;}
72
74
77 inline const Aws::String& GetScanArn() const{ return m_scanArn; }
78 inline bool ScanArnHasBeenSet() const { return m_scanArnHasBeenSet; }
79 inline void SetScanArn(const Aws::String& value) { m_scanArnHasBeenSet = true; m_scanArn = value; }
80 inline void SetScanArn(Aws::String&& value) { m_scanArnHasBeenSet = true; m_scanArn = std::move(value); }
81 inline void SetScanArn(const char* value) { m_scanArnHasBeenSet = true; m_scanArn.assign(value); }
82 inline CisTargetResourceAggregation& WithScanArn(const Aws::String& value) { SetScanArn(value); return *this;}
83 inline CisTargetResourceAggregation& WithScanArn(Aws::String&& value) { SetScanArn(std::move(value)); return *this;}
84 inline CisTargetResourceAggregation& WithScanArn(const char* value) { SetScanArn(value); return *this;}
86
88
91 inline const StatusCounts& GetStatusCounts() const{ return m_statusCounts; }
92 inline bool StatusCountsHasBeenSet() const { return m_statusCountsHasBeenSet; }
93 inline void SetStatusCounts(const StatusCounts& value) { m_statusCountsHasBeenSet = true; m_statusCounts = value; }
94 inline void SetStatusCounts(StatusCounts&& value) { m_statusCountsHasBeenSet = true; m_statusCounts = std::move(value); }
95 inline CisTargetResourceAggregation& WithStatusCounts(const StatusCounts& value) { SetStatusCounts(value); return *this;}
96 inline CisTargetResourceAggregation& WithStatusCounts(StatusCounts&& value) { SetStatusCounts(std::move(value)); return *this;}
98
100
103 inline const Aws::String& GetTargetResourceId() const{ return m_targetResourceId; }
104 inline bool TargetResourceIdHasBeenSet() const { return m_targetResourceIdHasBeenSet; }
105 inline void SetTargetResourceId(const Aws::String& value) { m_targetResourceIdHasBeenSet = true; m_targetResourceId = value; }
106 inline void SetTargetResourceId(Aws::String&& value) { m_targetResourceIdHasBeenSet = true; m_targetResourceId = std::move(value); }
107 inline void SetTargetResourceId(const char* value) { m_targetResourceIdHasBeenSet = true; m_targetResourceId.assign(value); }
109 inline CisTargetResourceAggregation& WithTargetResourceId(Aws::String&& value) { SetTargetResourceId(std::move(value)); return *this;}
110 inline CisTargetResourceAggregation& WithTargetResourceId(const char* value) { SetTargetResourceId(value); return *this;}
112
114
117 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetTargetResourceTags() const{ return m_targetResourceTags; }
118 inline bool TargetResourceTagsHasBeenSet() const { return m_targetResourceTagsHasBeenSet; }
119 inline void SetTargetResourceTags(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags = value; }
120 inline void SetTargetResourceTags(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags = std::move(value); }
123 inline CisTargetResourceAggregation& AddTargetResourceTags(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(key, value); return *this; }
124 inline CisTargetResourceAggregation& AddTargetResourceTags(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(std::move(key), value); return *this; }
125 inline CisTargetResourceAggregation& AddTargetResourceTags(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(key, std::move(value)); return *this; }
126 inline CisTargetResourceAggregation& AddTargetResourceTags(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(std::move(key), std::move(value)); return *this; }
127 inline CisTargetResourceAggregation& AddTargetResourceTags(const char* key, Aws::Vector<Aws::String>&& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(key, std::move(value)); return *this; }
128 inline CisTargetResourceAggregation& AddTargetResourceTags(const char* key, const Aws::Vector<Aws::String>& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(key, value); return *this; }
130
132
135 inline const CisTargetStatus& GetTargetStatus() const{ return m_targetStatus; }
136 inline bool TargetStatusHasBeenSet() const { return m_targetStatusHasBeenSet; }
137 inline void SetTargetStatus(const CisTargetStatus& value) { m_targetStatusHasBeenSet = true; m_targetStatus = value; }
138 inline void SetTargetStatus(CisTargetStatus&& value) { m_targetStatusHasBeenSet = true; m_targetStatus = std::move(value); }
140 inline CisTargetResourceAggregation& WithTargetStatus(CisTargetStatus&& value) { SetTargetStatus(std::move(value)); return *this;}
142
144
147 inline const CisTargetStatusReason& GetTargetStatusReason() const{ return m_targetStatusReason; }
148 inline bool TargetStatusReasonHasBeenSet() const { return m_targetStatusReasonHasBeenSet; }
149 inline void SetTargetStatusReason(const CisTargetStatusReason& value) { m_targetStatusReasonHasBeenSet = true; m_targetStatusReason = value; }
150 inline void SetTargetStatusReason(CisTargetStatusReason&& value) { m_targetStatusReasonHasBeenSet = true; m_targetStatusReason = std::move(value); }
154 private:
155
156 Aws::String m_accountId;
157 bool m_accountIdHasBeenSet = false;
158
159 Aws::String m_platform;
160 bool m_platformHasBeenSet = false;
161
162 Aws::String m_scanArn;
163 bool m_scanArnHasBeenSet = false;
164
165 StatusCounts m_statusCounts;
166 bool m_statusCountsHasBeenSet = false;
167
168 Aws::String m_targetResourceId;
169 bool m_targetResourceIdHasBeenSet = false;
170
172 bool m_targetResourceTagsHasBeenSet = false;
173
174 CisTargetStatus m_targetStatus;
175 bool m_targetStatusHasBeenSet = false;
176
177 CisTargetStatusReason m_targetStatusReason;
178 bool m_targetStatusReasonHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace Inspector2
183} // namespace Aws
CisTargetResourceAggregation & WithTargetStatus(CisTargetStatus &&value)
CisTargetResourceAggregation & WithTargetResourceId(const Aws::String &value)
CisTargetResourceAggregation & AddTargetResourceTags(const Aws::String &key, Aws::Vector< Aws::String > &&value)
void SetTargetResourceTags(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetTargetResourceTags() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
CisTargetResourceAggregation & WithTargetResourceId(Aws::String &&value)
CisTargetResourceAggregation & AddTargetResourceTags(const char *key, const Aws::Vector< Aws::String > &value)
CisTargetResourceAggregation & WithTargetStatusReason(const CisTargetStatusReason &value)
CisTargetResourceAggregation & WithStatusCounts(const StatusCounts &value)
void SetTargetResourceTags(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
CisTargetResourceAggregation & WithAccountId(Aws::String &&value)
CisTargetResourceAggregation & WithStatusCounts(StatusCounts &&value)
CisTargetResourceAggregation & WithPlatform(Aws::String &&value)
CisTargetResourceAggregation & WithTargetStatusReason(CisTargetStatusReason &&value)
CisTargetResourceAggregation & AddTargetResourceTags(const char *key, Aws::Vector< Aws::String > &&value)
CisTargetResourceAggregation & WithAccountId(const Aws::String &value)
CisTargetResourceAggregation & WithScanArn(Aws::String &&value)
CisTargetResourceAggregation & WithTargetResourceId(const char *value)
AWS_INSPECTOR2_API CisTargetResourceAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
CisTargetResourceAggregation & WithTargetStatus(const CisTargetStatus &value)
CisTargetResourceAggregation & AddTargetResourceTags(Aws::String &&key, Aws::Vector< Aws::String > &&value)
CisTargetResourceAggregation & WithTargetResourceTags(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
CisTargetResourceAggregation & WithAccountId(const char *value)
CisTargetResourceAggregation & AddTargetResourceTags(const Aws::String &key, const Aws::Vector< Aws::String > &value)
AWS_INSPECTOR2_API CisTargetResourceAggregation(Aws::Utils::Json::JsonView jsonValue)
CisTargetResourceAggregation & WithScanArn(const Aws::String &value)
CisTargetResourceAggregation & WithTargetResourceTags(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
CisTargetResourceAggregation & WithScanArn(const char *value)
void SetTargetStatusReason(const CisTargetStatusReason &value)
CisTargetResourceAggregation & AddTargetResourceTags(Aws::String &&key, const Aws::Vector< Aws::String > &value)
CisTargetResourceAggregation & WithPlatform(const char *value)
CisTargetResourceAggregation & WithPlatform(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue