AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ImageScanFinding.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecr/ECR_EXPORTS.h>
10#include <aws/ecr/model/Attribute.h>
11#include <aws/ecr/model/FindingSeverity.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECR {
23namespace Model {
24
32 public:
33 AWS_ECR_API ImageScanFinding() = default;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 ImageScanFinding& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
68 ImageScanFinding& WithDescription(DescriptionT&& value) {
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetUri() const { return m_uri; }
79 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
80 template <typename UriT = Aws::String>
81 void SetUri(UriT&& value) {
82 m_uriHasBeenSet = true;
83 m_uri = std::forward<UriT>(value);
84 }
85 template <typename UriT = Aws::String>
86 ImageScanFinding& WithUri(UriT&& value) {
87 SetUri(std::forward<UriT>(value));
88 return *this;
89 }
91
93
96 inline FindingSeverity GetSeverity() const { return m_severity; }
97 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
98 inline void SetSeverity(FindingSeverity value) {
99 m_severityHasBeenSet = true;
100 m_severity = value;
101 }
103 SetSeverity(value);
104 return *this;
105 }
107
109
113 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
114 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
115 template <typename AttributesT = Aws::Vector<Attribute>>
116 void SetAttributes(AttributesT&& value) {
117 m_attributesHasBeenSet = true;
118 m_attributes = std::forward<AttributesT>(value);
119 }
120 template <typename AttributesT = Aws::Vector<Attribute>>
121 ImageScanFinding& WithAttributes(AttributesT&& value) {
122 SetAttributes(std::forward<AttributesT>(value));
123 return *this;
124 }
125 template <typename AttributesT = Attribute>
126 ImageScanFinding& AddAttributes(AttributesT&& value) {
127 m_attributesHasBeenSet = true;
128 m_attributes.emplace_back(std::forward<AttributesT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_name;
134
135 Aws::String m_description;
136
137 Aws::String m_uri;
138
140
141 Aws::Vector<Attribute> m_attributes;
142 bool m_nameHasBeenSet = false;
143 bool m_descriptionHasBeenSet = false;
144 bool m_uriHasBeenSet = false;
145 bool m_severityHasBeenSet = false;
146 bool m_attributesHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace ECR
151} // namespace Aws
AWS_ECR_API ImageScanFinding()=default
ImageScanFinding & AddAttributes(AttributesT &&value)
ImageScanFinding & WithSeverity(FindingSeverity value)
ImageScanFinding & WithDescription(DescriptionT &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
ImageScanFinding & WithName(NameT &&value)
const Aws::String & GetUri() const
void SetSeverity(FindingSeverity value)
AWS_ECR_API ImageScanFinding(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Attribute > & GetAttributes() const
ImageScanFinding & WithAttributes(AttributesT &&value)
void SetAttributes(AttributesT &&value)
const Aws::String & GetName() const
ImageScanFinding & WithUri(UriT &&value)
FindingSeverity GetSeverity() const
AWS_ECR_API ImageScanFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue