AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AmiAggregationResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/SeverityCounts.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR2_API AmiAggregationResponse() = default;
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAmi() const { return m_ami; }
41 inline bool AmiHasBeenSet() const { return m_amiHasBeenSet; }
42 template <typename AmiT = Aws::String>
43 void SetAmi(AmiT&& value) {
44 m_amiHasBeenSet = true;
45 m_ami = std::forward<AmiT>(value);
46 }
47 template <typename AmiT = Aws::String>
49 SetAmi(std::forward<AmiT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAccountId() const { return m_accountId; }
59 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
60 template <typename AccountIdT = Aws::String>
61 void SetAccountId(AccountIdT&& value) {
62 m_accountIdHasBeenSet = true;
63 m_accountId = std::forward<AccountIdT>(value);
64 }
65 template <typename AccountIdT = Aws::String>
67 SetAccountId(std::forward<AccountIdT>(value));
68 return *this;
69 }
71
73
76 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
77 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
78 template <typename SeverityCountsT = SeverityCounts>
79 void SetSeverityCounts(SeverityCountsT&& value) {
80 m_severityCountsHasBeenSet = true;
81 m_severityCounts = std::forward<SeverityCountsT>(value);
82 }
83 template <typename SeverityCountsT = SeverityCounts>
84 AmiAggregationResponse& WithSeverityCounts(SeverityCountsT&& value) {
85 SetSeverityCounts(std::forward<SeverityCountsT>(value));
86 return *this;
87 }
89
91
94 inline long long GetAffectedInstances() const { return m_affectedInstances; }
95 inline bool AffectedInstancesHasBeenSet() const { return m_affectedInstancesHasBeenSet; }
96 inline void SetAffectedInstances(long long value) {
97 m_affectedInstancesHasBeenSet = true;
98 m_affectedInstances = value;
99 }
102 return *this;
103 }
105 private:
106 Aws::String m_ami;
107
108 Aws::String m_accountId;
109
110 SeverityCounts m_severityCounts;
111
112 long long m_affectedInstances{0};
113 bool m_amiHasBeenSet = false;
114 bool m_accountIdHasBeenSet = false;
115 bool m_severityCountsHasBeenSet = false;
116 bool m_affectedInstancesHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Inspector2
121} // 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