AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Exclusion.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector/model/Scope.h>
11#include <aws/inspector/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 Inspector
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_INSPECTOR_API Exclusion();
39 AWS_INSPECTOR_API Exclusion(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INSPECTOR_API Exclusion& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const{ return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
52 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
53 inline Exclusion& WithArn(const Aws::String& value) { SetArn(value); return *this;}
54 inline Exclusion& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
55 inline Exclusion& WithArn(const char* value) { SetArn(value); return *this;}
57
59
62 inline const Aws::String& GetTitle() const{ return m_title; }
63 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
64 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
65 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
66 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
67 inline Exclusion& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
68 inline Exclusion& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
69 inline Exclusion& WithTitle(const char* value) { SetTitle(value); return *this;}
71
73
76 inline const Aws::String& GetDescription() const{ return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
79 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
80 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
81 inline Exclusion& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
82 inline Exclusion& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
83 inline Exclusion& WithDescription(const char* value) { SetDescription(value); return *this;}
85
87
90 inline const Aws::String& GetRecommendation() const{ return m_recommendation; }
91 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
92 inline void SetRecommendation(const Aws::String& value) { m_recommendationHasBeenSet = true; m_recommendation = value; }
93 inline void SetRecommendation(Aws::String&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::move(value); }
94 inline void SetRecommendation(const char* value) { m_recommendationHasBeenSet = true; m_recommendation.assign(value); }
95 inline Exclusion& WithRecommendation(const Aws::String& value) { SetRecommendation(value); return *this;}
96 inline Exclusion& WithRecommendation(Aws::String&& value) { SetRecommendation(std::move(value)); return *this;}
97 inline Exclusion& WithRecommendation(const char* value) { SetRecommendation(value); return *this;}
99
101
104 inline const Aws::Vector<Scope>& GetScopes() const{ return m_scopes; }
105 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
106 inline void SetScopes(const Aws::Vector<Scope>& value) { m_scopesHasBeenSet = true; m_scopes = value; }
107 inline void SetScopes(Aws::Vector<Scope>&& value) { m_scopesHasBeenSet = true; m_scopes = std::move(value); }
108 inline Exclusion& WithScopes(const Aws::Vector<Scope>& value) { SetScopes(value); return *this;}
109 inline Exclusion& WithScopes(Aws::Vector<Scope>&& value) { SetScopes(std::move(value)); return *this;}
110 inline Exclusion& AddScopes(const Scope& value) { m_scopesHasBeenSet = true; m_scopes.push_back(value); return *this; }
111 inline Exclusion& AddScopes(Scope&& value) { m_scopesHasBeenSet = true; m_scopes.push_back(std::move(value)); return *this; }
113
115
118 inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
119 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
120 inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
121 inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
122 inline Exclusion& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
123 inline Exclusion& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
124 inline Exclusion& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
125 inline Exclusion& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
127 private:
128
129 Aws::String m_arn;
130 bool m_arnHasBeenSet = false;
131
132 Aws::String m_title;
133 bool m_titleHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 Aws::String m_recommendation;
139 bool m_recommendationHasBeenSet = false;
140
141 Aws::Vector<Scope> m_scopes;
142 bool m_scopesHasBeenSet = false;
143
144 Aws::Vector<Attribute> m_attributes;
145 bool m_attributesHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Inspector
150} // namespace Aws
Exclusion & WithAttributes(const Aws::Vector< Attribute > &value)
Definition Exclusion.h:122
const Aws::Vector< Scope > & GetScopes() const
Definition Exclusion.h:104
void SetDescription(const Aws::String &value)
Definition Exclusion.h:78
Exclusion & WithDescription(Aws::String &&value)
Definition Exclusion.h:82
void SetTitle(Aws::String &&value)
Definition Exclusion.h:65
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition Exclusion.h:121
void SetArn(const Aws::String &value)
Definition Exclusion.h:50
void SetDescription(const char *value)
Definition Exclusion.h:80
void SetTitle(const Aws::String &value)
Definition Exclusion.h:64
Exclusion & WithTitle(Aws::String &&value)
Definition Exclusion.h:68
const Aws::String & GetDescription() const
Definition Exclusion.h:76
void SetScopes(const Aws::Vector< Scope > &value)
Definition Exclusion.h:106
void SetArn(Aws::String &&value)
Definition Exclusion.h:51
AWS_INSPECTOR_API Exclusion & operator=(Aws::Utils::Json::JsonView jsonValue)
Exclusion & WithRecommendation(Aws::String &&value)
Definition Exclusion.h:96
Exclusion & AddScopes(Scope &&value)
Definition Exclusion.h:111
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition Exclusion.h:120
Exclusion & WithDescription(const Aws::String &value)
Definition Exclusion.h:81
Exclusion & WithTitle(const Aws::String &value)
Definition Exclusion.h:67
void SetArn(const char *value)
Definition Exclusion.h:52
Exclusion & WithTitle(const char *value)
Definition Exclusion.h:69
const Aws::String & GetRecommendation() const
Definition Exclusion.h:90
void SetRecommendation(Aws::String &&value)
Definition Exclusion.h:93
Exclusion & AddScopes(const Scope &value)
Definition Exclusion.h:110
const Aws::String & GetArn() const
Definition Exclusion.h:48
bool RecommendationHasBeenSet() const
Definition Exclusion.h:91
void SetRecommendation(const char *value)
Definition Exclusion.h:94
Exclusion & WithAttributes(Aws::Vector< Attribute > &&value)
Definition Exclusion.h:123
void SetDescription(Aws::String &&value)
Definition Exclusion.h:79
void SetScopes(Aws::Vector< Scope > &&value)
Definition Exclusion.h:107
Exclusion & WithScopes(const Aws::Vector< Scope > &value)
Definition Exclusion.h:108
const Aws::Vector< Attribute > & GetAttributes() const
Definition Exclusion.h:118
AWS_INSPECTOR_API Exclusion(Aws::Utils::Json::JsonView jsonValue)
void SetRecommendation(const Aws::String &value)
Definition Exclusion.h:92
Exclusion & WithScopes(Aws::Vector< Scope > &&value)
Definition Exclusion.h:109
Exclusion & WithRecommendation(const char *value)
Definition Exclusion.h:97
Exclusion & WithRecommendation(const Aws::String &value)
Definition Exclusion.h:95
Exclusion & WithArn(const Aws::String &value)
Definition Exclusion.h:53
Exclusion & WithArn(const char *value)
Definition Exclusion.h:55
AWS_INSPECTOR_API Exclusion()
void SetTitle(const char *value)
Definition Exclusion.h:66
Exclusion & AddAttributes(const Attribute &value)
Definition Exclusion.h:124
Exclusion & AddAttributes(Attribute &&value)
Definition Exclusion.h:125
Exclusion & WithArn(Aws::String &&value)
Definition Exclusion.h:54
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
Exclusion & WithDescription(const char *value)
Definition Exclusion.h:83
const Aws::String & GetTitle() const
Definition Exclusion.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue