AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImageScanFinding.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecr/model/FindingSeverity.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecr/model/Attribute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ECR
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ECR_API ImageScanFinding() = default;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 ImageScanFinding& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 ImageScanFinding& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
72 inline const Aws::String& GetUri() const { return m_uri; }
73 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
74 template<typename UriT = Aws::String>
75 void SetUri(UriT&& value) { m_uriHasBeenSet = true; m_uri = std::forward<UriT>(value); }
76 template<typename UriT = Aws::String>
77 ImageScanFinding& WithUri(UriT&& value) { SetUri(std::forward<UriT>(value)); return *this;}
79
81
84 inline FindingSeverity GetSeverity() const { return m_severity; }
85 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
86 inline void SetSeverity(FindingSeverity value) { m_severityHasBeenSet = true; m_severity = value; }
87 inline ImageScanFinding& WithSeverity(FindingSeverity value) { SetSeverity(value); return *this;}
89
91
95 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
96 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
97 template<typename AttributesT = Aws::Vector<Attribute>>
98 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
99 template<typename AttributesT = Aws::Vector<Attribute>>
100 ImageScanFinding& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
101 template<typename AttributesT = Attribute>
102 ImageScanFinding& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
104 private:
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 Aws::String m_description;
110 bool m_descriptionHasBeenSet = false;
111
112 Aws::String m_uri;
113 bool m_uriHasBeenSet = false;
114
116 bool m_severityHasBeenSet = false;
117
118 Aws::Vector<Attribute> m_attributes;
119 bool m_attributesHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace ECR
124} // 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