AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline ImageScanFinding& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline ImageScanFinding& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline ImageScanFinding& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline ImageScanFinding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline ImageScanFinding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline ImageScanFinding& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline const Aws::String& GetUri() const{ return m_uri; }
77 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
78 inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; }
79 inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); }
80 inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); }
81 inline ImageScanFinding& WithUri(const Aws::String& value) { SetUri(value); return *this;}
82 inline ImageScanFinding& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;}
83 inline ImageScanFinding& WithUri(const char* value) { SetUri(value); return *this;}
85
87
90 inline const FindingSeverity& GetSeverity() const{ return m_severity; }
91 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
92 inline void SetSeverity(const FindingSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
93 inline void SetSeverity(FindingSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
94 inline ImageScanFinding& WithSeverity(const FindingSeverity& value) { SetSeverity(value); return *this;}
95 inline ImageScanFinding& WithSeverity(FindingSeverity&& value) { SetSeverity(std::move(value)); return *this;}
97
99
103 inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
104 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
105 inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
106 inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
107 inline ImageScanFinding& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
108 inline ImageScanFinding& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
109 inline ImageScanFinding& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
110 inline ImageScanFinding& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
112 private:
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
120 Aws::String m_uri;
121 bool m_uriHasBeenSet = false;
122
123 FindingSeverity m_severity;
124 bool m_severityHasBeenSet = false;
125
126 Aws::Vector<Attribute> m_attributes;
127 bool m_attributesHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace ECR
132} // namespace Aws
void SetUri(Aws::String &&value)
ImageScanFinding & WithSeverity(const FindingSeverity &value)
void SetDescription(const Aws::String &value)
ImageScanFinding & WithName(Aws::String &&value)
ImageScanFinding & WithAttributes(Aws::Vector< Attribute > &&value)
void SetDescription(Aws::String &&value)
ImageScanFinding & WithDescription(const char *value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
ImageScanFinding & WithName(const char *value)
ImageScanFinding & WithUri(Aws::String &&value)
const Aws::String & GetUri() const
void SetAttributes(const Aws::Vector< Attribute > &value)
ImageScanFinding & WithDescription(Aws::String &&value)
ImageScanFinding & WithDescription(const Aws::String &value)
ImageScanFinding & AddAttributes(Attribute &&value)
ImageScanFinding & AddAttributes(const Attribute &value)
AWS_ECR_API ImageScanFinding(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Attribute > & GetAttributes() const
ImageScanFinding & WithSeverity(FindingSeverity &&value)
ImageScanFinding & WithUri(const char *value)
ImageScanFinding & WithUri(const Aws::String &value)
void SetName(Aws::String &&value)
const Aws::String & GetName() const
void SetAttributes(Aws::Vector< Attribute > &&value)
const FindingSeverity & GetSeverity() const
ImageScanFinding & WithAttributes(const Aws::Vector< Attribute > &value)
void SetUri(const Aws::String &value)
void SetSeverity(const FindingSeverity &value)
void SetDescription(const char *value)
void SetName(const char *value)
void SetSeverity(FindingSeverity &&value)
void SetName(const Aws::String &value)
AWS_ECR_API ImageScanFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageScanFinding & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue