AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
49 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
50 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
51 inline AmiAggregationResponse& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
52 inline AmiAggregationResponse& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
53 inline AmiAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;}
55
57
60 inline long long GetAffectedInstances() const{ return m_affectedInstances; }
61 inline bool AffectedInstancesHasBeenSet() const { return m_affectedInstancesHasBeenSet; }
62 inline void SetAffectedInstances(long long value) { m_affectedInstancesHasBeenSet = true; m_affectedInstances = value; }
63 inline AmiAggregationResponse& WithAffectedInstances(long long value) { SetAffectedInstances(value); return *this;}
65
67
70 inline const Aws::String& GetAmi() const{ return m_ami; }
71 inline bool AmiHasBeenSet() const { return m_amiHasBeenSet; }
72 inline void SetAmi(const Aws::String& value) { m_amiHasBeenSet = true; m_ami = value; }
73 inline void SetAmi(Aws::String&& value) { m_amiHasBeenSet = true; m_ami = std::move(value); }
74 inline void SetAmi(const char* value) { m_amiHasBeenSet = true; m_ami.assign(value); }
75 inline AmiAggregationResponse& WithAmi(const Aws::String& value) { SetAmi(value); return *this;}
76 inline AmiAggregationResponse& WithAmi(Aws::String&& value) { SetAmi(std::move(value)); return *this;}
77 inline AmiAggregationResponse& WithAmi(const char* value) { SetAmi(value); return *this;}
79
81
84 inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; }
85 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
86 inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; }
87 inline void SetSeverityCounts(SeverityCounts&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::move(value); }
88 inline AmiAggregationResponse& WithSeverityCounts(const SeverityCounts& value) { SetSeverityCounts(value); return *this;}
89 inline AmiAggregationResponse& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;}
91 private:
92
93 Aws::String m_accountId;
94 bool m_accountIdHasBeenSet = false;
95
96 long long m_affectedInstances;
97 bool m_affectedInstancesHasBeenSet = false;
98
99 Aws::String m_ami;
100 bool m_amiHasBeenSet = false;
101
102 SeverityCounts m_severityCounts;
103 bool m_severityCountsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Inspector2
108} // namespace Aws
AWS_INSPECTOR2_API AmiAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
AmiAggregationResponse & WithAffectedInstances(long long value)
AmiAggregationResponse & WithAmi(Aws::String &&value)
AmiAggregationResponse & WithSeverityCounts(SeverityCounts &&value)
AmiAggregationResponse & WithAmi(const Aws::String &value)
void SetSeverityCounts(const SeverityCounts &value)
AmiAggregationResponse & WithAccountId(Aws::String &&value)
AmiAggregationResponse & WithSeverityCounts(const SeverityCounts &value)
AWS_INSPECTOR2_API AmiAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AmiAggregationResponse & WithAccountId(const Aws::String &value)
AmiAggregationResponse & WithAmi(const char *value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AmiAggregationResponse & WithAccountId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue