AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExclusionPreview.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 ExclusionPreview();
39 AWS_INSPECTOR_API ExclusionPreview(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetTitle() const{ return m_title; }
49 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
50 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
51 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
52 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
53 inline ExclusionPreview& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
54 inline ExclusionPreview& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
55 inline ExclusionPreview& WithTitle(const char* value) { SetTitle(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 ExclusionPreview& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline ExclusionPreview& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline ExclusionPreview& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline const Aws::String& GetRecommendation() const{ return m_recommendation; }
77 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
78 inline void SetRecommendation(const Aws::String& value) { m_recommendationHasBeenSet = true; m_recommendation = value; }
79 inline void SetRecommendation(Aws::String&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::move(value); }
80 inline void SetRecommendation(const char* value) { m_recommendationHasBeenSet = true; m_recommendation.assign(value); }
81 inline ExclusionPreview& WithRecommendation(const Aws::String& value) { SetRecommendation(value); return *this;}
82 inline ExclusionPreview& WithRecommendation(Aws::String&& value) { SetRecommendation(std::move(value)); return *this;}
83 inline ExclusionPreview& WithRecommendation(const char* value) { SetRecommendation(value); return *this;}
85
87
90 inline const Aws::Vector<Scope>& GetScopes() const{ return m_scopes; }
91 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
92 inline void SetScopes(const Aws::Vector<Scope>& value) { m_scopesHasBeenSet = true; m_scopes = value; }
93 inline void SetScopes(Aws::Vector<Scope>&& value) { m_scopesHasBeenSet = true; m_scopes = std::move(value); }
94 inline ExclusionPreview& WithScopes(const Aws::Vector<Scope>& value) { SetScopes(value); return *this;}
95 inline ExclusionPreview& WithScopes(Aws::Vector<Scope>&& value) { SetScopes(std::move(value)); return *this;}
96 inline ExclusionPreview& AddScopes(const Scope& value) { m_scopesHasBeenSet = true; m_scopes.push_back(value); return *this; }
97 inline ExclusionPreview& AddScopes(Scope&& value) { m_scopesHasBeenSet = true; m_scopes.push_back(std::move(value)); return *this; }
99
101
104 inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
105 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
106 inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
107 inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
108 inline ExclusionPreview& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
109 inline ExclusionPreview& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
110 inline ExclusionPreview& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
111 inline ExclusionPreview& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
113 private:
114
115 Aws::String m_title;
116 bool m_titleHasBeenSet = false;
117
118 Aws::String m_description;
119 bool m_descriptionHasBeenSet = false;
120
121 Aws::String m_recommendation;
122 bool m_recommendationHasBeenSet = false;
123
124 Aws::Vector<Scope> m_scopes;
125 bool m_scopesHasBeenSet = false;
126
127 Aws::Vector<Attribute> m_attributes;
128 bool m_attributesHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Inspector
133} // namespace Aws
ExclusionPreview & AddAttributes(const Attribute &value)
ExclusionPreview & AddScopes(Scope &&value)
ExclusionPreview & WithDescription(const Aws::String &value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTitle(const Aws::String &value)
const Aws::String & GetRecommendation() const
ExclusionPreview & WithDescription(Aws::String &&value)
ExclusionPreview & WithTitle(const char *value)
void SetAttributes(const Aws::Vector< Attribute > &value)
void SetScopes(Aws::Vector< Scope > &&value)
void SetAttributes(Aws::Vector< Attribute > &&value)
void SetRecommendation(const Aws::String &value)
void SetRecommendation(Aws::String &&value)
ExclusionPreview & AddAttributes(Attribute &&value)
void SetDescription(Aws::String &&value)
const Aws::Vector< Attribute > & GetAttributes() const
ExclusionPreview & WithAttributes(Aws::Vector< Attribute > &&value)
AWS_INSPECTOR_API ExclusionPreview(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTitle() const
AWS_INSPECTOR_API ExclusionPreview & operator=(Aws::Utils::Json::JsonView jsonValue)
ExclusionPreview & WithScopes(Aws::Vector< Scope > &&value)
ExclusionPreview & WithAttributes(const Aws::Vector< Attribute > &value)
ExclusionPreview & WithDescription(const char *value)
ExclusionPreview & AddScopes(const Scope &value)
ExclusionPreview & WithTitle(Aws::String &&value)
ExclusionPreview & WithRecommendation(const char *value)
ExclusionPreview & WithScopes(const Aws::Vector< Scope > &value)
const Aws::Vector< Scope > & GetScopes() const
void SetDescription(const Aws::String &value)
ExclusionPreview & WithRecommendation(const Aws::String &value)
ExclusionPreview & WithTitle(const Aws::String &value)
void SetScopes(const Aws::Vector< Scope > &value)
const Aws::String & GetDescription() const
ExclusionPreview & WithRecommendation(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