AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PackageAggregationResponse.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 PackageAggregationResponse();
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 PackageAggregationResponse& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
52 inline PackageAggregationResponse& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
53 inline PackageAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;}
55
57
60 inline const Aws::String& GetPackageName() const{ return m_packageName; }
61 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
62 inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; }
63 inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); }
64 inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); }
65 inline PackageAggregationResponse& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
66 inline PackageAggregationResponse& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
67 inline PackageAggregationResponse& WithPackageName(const char* value) { SetPackageName(value); return *this;}
69
71
74 inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; }
75 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
76 inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; }
77 inline void SetSeverityCounts(SeverityCounts&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::move(value); }
79 inline PackageAggregationResponse& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_accountId;
84 bool m_accountIdHasBeenSet = false;
85
86 Aws::String m_packageName;
87 bool m_packageNameHasBeenSet = false;
88
89 SeverityCounts m_severityCounts;
90 bool m_severityCountsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Inspector2
95} // namespace Aws
PackageAggregationResponse & WithPackageName(Aws::String &&value)
AWS_INSPECTOR2_API PackageAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
PackageAggregationResponse & WithAccountId(Aws::String &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
PackageAggregationResponse & WithAccountId(const char *value)
PackageAggregationResponse & WithPackageName(const Aws::String &value)
PackageAggregationResponse & WithSeverityCounts(SeverityCounts &&value)
PackageAggregationResponse & WithAccountId(const Aws::String &value)
AWS_INSPECTOR2_API PackageAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageAggregationResponse & WithSeverityCounts(const SeverityCounts &value)
PackageAggregationResponse & WithPackageName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue