AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateConstraintRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicecatalog/ServiceCatalogRequest.h>
10#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ServiceCatalog {
16namespace Model {
17
21 public:
22 AWS_SERVICECATALOG_API CreateConstraintRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateConstraint"; }
29
30 AWS_SERVICECATALOG_API Aws::String SerializePayload() const override;
31
32 AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
39 inline const Aws::String& GetAcceptLanguage() const { return m_acceptLanguage; }
40 inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
41 template <typename AcceptLanguageT = Aws::String>
42 void SetAcceptLanguage(AcceptLanguageT&& value) {
43 m_acceptLanguageHasBeenSet = true;
44 m_acceptLanguage = std::forward<AcceptLanguageT>(value);
45 }
46 template <typename AcceptLanguageT = Aws::String>
47 CreateConstraintRequest& WithAcceptLanguage(AcceptLanguageT&& value) {
48 SetAcceptLanguage(std::forward<AcceptLanguageT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPortfolioId() const { return m_portfolioId; }
58 inline bool PortfolioIdHasBeenSet() const { return m_portfolioIdHasBeenSet; }
59 template <typename PortfolioIdT = Aws::String>
60 void SetPortfolioId(PortfolioIdT&& value) {
61 m_portfolioIdHasBeenSet = true;
62 m_portfolioId = std::forward<PortfolioIdT>(value);
63 }
64 template <typename PortfolioIdT = Aws::String>
66 SetPortfolioId(std::forward<PortfolioIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetProductId() const { return m_productId; }
76 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
77 template <typename ProductIdT = Aws::String>
78 void SetProductId(ProductIdT&& value) {
79 m_productIdHasBeenSet = true;
80 m_productId = std::forward<ProductIdT>(value);
81 }
82 template <typename ProductIdT = Aws::String>
84 SetProductId(std::forward<ProductIdT>(value));
85 return *this;
86 }
88
90
126 inline const Aws::String& GetParameters() const { return m_parameters; }
127 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
128 template <typename ParametersT = Aws::String>
129 void SetParameters(ParametersT&& value) {
130 m_parametersHasBeenSet = true;
131 m_parameters = std::forward<ParametersT>(value);
132 }
133 template <typename ParametersT = Aws::String>
135 SetParameters(std::forward<ParametersT>(value));
136 return *this;
137 }
139
141
147 inline const Aws::String& GetType() const { return m_type; }
148 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
149 template <typename TypeT = Aws::String>
150 void SetType(TypeT&& value) {
151 m_typeHasBeenSet = true;
152 m_type = std::forward<TypeT>(value);
153 }
154 template <typename TypeT = Aws::String>
156 SetType(std::forward<TypeT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetDescription() const { return m_description; }
166 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
167 template <typename DescriptionT = Aws::String>
168 void SetDescription(DescriptionT&& value) {
169 m_descriptionHasBeenSet = true;
170 m_description = std::forward<DescriptionT>(value);
171 }
172 template <typename DescriptionT = Aws::String>
174 SetDescription(std::forward<DescriptionT>(value));
175 return *this;
176 }
178
180
185 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
186 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
187 template <typename IdempotencyTokenT = Aws::String>
188 void SetIdempotencyToken(IdempotencyTokenT&& value) {
189 m_idempotencyTokenHasBeenSet = true;
190 m_idempotencyToken = std::forward<IdempotencyTokenT>(value);
191 }
192 template <typename IdempotencyTokenT = Aws::String>
193 CreateConstraintRequest& WithIdempotencyToken(IdempotencyTokenT&& value) {
194 SetIdempotencyToken(std::forward<IdempotencyTokenT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_acceptLanguage;
200
201 Aws::String m_portfolioId;
202
203 Aws::String m_productId;
204
205 Aws::String m_parameters;
206
207 Aws::String m_type;
208
209 Aws::String m_description;
210
212 bool m_acceptLanguageHasBeenSet = false;
213 bool m_portfolioIdHasBeenSet = false;
214 bool m_productIdHasBeenSet = false;
215 bool m_parametersHasBeenSet = false;
216 bool m_typeHasBeenSet = false;
217 bool m_descriptionHasBeenSet = false;
218 bool m_idempotencyTokenHasBeenSet = true;
219};
220
221} // namespace Model
222} // namespace ServiceCatalog
223} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateConstraintRequest & WithDescription(DescriptionT &&value)
AWS_SERVICECATALOG_API CreateConstraintRequest()=default
CreateConstraintRequest & WithProductId(ProductIdT &&value)
CreateConstraintRequest & WithPortfolioId(PortfolioIdT &&value)
CreateConstraintRequest & WithParameters(ParametersT &&value)
CreateConstraintRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
AWS_SERVICECATALOG_API Aws::String SerializePayload() const override
CreateConstraintRequest & WithType(TypeT &&value)
AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateConstraintRequest & WithAcceptLanguage(AcceptLanguageT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String