AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ImageLayerAggregationResponse.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 ImageLayerAggregationResponse() = default;
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRepository() const { return m_repository; }
41 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
42 template <typename RepositoryT = Aws::String>
43 void SetRepository(RepositoryT&& value) {
44 m_repositoryHasBeenSet = true;
45 m_repository = std::forward<RepositoryT>(value);
46 }
47 template <typename RepositoryT = Aws::String>
49 SetRepository(std::forward<RepositoryT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetResourceId() const { return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 template <typename ResourceIdT = Aws::String>
61 void SetResourceId(ResourceIdT&& value) {
62 m_resourceIdHasBeenSet = true;
63 m_resourceId = std::forward<ResourceIdT>(value);
64 }
65 template <typename ResourceIdT = Aws::String>
67 SetResourceId(std::forward<ResourceIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetLayerHash() const { return m_layerHash; }
77 inline bool LayerHashHasBeenSet() const { return m_layerHashHasBeenSet; }
78 template <typename LayerHashT = Aws::String>
79 void SetLayerHash(LayerHashT&& value) {
80 m_layerHashHasBeenSet = true;
81 m_layerHash = std::forward<LayerHashT>(value);
82 }
83 template <typename LayerHashT = Aws::String>
85 SetLayerHash(std::forward<LayerHashT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetAccountId() const { return m_accountId; }
96 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
97 template <typename AccountIdT = Aws::String>
98 void SetAccountId(AccountIdT&& value) {
99 m_accountIdHasBeenSet = true;
100 m_accountId = std::forward<AccountIdT>(value);
101 }
102 template <typename AccountIdT = Aws::String>
104 SetAccountId(std::forward<AccountIdT>(value));
105 return *this;
106 }
108
110
113 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
114 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
115 template <typename SeverityCountsT = SeverityCounts>
116 void SetSeverityCounts(SeverityCountsT&& value) {
117 m_severityCountsHasBeenSet = true;
118 m_severityCounts = std::forward<SeverityCountsT>(value);
119 }
120 template <typename SeverityCountsT = SeverityCounts>
122 SetSeverityCounts(std::forward<SeverityCountsT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_repository;
128
129 Aws::String m_resourceId;
130
131 Aws::String m_layerHash;
132
133 Aws::String m_accountId;
134
135 SeverityCounts m_severityCounts;
136 bool m_repositoryHasBeenSet = false;
137 bool m_resourceIdHasBeenSet = false;
138 bool m_layerHashHasBeenSet = false;
139 bool m_accountIdHasBeenSet = false;
140 bool m_severityCountsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace Inspector2
145} // namespace Aws
ImageLayerAggregationResponse & WithAccountId(AccountIdT &&value)
ImageLayerAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API ImageLayerAggregationResponse()=default
ImageLayerAggregationResponse & WithLayerHash(LayerHashT &&value)
AWS_INSPECTOR2_API ImageLayerAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API ImageLayerAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
ImageLayerAggregationResponse & WithRepository(RepositoryT &&value)
ImageLayerAggregationResponse & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue