AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; }
46 inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); }
47 inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); }
48 inline CreateConstraintRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;}
49 inline CreateConstraintRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;}
50 inline CreateConstraintRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;}
52
54
57 inline const Aws::String& GetPortfolioId() const{ return m_portfolioId; }
58 inline bool PortfolioIdHasBeenSet() const { return m_portfolioIdHasBeenSet; }
59 inline void SetPortfolioId(const Aws::String& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = value; }
60 inline void SetPortfolioId(Aws::String&& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = std::move(value); }
61 inline void SetPortfolioId(const char* value) { m_portfolioIdHasBeenSet = true; m_portfolioId.assign(value); }
62 inline CreateConstraintRequest& WithPortfolioId(const Aws::String& value) { SetPortfolioId(value); return *this;}
63 inline CreateConstraintRequest& WithPortfolioId(Aws::String&& value) { SetPortfolioId(std::move(value)); return *this;}
64 inline CreateConstraintRequest& WithPortfolioId(const char* value) { SetPortfolioId(value); return *this;}
66
68
71 inline const Aws::String& GetProductId() const{ return m_productId; }
72 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
73 inline void SetProductId(const Aws::String& value) { m_productIdHasBeenSet = true; m_productId = value; }
74 inline void SetProductId(Aws::String&& value) { m_productIdHasBeenSet = true; m_productId = std::move(value); }
75 inline void SetProductId(const char* value) { m_productIdHasBeenSet = true; m_productId.assign(value); }
76 inline CreateConstraintRequest& WithProductId(const Aws::String& value) { SetProductId(value); return *this;}
77 inline CreateConstraintRequest& WithProductId(Aws::String&& value) { SetProductId(std::move(value)); return *this;}
78 inline CreateConstraintRequest& WithProductId(const char* value) { SetProductId(value); return *this;}
80
82
118 inline const Aws::String& GetParameters() const{ return m_parameters; }
119 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
120 inline void SetParameters(const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters = value; }
121 inline void SetParameters(Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
122 inline void SetParameters(const char* value) { m_parametersHasBeenSet = true; m_parameters.assign(value); }
123 inline CreateConstraintRequest& WithParameters(const Aws::String& value) { SetParameters(value); return *this;}
124 inline CreateConstraintRequest& WithParameters(Aws::String&& value) { SetParameters(std::move(value)); return *this;}
125 inline CreateConstraintRequest& WithParameters(const char* value) { SetParameters(value); return *this;}
127
129
135 inline const Aws::String& GetType() const{ return m_type; }
136 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
137 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
138 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
139 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
140 inline CreateConstraintRequest& WithType(const Aws::String& value) { SetType(value); return *this;}
141 inline CreateConstraintRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
142 inline CreateConstraintRequest& WithType(const char* value) { SetType(value); return *this;}
144
146
149 inline const Aws::String& GetDescription() const{ return m_description; }
150 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
151 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
152 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
153 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
154 inline CreateConstraintRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
155 inline CreateConstraintRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
156 inline CreateConstraintRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
158
160
165 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
166 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
167 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
168 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
169 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
171 inline CreateConstraintRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
172 inline CreateConstraintRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
174 private:
175
176 Aws::String m_acceptLanguage;
177 bool m_acceptLanguageHasBeenSet = false;
178
179 Aws::String m_portfolioId;
180 bool m_portfolioIdHasBeenSet = false;
181
182 Aws::String m_productId;
183 bool m_productIdHasBeenSet = false;
184
185 Aws::String m_parameters;
186 bool m_parametersHasBeenSet = false;
187
188 Aws::String m_type;
189 bool m_typeHasBeenSet = false;
190
191 Aws::String m_description;
192 bool m_descriptionHasBeenSet = false;
193
194 Aws::String m_idempotencyToken;
195 bool m_idempotencyTokenHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace ServiceCatalog
200} // namespace Aws
CreateConstraintRequest & WithProductId(const char *value)
CreateConstraintRequest & WithType(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateConstraintRequest & WithAcceptLanguage(const char *value)
CreateConstraintRequest & WithDescription(Aws::String &&value)
CreateConstraintRequest & WithDescription(const Aws::String &value)
CreateConstraintRequest & WithParameters(const char *value)
CreateConstraintRequest & WithAcceptLanguage(const Aws::String &value)
CreateConstraintRequest & WithProductId(Aws::String &&value)
CreateConstraintRequest & WithPortfolioId(const char *value)
CreateConstraintRequest & WithIdempotencyToken(const Aws::String &value)
CreateConstraintRequest & WithPortfolioId(const Aws::String &value)
CreateConstraintRequest & WithType(const char *value)
CreateConstraintRequest & WithAcceptLanguage(Aws::String &&value)
AWS_SERVICECATALOG_API Aws::String SerializePayload() const override
CreateConstraintRequest & WithParameters(const Aws::String &value)
CreateConstraintRequest & WithParameters(Aws::String &&value)
CreateConstraintRequest & WithType(Aws::String &&value)
AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateConstraintRequest & WithIdempotencyToken(const char *value)
CreateConstraintRequest & WithIdempotencyToken(Aws::String &&value)
CreateConstraintRequest & WithDescription(const char *value)
CreateConstraintRequest & WithProductId(const Aws::String &value)
CreateConstraintRequest & WithPortfolioId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String