AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Ec2InstanceAggregationResponse.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/memory/stl/AWSMap.h>
10#include <aws/inspector2/model/SeverityCounts.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_INSPECTOR2_API Ec2InstanceAggregationResponse();
40 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
50 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
51 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
52 inline Ec2InstanceAggregationResponse& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
53 inline Ec2InstanceAggregationResponse& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
54 inline Ec2InstanceAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;}
56
58
61 inline const Aws::String& GetAmi() const{ return m_ami; }
62 inline bool AmiHasBeenSet() const { return m_amiHasBeenSet; }
63 inline void SetAmi(const Aws::String& value) { m_amiHasBeenSet = true; m_ami = value; }
64 inline void SetAmi(Aws::String&& value) { m_amiHasBeenSet = true; m_ami = std::move(value); }
65 inline void SetAmi(const char* value) { m_amiHasBeenSet = true; m_ami.assign(value); }
66 inline Ec2InstanceAggregationResponse& WithAmi(const Aws::String& value) { SetAmi(value); return *this;}
67 inline Ec2InstanceAggregationResponse& WithAmi(Aws::String&& value) { SetAmi(std::move(value)); return *this;}
68 inline Ec2InstanceAggregationResponse& WithAmi(const char* value) { SetAmi(value); return *this;}
70
72
75 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
76 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
77 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
78 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
79 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
80 inline Ec2InstanceAggregationResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
81 inline Ec2InstanceAggregationResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
82 inline Ec2InstanceAggregationResponse& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetInstanceTags() const{ return m_instanceTags; }
90 inline bool InstanceTagsHasBeenSet() const { return m_instanceTagsHasBeenSet; }
91 inline void SetInstanceTags(const Aws::Map<Aws::String, Aws::String>& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = value; }
92 inline void SetInstanceTags(Aws::Map<Aws::String, Aws::String>&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = std::move(value); }
95 inline Ec2InstanceAggregationResponse& AddInstanceTags(const Aws::String& key, const Aws::String& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(key, value); return *this; }
96 inline Ec2InstanceAggregationResponse& AddInstanceTags(Aws::String&& key, const Aws::String& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(std::move(key), value); return *this; }
97 inline Ec2InstanceAggregationResponse& AddInstanceTags(const Aws::String& key, Aws::String&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(key, std::move(value)); return *this; }
98 inline Ec2InstanceAggregationResponse& AddInstanceTags(Aws::String&& key, Aws::String&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(std::move(key), std::move(value)); return *this; }
99 inline Ec2InstanceAggregationResponse& AddInstanceTags(const char* key, Aws::String&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(key, std::move(value)); return *this; }
100 inline Ec2InstanceAggregationResponse& AddInstanceTags(Aws::String&& key, const char* value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(std::move(key), value); return *this; }
101 inline Ec2InstanceAggregationResponse& AddInstanceTags(const char* key, const char* value) { m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(key, value); return *this; }
103
105
108 inline long long GetNetworkFindings() const{ return m_networkFindings; }
109 inline bool NetworkFindingsHasBeenSet() const { return m_networkFindingsHasBeenSet; }
110 inline void SetNetworkFindings(long long value) { m_networkFindingsHasBeenSet = true; m_networkFindings = value; }
111 inline Ec2InstanceAggregationResponse& WithNetworkFindings(long long value) { SetNetworkFindings(value); return *this;}
113
115
118 inline const Aws::String& GetOperatingSystem() const{ return m_operatingSystem; }
119 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
120 inline void SetOperatingSystem(const Aws::String& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
121 inline void SetOperatingSystem(Aws::String&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
122 inline void SetOperatingSystem(const char* value) { m_operatingSystemHasBeenSet = true; m_operatingSystem.assign(value); }
124 inline Ec2InstanceAggregationResponse& WithOperatingSystem(Aws::String&& value) { SetOperatingSystem(std::move(value)); return *this;}
125 inline Ec2InstanceAggregationResponse& WithOperatingSystem(const char* value) { SetOperatingSystem(value); return *this;}
127
129
132 inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; }
133 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
134 inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; }
135 inline void SetSeverityCounts(SeverityCounts&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::move(value); }
137 inline Ec2InstanceAggregationResponse& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;}
139 private:
140
141 Aws::String m_accountId;
142 bool m_accountIdHasBeenSet = false;
143
144 Aws::String m_ami;
145 bool m_amiHasBeenSet = false;
146
147 Aws::String m_instanceId;
148 bool m_instanceIdHasBeenSet = false;
149
151 bool m_instanceTagsHasBeenSet = false;
152
153 long long m_networkFindings;
154 bool m_networkFindingsHasBeenSet = false;
155
156 Aws::String m_operatingSystem;
157 bool m_operatingSystemHasBeenSet = false;
158
159 SeverityCounts m_severityCounts;
160 bool m_severityCountsHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace Inspector2
165} // namespace Aws
Ec2InstanceAggregationResponse & WithInstanceTags(Aws::Map< Aws::String, Aws::String > &&value)
Ec2InstanceAggregationResponse & WithOperatingSystem(const char *value)
Ec2InstanceAggregationResponse & WithAmi(const Aws::String &value)
Ec2InstanceAggregationResponse & AddInstanceTags(const char *key, const char *value)
Ec2InstanceAggregationResponse & WithAccountId(const char *value)
Ec2InstanceAggregationResponse & WithInstanceTags(const Aws::Map< Aws::String, Aws::String > &value)
Ec2InstanceAggregationResponse & AddInstanceTags(const Aws::String &key, const Aws::String &value)
Ec2InstanceAggregationResponse & AddInstanceTags(Aws::String &&key, const Aws::String &value)
Ec2InstanceAggregationResponse & AddInstanceTags(const Aws::String &key, Aws::String &&value)
Ec2InstanceAggregationResponse & WithSeverityCounts(const SeverityCounts &value)
Ec2InstanceAggregationResponse & WithInstanceId(const char *value)
AWS_INSPECTOR2_API Ec2InstanceAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Ec2InstanceAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
Ec2InstanceAggregationResponse & WithOperatingSystem(Aws::String &&value)
Ec2InstanceAggregationResponse & WithOperatingSystem(const Aws::String &value)
Ec2InstanceAggregationResponse & WithNetworkFindings(long long value)
Ec2InstanceAggregationResponse & WithSeverityCounts(SeverityCounts &&value)
Ec2InstanceAggregationResponse & WithInstanceId(const Aws::String &value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInstanceTags(Aws::Map< Aws::String, Aws::String > &&value)
Ec2InstanceAggregationResponse & WithAccountId(Aws::String &&value)
Ec2InstanceAggregationResponse & WithAmi(Aws::String &&value)
Ec2InstanceAggregationResponse & AddInstanceTags(const char *key, Aws::String &&value)
Ec2InstanceAggregationResponse & AddInstanceTags(Aws::String &&key, Aws::String &&value)
Ec2InstanceAggregationResponse & WithAmi(const char *value)
Ec2InstanceAggregationResponse & WithAccountId(const Aws::String &value)
void SetInstanceTags(const Aws::Map< Aws::String, Aws::String > &value)
Ec2InstanceAggregationResponse & WithInstanceId(Aws::String &&value)
Ec2InstanceAggregationResponse & AddInstanceTags(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetInstanceTags() const
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
Aws::Utils::Json::JsonValue JsonValue