AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TitleT = Aws::String>
51 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
52 template<typename TitleT = Aws::String>
53 ExclusionPreview& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 ExclusionPreview& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
72 inline const Aws::String& GetRecommendation() const { return m_recommendation; }
73 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
74 template<typename RecommendationT = Aws::String>
75 void SetRecommendation(RecommendationT&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::forward<RecommendationT>(value); }
76 template<typename RecommendationT = Aws::String>
77 ExclusionPreview& WithRecommendation(RecommendationT&& value) { SetRecommendation(std::forward<RecommendationT>(value)); return *this;}
79
81
84 inline const Aws::Vector<Scope>& GetScopes() const { return m_scopes; }
85 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
86 template<typename ScopesT = Aws::Vector<Scope>>
87 void SetScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes = std::forward<ScopesT>(value); }
88 template<typename ScopesT = Aws::Vector<Scope>>
89 ExclusionPreview& WithScopes(ScopesT&& value) { SetScopes(std::forward<ScopesT>(value)); return *this;}
90 template<typename ScopesT = Scope>
91 ExclusionPreview& AddScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes.emplace_back(std::forward<ScopesT>(value)); return *this; }
93
95
98 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
99 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
100 template<typename AttributesT = Aws::Vector<Attribute>>
101 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
102 template<typename AttributesT = Aws::Vector<Attribute>>
103 ExclusionPreview& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
104 template<typename AttributesT = Attribute>
105 ExclusionPreview& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
107 private:
108
109 Aws::String m_title;
110 bool m_titleHasBeenSet = false;
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
115 Aws::String m_recommendation;
116 bool m_recommendationHasBeenSet = false;
117
118 Aws::Vector<Scope> m_scopes;
119 bool m_scopesHasBeenSet = false;
120
121 Aws::Vector<Attribute> m_attributes;
122 bool m_attributesHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Inspector
127} // 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