AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AmiAggregationResponse.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/SeverityCounts.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR2_API AmiAggregationResponse() = default;
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAccountId() const { return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 template<typename AccountIdT = Aws::String>
49 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
50 template<typename AccountIdT = Aws::String>
51 AmiAggregationResponse& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
53
55
58 inline long long GetAffectedInstances() const { return m_affectedInstances; }
59 inline bool AffectedInstancesHasBeenSet() const { return m_affectedInstancesHasBeenSet; }
60 inline void SetAffectedInstances(long long value) { m_affectedInstancesHasBeenSet = true; m_affectedInstances = value; }
61 inline AmiAggregationResponse& WithAffectedInstances(long long value) { SetAffectedInstances(value); return *this;}
63
65
68 inline const Aws::String& GetAmi() const { return m_ami; }
69 inline bool AmiHasBeenSet() const { return m_amiHasBeenSet; }
70 template<typename AmiT = Aws::String>
71 void SetAmi(AmiT&& value) { m_amiHasBeenSet = true; m_ami = std::forward<AmiT>(value); }
72 template<typename AmiT = Aws::String>
73 AmiAggregationResponse& WithAmi(AmiT&& value) { SetAmi(std::forward<AmiT>(value)); return *this;}
75
77
80 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
81 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
82 template<typename SeverityCountsT = SeverityCounts>
83 void SetSeverityCounts(SeverityCountsT&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::forward<SeverityCountsT>(value); }
84 template<typename SeverityCountsT = SeverityCounts>
85 AmiAggregationResponse& WithSeverityCounts(SeverityCountsT&& value) { SetSeverityCounts(std::forward<SeverityCountsT>(value)); return *this;}
87 private:
88
89 Aws::String m_accountId;
90 bool m_accountIdHasBeenSet = false;
91
92 long long m_affectedInstances{0};
93 bool m_affectedInstancesHasBeenSet = false;
94
95 Aws::String m_ami;
96 bool m_amiHasBeenSet = false;
97
98 SeverityCounts m_severityCounts;
99 bool m_severityCountsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Inspector2
104} // namespace Aws
AWS_INSPECTOR2_API AmiAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
AmiAggregationResponse & WithAffectedInstances(long long value)
AWS_INSPECTOR2_API AmiAggregationResponse()=default
AmiAggregationResponse & WithAmi(AmiT &&value)
AWS_INSPECTOR2_API AmiAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AmiAggregationResponse & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AmiAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue