AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
52 template<typename ArnT = Aws::String>
53 Exclusion& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
64 template<typename TitleT = Aws::String>
65 Exclusion& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 Exclusion& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
84 inline const Aws::String& GetRecommendation() const { return m_recommendation; }
85 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
86 template<typename RecommendationT = Aws::String>
87 void SetRecommendation(RecommendationT&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::forward<RecommendationT>(value); }
88 template<typename RecommendationT = Aws::String>
89 Exclusion& WithRecommendation(RecommendationT&& value) { SetRecommendation(std::forward<RecommendationT>(value)); return *this;}
91
93
96 inline const Aws::Vector<Scope>& GetScopes() const { return m_scopes; }
97 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
98 template<typename ScopesT = Aws::Vector<Scope>>
99 void SetScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes = std::forward<ScopesT>(value); }
100 template<typename ScopesT = Aws::Vector<Scope>>
101 Exclusion& WithScopes(ScopesT&& value) { SetScopes(std::forward<ScopesT>(value)); return *this;}
102 template<typename ScopesT = Scope>
103 Exclusion& AddScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes.emplace_back(std::forward<ScopesT>(value)); return *this; }
105
107
110 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
111 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
112 template<typename AttributesT = Aws::Vector<Attribute>>
113 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
114 template<typename AttributesT = Aws::Vector<Attribute>>
115 Exclusion& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
116 template<typename AttributesT = Attribute>
117 Exclusion& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
119 private:
120
121 Aws::String m_arn;
122 bool m_arnHasBeenSet = false;
123
124 Aws::String m_title;
125 bool m_titleHasBeenSet = false;
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
130 Aws::String m_recommendation;
131 bool m_recommendationHasBeenSet = false;
132
133 Aws::Vector<Scope> m_scopes;
134 bool m_scopesHasBeenSet = false;
135
136 Aws::Vector<Attribute> m_attributes;
137 bool m_attributesHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace Inspector
142} // namespace Aws
void SetTitle(TitleT &&value)
Definition Exclusion.h:63
void SetDescription(DescriptionT &&value)
Definition Exclusion.h:75
Exclusion & AddScopes(ScopesT &&value)
Definition Exclusion.h:103
const Aws::Vector< Scope > & GetScopes() const
Definition Exclusion.h:96
void SetRecommendation(RecommendationT &&value)
Definition Exclusion.h:87
Exclusion & WithArn(ArnT &&value)
Definition Exclusion.h:53
Exclusion & WithRecommendation(RecommendationT &&value)
Definition Exclusion.h:89
Exclusion & WithAttributes(AttributesT &&value)
Definition Exclusion.h:115
Exclusion & WithTitle(TitleT &&value)
Definition Exclusion.h:65
const Aws::String & GetDescription() const
Definition Exclusion.h:72
Exclusion & WithDescription(DescriptionT &&value)
Definition Exclusion.h:77
AWS_INSPECTOR_API Exclusion & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArn(ArnT &&value)
Definition Exclusion.h:51
Exclusion & AddAttributes(AttributesT &&value)
Definition Exclusion.h:117
const Aws::String & GetRecommendation() const
Definition Exclusion.h:84
Exclusion & WithScopes(ScopesT &&value)
Definition Exclusion.h:101
const Aws::String & GetArn() const
Definition Exclusion.h:48
AWS_INSPECTOR_API Exclusion()=default
bool RecommendationHasBeenSet() const
Definition Exclusion.h:85
void SetAttributes(AttributesT &&value)
Definition Exclusion.h:113
const Aws::Vector< Attribute > & GetAttributes() const
Definition Exclusion.h:110
AWS_INSPECTOR_API Exclusion(Aws::Utils::Json::JsonView jsonValue)
void SetScopes(ScopesT &&value)
Definition Exclusion.h:99
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