AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ProductV2.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/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/IntegrationV2Type.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
29class ProductV2 {
30 public:
31 AWS_SECURITYHUB_API ProductV2() = default;
32 AWS_SECURITYHUB_API ProductV2(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API ProductV2& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetProductV2Name() const { return m_productV2Name; }
41 inline bool ProductV2NameHasBeenSet() const { return m_productV2NameHasBeenSet; }
42 template <typename ProductV2NameT = Aws::String>
43 void SetProductV2Name(ProductV2NameT&& value) {
44 m_productV2NameHasBeenSet = true;
45 m_productV2Name = std::forward<ProductV2NameT>(value);
46 }
47 template <typename ProductV2NameT = Aws::String>
48 ProductV2& WithProductV2Name(ProductV2NameT&& value) {
49 SetProductV2Name(std::forward<ProductV2NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCompanyName() const { return m_companyName; }
59 inline bool CompanyNameHasBeenSet() const { return m_companyNameHasBeenSet; }
60 template <typename CompanyNameT = Aws::String>
61 void SetCompanyName(CompanyNameT&& value) {
62 m_companyNameHasBeenSet = true;
63 m_companyName = std::forward<CompanyNameT>(value);
64 }
65 template <typename CompanyNameT = Aws::String>
66 ProductV2& WithCompanyName(CompanyNameT&& value) {
67 SetCompanyName(std::forward<CompanyNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 ProductV2& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<Aws::String>& GetCategories() const { return m_categories; }
95 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
96 template <typename CategoriesT = Aws::Vector<Aws::String>>
97 void SetCategories(CategoriesT&& value) {
98 m_categoriesHasBeenSet = true;
99 m_categories = std::forward<CategoriesT>(value);
100 }
101 template <typename CategoriesT = Aws::Vector<Aws::String>>
102 ProductV2& WithCategories(CategoriesT&& value) {
103 SetCategories(std::forward<CategoriesT>(value));
104 return *this;
105 }
106 template <typename CategoriesT = Aws::String>
107 ProductV2& AddCategories(CategoriesT&& value) {
108 m_categoriesHasBeenSet = true;
109 m_categories.emplace_back(std::forward<CategoriesT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<IntegrationV2Type>& GetIntegrationV2Types() const { return m_integrationV2Types; }
119 inline bool IntegrationV2TypesHasBeenSet() const { return m_integrationV2TypesHasBeenSet; }
120 template <typename IntegrationV2TypesT = Aws::Vector<IntegrationV2Type>>
121 void SetIntegrationV2Types(IntegrationV2TypesT&& value) {
122 m_integrationV2TypesHasBeenSet = true;
123 m_integrationV2Types = std::forward<IntegrationV2TypesT>(value);
124 }
125 template <typename IntegrationV2TypesT = Aws::Vector<IntegrationV2Type>>
126 ProductV2& WithIntegrationV2Types(IntegrationV2TypesT&& value) {
127 SetIntegrationV2Types(std::forward<IntegrationV2TypesT>(value));
128 return *this;
129 }
131 m_integrationV2TypesHasBeenSet = true;
132 m_integrationV2Types.push_back(value);
133 return *this;
134 }
136
138
141 inline const Aws::String& GetMarketplaceUrl() const { return m_marketplaceUrl; }
142 inline bool MarketplaceUrlHasBeenSet() const { return m_marketplaceUrlHasBeenSet; }
143 template <typename MarketplaceUrlT = Aws::String>
144 void SetMarketplaceUrl(MarketplaceUrlT&& value) {
145 m_marketplaceUrlHasBeenSet = true;
146 m_marketplaceUrl = std::forward<MarketplaceUrlT>(value);
147 }
148 template <typename MarketplaceUrlT = Aws::String>
149 ProductV2& WithMarketplaceUrl(MarketplaceUrlT&& value) {
150 SetMarketplaceUrl(std::forward<MarketplaceUrlT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetActivationUrl() const { return m_activationUrl; }
161 inline bool ActivationUrlHasBeenSet() const { return m_activationUrlHasBeenSet; }
162 template <typename ActivationUrlT = Aws::String>
163 void SetActivationUrl(ActivationUrlT&& value) {
164 m_activationUrlHasBeenSet = true;
165 m_activationUrl = std::forward<ActivationUrlT>(value);
166 }
167 template <typename ActivationUrlT = Aws::String>
168 ProductV2& WithActivationUrl(ActivationUrlT&& value) {
169 SetActivationUrl(std::forward<ActivationUrlT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_productV2Name;
175
176 Aws::String m_companyName;
177
178 Aws::String m_description;
179
180 Aws::Vector<Aws::String> m_categories;
181
182 Aws::Vector<IntegrationV2Type> m_integrationV2Types;
183
184 Aws::String m_marketplaceUrl;
185
186 Aws::String m_activationUrl;
187 bool m_productV2NameHasBeenSet = false;
188 bool m_companyNameHasBeenSet = false;
189 bool m_descriptionHasBeenSet = false;
190 bool m_categoriesHasBeenSet = false;
191 bool m_integrationV2TypesHasBeenSet = false;
192 bool m_marketplaceUrlHasBeenSet = false;
193 bool m_activationUrlHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace SecurityHub
198} // namespace Aws
const Aws::String & GetMarketplaceUrl() const
Definition ProductV2.h:141
void SetIntegrationV2Types(IntegrationV2TypesT &&value)
Definition ProductV2.h:121
ProductV2 & WithIntegrationV2Types(IntegrationV2TypesT &&value)
Definition ProductV2.h:126
void SetActivationUrl(ActivationUrlT &&value)
Definition ProductV2.h:163
const Aws::String & GetProductV2Name() const
Definition ProductV2.h:40
void SetMarketplaceUrl(MarketplaceUrlT &&value)
Definition ProductV2.h:144
void SetCategories(CategoriesT &&value)
Definition ProductV2.h:97
ProductV2 & AddIntegrationV2Types(IntegrationV2Type value)
Definition ProductV2.h:130
void SetCompanyName(CompanyNameT &&value)
Definition ProductV2.h:61
ProductV2 & WithActivationUrl(ActivationUrlT &&value)
Definition ProductV2.h:168
AWS_SECURITYHUB_API ProductV2()=default
const Aws::String & GetCompanyName() const
Definition ProductV2.h:58
ProductV2 & WithDescription(DescriptionT &&value)
Definition ProductV2.h:84
ProductV2 & WithMarketplaceUrl(MarketplaceUrlT &&value)
Definition ProductV2.h:149
const Aws::Vector< Aws::String > & GetCategories() const
Definition ProductV2.h:94
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ProductV2 & WithProductV2Name(ProductV2NameT &&value)
Definition ProductV2.h:48
void SetDescription(DescriptionT &&value)
Definition ProductV2.h:79
ProductV2 & WithCategories(CategoriesT &&value)
Definition ProductV2.h:102
void SetProductV2Name(ProductV2NameT &&value)
Definition ProductV2.h:43
const Aws::String & GetActivationUrl() const
Definition ProductV2.h:160
const Aws::String & GetDescription() const
Definition ProductV2.h:76
const Aws::Vector< IntegrationV2Type > & GetIntegrationV2Types() const
Definition ProductV2.h:118
ProductV2 & WithCompanyName(CompanyNameT &&value)
Definition ProductV2.h:66
AWS_SECURITYHUB_API ProductV2(Aws::Utils::Json::JsonView jsonValue)
ProductV2 & AddCategories(CategoriesT &&value)
Definition ProductV2.h:107
AWS_SECURITYHUB_API ProductV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue