AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ExclusionPreview.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
32 public:
33 AWS_INSPECTOR_API ExclusionPreview() = default;
34 AWS_INSPECTOR_API ExclusionPreview(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetTitle() const { return m_title; }
43 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
44 template <typename TitleT = Aws::String>
45 void SetTitle(TitleT&& value) {
46 m_titleHasBeenSet = true;
47 m_title = std::forward<TitleT>(value);
48 }
49 template <typename TitleT = Aws::String>
50 ExclusionPreview& WithTitle(TitleT&& value) {
51 SetTitle(std::forward<TitleT>(value));
52 return *this;
53 }
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) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
68 ExclusionPreview& WithDescription(DescriptionT&& value) {
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetRecommendation() const { return m_recommendation; }
79 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
80 template <typename RecommendationT = Aws::String>
81 void SetRecommendation(RecommendationT&& value) {
82 m_recommendationHasBeenSet = true;
83 m_recommendation = std::forward<RecommendationT>(value);
84 }
85 template <typename RecommendationT = Aws::String>
86 ExclusionPreview& WithRecommendation(RecommendationT&& value) {
87 SetRecommendation(std::forward<RecommendationT>(value));
88 return *this;
89 }
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) {
100 m_scopesHasBeenSet = true;
101 m_scopes = std::forward<ScopesT>(value);
102 }
103 template <typename ScopesT = Aws::Vector<Scope>>
104 ExclusionPreview& WithScopes(ScopesT&& value) {
105 SetScopes(std::forward<ScopesT>(value));
106 return *this;
107 }
108 template <typename ScopesT = Scope>
109 ExclusionPreview& AddScopes(ScopesT&& value) {
110 m_scopesHasBeenSet = true;
111 m_scopes.emplace_back(std::forward<ScopesT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
121 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
122 template <typename AttributesT = Aws::Vector<Attribute>>
123 void SetAttributes(AttributesT&& value) {
124 m_attributesHasBeenSet = true;
125 m_attributes = std::forward<AttributesT>(value);
126 }
127 template <typename AttributesT = Aws::Vector<Attribute>>
128 ExclusionPreview& WithAttributes(AttributesT&& value) {
129 SetAttributes(std::forward<AttributesT>(value));
130 return *this;
131 }
132 template <typename AttributesT = Attribute>
133 ExclusionPreview& AddAttributes(AttributesT&& value) {
134 m_attributesHasBeenSet = true;
135 m_attributes.emplace_back(std::forward<AttributesT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_title;
141
142 Aws::String m_description;
143
144 Aws::String m_recommendation;
145
146 Aws::Vector<Scope> m_scopes;
147
148 Aws::Vector<Attribute> m_attributes;
149 bool m_titleHasBeenSet = false;
150 bool m_descriptionHasBeenSet = false;
151 bool m_recommendationHasBeenSet = false;
152 bool m_scopesHasBeenSet = false;
153 bool m_attributesHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Inspector
158} // namespace Aws
ExclusionPreview & WithScopes(ScopesT &&value)
ExclusionPreview & WithTitle(TitleT &&value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRecommendation() const
ExclusionPreview & WithRecommendation(RecommendationT &&value)
AWS_INSPECTOR_API ExclusionPreview()=default
ExclusionPreview & WithAttributes(AttributesT &&value)
const Aws::Vector< Attribute > & GetAttributes() const
AWS_INSPECTOR_API ExclusionPreview(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
const Aws::String & GetTitle() const
AWS_INSPECTOR_API ExclusionPreview & operator=(Aws::Utils::Json::JsonView jsonValue)
ExclusionPreview & AddScopes(ScopesT &&value)
ExclusionPreview & WithDescription(DescriptionT &&value)
const Aws::Vector< Scope > & GetScopes() const
ExclusionPreview & AddAttributes(AttributesT &&value)
const Aws::String & GetDescription() const
void SetRecommendation(RecommendationT &&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