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>
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>
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>
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>
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>>
89 template<
typename InstanceTagsKeyT = Aws::String,
typename InstanceTagsValueT = Aws::String>
91 m_instanceTagsHasBeenSet =
true; m_instanceTags.emplace(std::forward<InstanceTagsKeyT>(key), std::forward<InstanceTagsValueT>(value));
return *
this;
101 inline void SetNetworkFindings(
long long value) { m_networkFindingsHasBeenSet =
true; m_networkFindings = value; }
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>
123 template<
typename SeverityCountsT = SeverityCounts>
124 void SetSeverityCounts(SeverityCountsT&& value) { m_severityCountsHasBeenSet =
true; m_severityCounts = std::forward<SeverityCountsT>(value); }
125 template<
typename SeverityCountsT = SeverityCounts>
131 bool m_accountIdHasBeenSet =
false;
134 bool m_amiHasBeenSet =
false;
137 bool m_instanceIdHasBeenSet =
false;
140 bool m_instanceTagsHasBeenSet =
false;
142 long long m_networkFindings{0};
143 bool m_networkFindingsHasBeenSet =
false;
146 bool m_operatingSystemHasBeenSet =
false;
148 SeverityCounts m_severityCounts;
149 bool m_severityCountsHasBeenSet =
false;
bool InstanceIdHasBeenSet() const
const Aws::String & GetAccountId() const
Ec2InstanceAggregationResponse & WithOperatingSystem(OperatingSystemT &&value)
Ec2InstanceAggregationResponse & WithAmi(AmiT &&value)
bool SeverityCountsHasBeenSet() const
void SetInstanceId(InstanceIdT &&value)
Ec2InstanceAggregationResponse & WithInstanceId(InstanceIdT &&value)
const SeverityCounts & GetSeverityCounts() const
bool OperatingSystemHasBeenSet() const
Ec2InstanceAggregationResponse & WithAccountId(AccountIdT &&value)
void SetNetworkFindings(long long value)
bool InstanceTagsHasBeenSet() const
bool AmiHasBeenSet() const
bool NetworkFindingsHasBeenSet() const
AWS_INSPECTOR2_API Ec2InstanceAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Ec2InstanceAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
void SetOperatingSystem(OperatingSystemT &&value)
const Aws::String & GetInstanceId() const
void SetAccountId(AccountIdT &&value)
Ec2InstanceAggregationResponse & WithNetworkFindings(long long value)
const Aws::String & GetAmi() const
const Aws::String & GetOperatingSystem() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAmi(AmiT &&value)
Ec2InstanceAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
void SetInstanceTags(InstanceTagsT &&value)
bool AccountIdHasBeenSet() const
AWS_INSPECTOR2_API Ec2InstanceAggregationResponse()=default
Ec2InstanceAggregationResponse & WithInstanceTags(InstanceTagsT &&value)
long long GetNetworkFindings() const
void SetSeverityCounts(SeverityCountsT &&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