AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageLayerAggregationResponse.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 ImageLayerAggregationResponse();
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
50 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
51 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
52 inline ImageLayerAggregationResponse& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
53 inline ImageLayerAggregationResponse& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
54 inline ImageLayerAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;}
56
58
61 inline const Aws::String& GetLayerHash() const{ return m_layerHash; }
62 inline bool LayerHashHasBeenSet() const { return m_layerHashHasBeenSet; }
63 inline void SetLayerHash(const Aws::String& value) { m_layerHashHasBeenSet = true; m_layerHash = value; }
64 inline void SetLayerHash(Aws::String&& value) { m_layerHashHasBeenSet = true; m_layerHash = std::move(value); }
65 inline void SetLayerHash(const char* value) { m_layerHashHasBeenSet = true; m_layerHash.assign(value); }
66 inline ImageLayerAggregationResponse& WithLayerHash(const Aws::String& value) { SetLayerHash(value); return *this;}
67 inline ImageLayerAggregationResponse& WithLayerHash(Aws::String&& value) { SetLayerHash(std::move(value)); return *this;}
68 inline ImageLayerAggregationResponse& WithLayerHash(const char* value) { SetLayerHash(value); return *this;}
70
72
75 inline const Aws::String& GetRepository() const{ return m_repository; }
76 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
77 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
78 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
79 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
80 inline ImageLayerAggregationResponse& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
81 inline ImageLayerAggregationResponse& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
82 inline ImageLayerAggregationResponse& WithRepository(const char* value) { SetRepository(value); return *this;}
84
86
89 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
90 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
91 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
92 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
93 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
94 inline ImageLayerAggregationResponse& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
95 inline ImageLayerAggregationResponse& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
96 inline ImageLayerAggregationResponse& WithResourceId(const char* value) { SetResourceId(value); return *this;}
98
100
103 inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; }
104 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
105 inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; }
106 inline void SetSeverityCounts(SeverityCounts&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::move(value); }
108 inline ImageLayerAggregationResponse& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;}
110 private:
111
112 Aws::String m_accountId;
113 bool m_accountIdHasBeenSet = false;
114
115 Aws::String m_layerHash;
116 bool m_layerHashHasBeenSet = false;
117
118 Aws::String m_repository;
119 bool m_repositoryHasBeenSet = false;
120
121 Aws::String m_resourceId;
122 bool m_resourceIdHasBeenSet = false;
123
124 SeverityCounts m_severityCounts;
125 bool m_severityCountsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Inspector2
130} // namespace Aws
ImageLayerAggregationResponse & WithResourceId(const Aws::String &value)
ImageLayerAggregationResponse & WithRepository(Aws::String &&value)
ImageLayerAggregationResponse & WithResourceId(Aws::String &&value)
ImageLayerAggregationResponse & WithResourceId(const char *value)
ImageLayerAggregationResponse & WithRepository(const Aws::String &value)
ImageLayerAggregationResponse & WithRepository(const char *value)
ImageLayerAggregationResponse & WithLayerHash(Aws::String &&value)
ImageLayerAggregationResponse & WithAccountId(const char *value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
ImageLayerAggregationResponse & WithAccountId(Aws::String &&value)
AWS_INSPECTOR2_API ImageLayerAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageLayerAggregationResponse & WithLayerHash(const Aws::String &value)
ImageLayerAggregationResponse & WithLayerHash(const char *value)
AWS_INSPECTOR2_API ImageLayerAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
ImageLayerAggregationResponse & WithAccountId(const Aws::String &value)
ImageLayerAggregationResponse & WithSeverityCounts(const SeverityCounts &value)
ImageLayerAggregationResponse & WithSeverityCounts(SeverityCounts &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue