AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Exclusion.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/inspector/Inspector_EXPORTS.h>
10#include <aws/inspector/model/Attribute.h>
11#include <aws/inspector/model/Scope.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector {
23namespace Model {
24
31class Exclusion {
32 public:
33 AWS_INSPECTOR_API Exclusion() = default;
34 AWS_INSPECTOR_API Exclusion(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR_API Exclusion& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 Exclusion& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetTitle() const { return m_title; }
61 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
62 template <typename TitleT = Aws::String>
63 void SetTitle(TitleT&& value) {
64 m_titleHasBeenSet = true;
65 m_title = std::forward<TitleT>(value);
66 }
67 template <typename TitleT = Aws::String>
68 Exclusion& WithTitle(TitleT&& value) {
69 SetTitle(std::forward<TitleT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 Exclusion& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetRecommendation() const { return m_recommendation; }
97 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
98 template <typename RecommendationT = Aws::String>
99 void SetRecommendation(RecommendationT&& value) {
100 m_recommendationHasBeenSet = true;
101 m_recommendation = std::forward<RecommendationT>(value);
102 }
103 template <typename RecommendationT = Aws::String>
104 Exclusion& WithRecommendation(RecommendationT&& value) {
105 SetRecommendation(std::forward<RecommendationT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Scope>& GetScopes() const { return m_scopes; }
115 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
116 template <typename ScopesT = Aws::Vector<Scope>>
117 void SetScopes(ScopesT&& value) {
118 m_scopesHasBeenSet = true;
119 m_scopes = std::forward<ScopesT>(value);
120 }
121 template <typename ScopesT = Aws::Vector<Scope>>
122 Exclusion& WithScopes(ScopesT&& value) {
123 SetScopes(std::forward<ScopesT>(value));
124 return *this;
125 }
126 template <typename ScopesT = Scope>
127 Exclusion& AddScopes(ScopesT&& value) {
128 m_scopesHasBeenSet = true;
129 m_scopes.emplace_back(std::forward<ScopesT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
139 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
140 template <typename AttributesT = Aws::Vector<Attribute>>
141 void SetAttributes(AttributesT&& value) {
142 m_attributesHasBeenSet = true;
143 m_attributes = std::forward<AttributesT>(value);
144 }
145 template <typename AttributesT = Aws::Vector<Attribute>>
146 Exclusion& WithAttributes(AttributesT&& value) {
147 SetAttributes(std::forward<AttributesT>(value));
148 return *this;
149 }
150 template <typename AttributesT = Attribute>
151 Exclusion& AddAttributes(AttributesT&& value) {
152 m_attributesHasBeenSet = true;
153 m_attributes.emplace_back(std::forward<AttributesT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_arn;
159
160 Aws::String m_title;
161
162 Aws::String m_description;
163
164 Aws::String m_recommendation;
165
166 Aws::Vector<Scope> m_scopes;
167
168 Aws::Vector<Attribute> m_attributes;
169 bool m_arnHasBeenSet = false;
170 bool m_titleHasBeenSet = false;
171 bool m_descriptionHasBeenSet = false;
172 bool m_recommendationHasBeenSet = false;
173 bool m_scopesHasBeenSet = false;
174 bool m_attributesHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace Inspector
179} // namespace Aws
void SetTitle(TitleT &&value)
Definition Exclusion.h:63
void SetDescription(DescriptionT &&value)
Definition Exclusion.h:81
Exclusion & AddScopes(ScopesT &&value)
Definition Exclusion.h:127
const Aws::Vector< Scope > & GetScopes() const
Definition Exclusion.h:114
void SetRecommendation(RecommendationT &&value)
Definition Exclusion.h:99
Exclusion & WithArn(ArnT &&value)
Definition Exclusion.h:50
Exclusion & WithRecommendation(RecommendationT &&value)
Definition Exclusion.h:104
Exclusion & WithAttributes(AttributesT &&value)
Definition Exclusion.h:146
Exclusion & WithTitle(TitleT &&value)
Definition Exclusion.h:68
const Aws::String & GetDescription() const
Definition Exclusion.h:78
Exclusion & WithDescription(DescriptionT &&value)
Definition Exclusion.h:86
AWS_INSPECTOR_API Exclusion & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArn(ArnT &&value)
Definition Exclusion.h:45
Exclusion & AddAttributes(AttributesT &&value)
Definition Exclusion.h:151
const Aws::String & GetRecommendation() const
Definition Exclusion.h:96
Exclusion & WithScopes(ScopesT &&value)
Definition Exclusion.h:122
const Aws::String & GetArn() const
Definition Exclusion.h:42
AWS_INSPECTOR_API Exclusion()=default
bool RecommendationHasBeenSet() const
Definition Exclusion.h:97
void SetAttributes(AttributesT &&value)
Definition Exclusion.h:141
const Aws::Vector< Attribute > & GetAttributes() const
Definition Exclusion.h:138
AWS_INSPECTOR_API Exclusion(Aws::Utils::Json::JsonView jsonValue)
void SetScopes(ScopesT &&value)
Definition Exclusion.h:117
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTitle() const
Definition Exclusion.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue