AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateConstraintRequest.h
1
6#pragma once
7#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
8#include <aws/servicecatalog/ServiceCatalogRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace ServiceCatalog
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SERVICECATALOG_API CreateConstraintRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateConstraint"; }
32
33 AWS_SERVICECATALOG_API Aws::String SerializePayload() const override;
34
35 AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetAcceptLanguage() const { return m_acceptLanguage; }
44 inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
45 template<typename AcceptLanguageT = Aws::String>
46 void SetAcceptLanguage(AcceptLanguageT&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::forward<AcceptLanguageT>(value); }
47 template<typename AcceptLanguageT = Aws::String>
48 CreateConstraintRequest& WithAcceptLanguage(AcceptLanguageT&& value) { SetAcceptLanguage(std::forward<AcceptLanguageT>(value)); return *this;}
50
52
55 inline const Aws::String& GetPortfolioId() const { return m_portfolioId; }
56 inline bool PortfolioIdHasBeenSet() const { return m_portfolioIdHasBeenSet; }
57 template<typename PortfolioIdT = Aws::String>
58 void SetPortfolioId(PortfolioIdT&& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = std::forward<PortfolioIdT>(value); }
59 template<typename PortfolioIdT = Aws::String>
60 CreateConstraintRequest& WithPortfolioId(PortfolioIdT&& value) { SetPortfolioId(std::forward<PortfolioIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetProductId() const { return m_productId; }
68 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
69 template<typename ProductIdT = Aws::String>
70 void SetProductId(ProductIdT&& value) { m_productIdHasBeenSet = true; m_productId = std::forward<ProductIdT>(value); }
71 template<typename ProductIdT = Aws::String>
72 CreateConstraintRequest& WithProductId(ProductIdT&& value) { SetProductId(std::forward<ProductIdT>(value)); return *this;}
74
76
112 inline const Aws::String& GetParameters() const { return m_parameters; }
113 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
114 template<typename ParametersT = Aws::String>
115 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
116 template<typename ParametersT = Aws::String>
117 CreateConstraintRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
119
121
127 inline const Aws::String& GetType() const { return m_type; }
128 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
129 template<typename TypeT = Aws::String>
130 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
131 template<typename TypeT = Aws::String>
132 CreateConstraintRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
134
136
139 inline const Aws::String& GetDescription() const { return m_description; }
140 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
141 template<typename DescriptionT = Aws::String>
142 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
143 template<typename DescriptionT = Aws::String>
144 CreateConstraintRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
146
148
153 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
154 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
155 template<typename IdempotencyTokenT = Aws::String>
156 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
157 template<typename IdempotencyTokenT = Aws::String>
158 CreateConstraintRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
160 private:
161
162 Aws::String m_acceptLanguage;
163 bool m_acceptLanguageHasBeenSet = false;
164
165 Aws::String m_portfolioId;
166 bool m_portfolioIdHasBeenSet = false;
167
168 Aws::String m_productId;
169 bool m_productIdHasBeenSet = false;
170
171 Aws::String m_parameters;
172 bool m_parametersHasBeenSet = false;
173
174 Aws::String m_type;
175 bool m_typeHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
181 bool m_idempotencyTokenHasBeenSet = true;
182 };
183
184} // namespace Model
185} // namespace ServiceCatalog
186} // 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