AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AccountIdT = Aws::String>
50 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
51 template<typename AccountIdT = Aws::String>
52 Ec2InstanceAggregationResponse& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetAmi() const { return m_ami; }
60 inline bool AmiHasBeenSet() const { return m_amiHasBeenSet; }
61 template<typename AmiT = Aws::String>
62 void SetAmi(AmiT&& value) { m_amiHasBeenSet = true; m_ami = std::forward<AmiT>(value); }
63 template<typename AmiT = Aws::String>
64 Ec2InstanceAggregationResponse& WithAmi(AmiT&& value) { SetAmi(std::forward<AmiT>(value)); return *this;}
66
68
71 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
72 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
73 template<typename InstanceIdT = Aws::String>
74 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
75 template<typename InstanceIdT = Aws::String>
76 Ec2InstanceAggregationResponse& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetInstanceTags() const { return m_instanceTags; }
84 inline bool InstanceTagsHasBeenSet() const { return m_instanceTagsHasBeenSet; }
85 template<typename InstanceTagsT = Aws::Map<Aws::String, Aws::String>>
86 void SetInstanceTags(InstanceTagsT&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = std::forward<InstanceTagsT>(value); }
87 template<typename InstanceTagsT = Aws::Map<Aws::String, Aws::String>>
88 Ec2InstanceAggregationResponse& WithInstanceTags(InstanceTagsT&& value) { SetInstanceTags(std::forward<InstanceTagsT>(value)); return *this;}
89 template<typename InstanceTagsKeyT = Aws::String, typename InstanceTagsValueT = Aws::String>
90 Ec2InstanceAggregationResponse& AddInstanceTags(InstanceTagsKeyT&& key, InstanceTagsValueT&& value) {
91 m_instanceTagsHasBeenSet = true; m_instanceTags.emplace(std::forward<InstanceTagsKeyT>(key), std::forward<InstanceTagsValueT>(value)); return *this;
92 }
94
96
99 inline long long GetNetworkFindings() const { return m_networkFindings; }
100 inline bool NetworkFindingsHasBeenSet() const { return m_networkFindingsHasBeenSet; }
101 inline void SetNetworkFindings(long long value) { m_networkFindingsHasBeenSet = true; m_networkFindings = value; }
102 inline Ec2InstanceAggregationResponse& WithNetworkFindings(long long value) { SetNetworkFindings(value); return *this;}
104
106
109 inline const Aws::String& GetOperatingSystem() const { return m_operatingSystem; }
110 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
111 template<typename OperatingSystemT = Aws::String>
112 void SetOperatingSystem(OperatingSystemT&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::forward<OperatingSystemT>(value); }
113 template<typename OperatingSystemT = Aws::String>
114 Ec2InstanceAggregationResponse& WithOperatingSystem(OperatingSystemT&& value) { SetOperatingSystem(std::forward<OperatingSystemT>(value)); return *this;}
116
118
121 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
122 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
123 template<typename SeverityCountsT = SeverityCounts>
124 void SetSeverityCounts(SeverityCountsT&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::forward<SeverityCountsT>(value); }
125 template<typename SeverityCountsT = SeverityCounts>
126 Ec2InstanceAggregationResponse& WithSeverityCounts(SeverityCountsT&& value) { SetSeverityCounts(std::forward<SeverityCountsT>(value)); return *this;}
128 private:
129
130 Aws::String m_accountId;
131 bool m_accountIdHasBeenSet = false;
132
133 Aws::String m_ami;
134 bool m_amiHasBeenSet = false;
135
136 Aws::String m_instanceId;
137 bool m_instanceIdHasBeenSet = false;
138
140 bool m_instanceTagsHasBeenSet = false;
141
142 long long m_networkFindings{0};
143 bool m_networkFindingsHasBeenSet = false;
144
145 Aws::String m_operatingSystem;
146 bool m_operatingSystemHasBeenSet = false;
147
148 SeverityCounts m_severityCounts;
149 bool m_severityCountsHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace Inspector2
154} // namespace Aws
Ec2InstanceAggregationResponse & WithOperatingSystem(OperatingSystemT &&value)
Ec2InstanceAggregationResponse & WithInstanceId(InstanceIdT &&value)
Ec2InstanceAggregationResponse & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API Ec2InstanceAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Ec2InstanceAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
Ec2InstanceAggregationResponse & WithNetworkFindings(long long value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Ec2InstanceAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
AWS_INSPECTOR2_API Ec2InstanceAggregationResponse()=default
Ec2InstanceAggregationResponse & WithInstanceTags(InstanceTagsT &&value)
Ec2InstanceAggregationResponse & AddInstanceTags(InstanceTagsKeyT &&key, InstanceTagsValueT &&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