AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AccountIdT = Aws::String>
50 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
51 template<typename AccountIdT = Aws::String>
52 ImageLayerAggregationResponse& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetLayerHash() const { return m_layerHash; }
60 inline bool LayerHashHasBeenSet() const { return m_layerHashHasBeenSet; }
61 template<typename LayerHashT = Aws::String>
62 void SetLayerHash(LayerHashT&& value) { m_layerHashHasBeenSet = true; m_layerHash = std::forward<LayerHashT>(value); }
63 template<typename LayerHashT = Aws::String>
64 ImageLayerAggregationResponse& WithLayerHash(LayerHashT&& value) { SetLayerHash(std::forward<LayerHashT>(value)); return *this;}
66
68
71 inline const Aws::String& GetRepository() const { return m_repository; }
72 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
73 template<typename RepositoryT = Aws::String>
74 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
75 template<typename RepositoryT = Aws::String>
76 ImageLayerAggregationResponse& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
78
80
83 inline const Aws::String& GetResourceId() const { return m_resourceId; }
84 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
85 template<typename ResourceIdT = Aws::String>
86 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
87 template<typename ResourceIdT = Aws::String>
88 ImageLayerAggregationResponse& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
90
92
95 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
96 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
97 template<typename SeverityCountsT = SeverityCounts>
98 void SetSeverityCounts(SeverityCountsT&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::forward<SeverityCountsT>(value); }
99 template<typename SeverityCountsT = SeverityCounts>
100 ImageLayerAggregationResponse& WithSeverityCounts(SeverityCountsT&& value) { SetSeverityCounts(std::forward<SeverityCountsT>(value)); return *this;}
102 private:
103
104 Aws::String m_accountId;
105 bool m_accountIdHasBeenSet = false;
106
107 Aws::String m_layerHash;
108 bool m_layerHashHasBeenSet = false;
109
110 Aws::String m_repository;
111 bool m_repositoryHasBeenSet = false;
112
113 Aws::String m_resourceId;
114 bool m_resourceIdHasBeenSet = false;
115
116 SeverityCounts m_severityCounts;
117 bool m_severityCountsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Inspector2
122} // 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