AWS SDK for C++  1.9.153
AWS SDK for C++
CreateConstraintRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace ServiceCatalog
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; }
44 
50  inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
51 
57  inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; }
58 
64  inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); }
65 
71  inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); }
72 
78  inline CreateConstraintRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;}
79 
85  inline CreateConstraintRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;}
86 
92  inline CreateConstraintRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;}
93 
94 
98  inline const Aws::String& GetPortfolioId() const{ return m_portfolioId; }
99 
103  inline bool PortfolioIdHasBeenSet() const { return m_portfolioIdHasBeenSet; }
104 
108  inline void SetPortfolioId(const Aws::String& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = value; }
109 
113  inline void SetPortfolioId(Aws::String&& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = std::move(value); }
114 
118  inline void SetPortfolioId(const char* value) { m_portfolioIdHasBeenSet = true; m_portfolioId.assign(value); }
119 
123  inline CreateConstraintRequest& WithPortfolioId(const Aws::String& value) { SetPortfolioId(value); return *this;}
124 
128  inline CreateConstraintRequest& WithPortfolioId(Aws::String&& value) { SetPortfolioId(std::move(value)); return *this;}
129 
133  inline CreateConstraintRequest& WithPortfolioId(const char* value) { SetPortfolioId(value); return *this;}
134 
135 
139  inline const Aws::String& GetProductId() const{ return m_productId; }
140 
144  inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
145 
149  inline void SetProductId(const Aws::String& value) { m_productIdHasBeenSet = true; m_productId = value; }
150 
154  inline void SetProductId(Aws::String&& value) { m_productIdHasBeenSet = true; m_productId = std::move(value); }
155 
159  inline void SetProductId(const char* value) { m_productIdHasBeenSet = true; m_productId.assign(value); }
160 
164  inline CreateConstraintRequest& WithProductId(const Aws::String& value) { SetProductId(value); return *this;}
165 
169  inline CreateConstraintRequest& WithProductId(Aws::String&& value) { SetProductId(std::move(value)); return *this;}
170 
174  inline CreateConstraintRequest& WithProductId(const char* value) { SetProductId(value); return *this;}
175 
176 
213  inline const Aws::String& GetParameters() const{ return m_parameters; }
214 
251  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
252 
289  inline void SetParameters(const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters = value; }
290 
327  inline void SetParameters(Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
328 
365  inline void SetParameters(const char* value) { m_parametersHasBeenSet = true; m_parameters.assign(value); }
366 
403  inline CreateConstraintRequest& WithParameters(const Aws::String& value) { SetParameters(value); return *this;}
404 
441  inline CreateConstraintRequest& WithParameters(Aws::String&& value) { SetParameters(std::move(value)); return *this;}
442 
479  inline CreateConstraintRequest& WithParameters(const char* value) { SetParameters(value); return *this;}
480 
481 
488  inline const Aws::String& GetType() const{ return m_type; }
489 
496  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
497 
504  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
505 
512  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
513 
520  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
521 
528  inline CreateConstraintRequest& WithType(const Aws::String& value) { SetType(value); return *this;}
529 
536  inline CreateConstraintRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
537 
544  inline CreateConstraintRequest& WithType(const char* value) { SetType(value); return *this;}
545 
546 
550  inline const Aws::String& GetDescription() const{ return m_description; }
551 
555  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
556 
560  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
561 
565  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
566 
570  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
571 
575  inline CreateConstraintRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
576 
580  inline CreateConstraintRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
581 
585  inline CreateConstraintRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
586 
587 
593  inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
594 
600  inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
601 
607  inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
608 
614  inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
615 
621  inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
622 
628  inline CreateConstraintRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
629 
635  inline CreateConstraintRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
636 
642  inline CreateConstraintRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
643 
644  private:
645 
646  Aws::String m_acceptLanguage;
647  bool m_acceptLanguageHasBeenSet;
648 
649  Aws::String m_portfolioId;
650  bool m_portfolioIdHasBeenSet;
651 
652  Aws::String m_productId;
653  bool m_productIdHasBeenSet;
654 
655  Aws::String m_parameters;
656  bool m_parametersHasBeenSet;
657 
658  Aws::String m_type;
659  bool m_typeHasBeenSet;
660 
661  Aws::String m_description;
662  bool m_descriptionHasBeenSet;
663 
664  Aws::String m_idempotencyToken;
665  bool m_idempotencyTokenHasBeenSet;
666  };
667 
668 } // namespace Model
669 } // namespace ServiceCatalog
670 } // namespace Aws
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetPortfolioId
void SetPortfolioId(Aws::String &&value)
Definition: CreateConstraintRequest.h:113
Aws::ServiceCatalog::Model::CreateConstraintRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetType
void SetType(const char *value)
Definition: CreateConstraintRequest.h:520
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetType
void SetType(const Aws::String &value)
Definition: CreateConstraintRequest.h:504
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetType
void SetType(Aws::String &&value)
Definition: CreateConstraintRequest.h:512
Aws::ServiceCatalog::Model::CreateConstraintRequest::PortfolioIdHasBeenSet
bool PortfolioIdHasBeenSet() const
Definition: CreateConstraintRequest.h:103
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithPortfolioId
CreateConstraintRequest & WithPortfolioId(const char *value)
Definition: CreateConstraintRequest.h:133
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetParameters
void SetParameters(const char *value)
Definition: CreateConstraintRequest.h:365
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithPortfolioId
CreateConstraintRequest & WithPortfolioId(const Aws::String &value)
Definition: CreateConstraintRequest.h:123
Aws::ServiceCatalog::Model::CreateConstraintRequest::ParametersHasBeenSet
bool ParametersHasBeenSet() const
Definition: CreateConstraintRequest.h:251
ServiceCatalogRequest.h
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithProductId
CreateConstraintRequest & WithProductId(const Aws::String &value)
Definition: CreateConstraintRequest.h:164
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetIdempotencyToken
void SetIdempotencyToken(const char *value)
Definition: CreateConstraintRequest.h:621
Aws::ServiceCatalog::Model::CreateConstraintRequest::IdempotencyTokenHasBeenSet
bool IdempotencyTokenHasBeenSet() const
Definition: CreateConstraintRequest.h:600
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetPortfolioId
void SetPortfolioId(const char *value)
Definition: CreateConstraintRequest.h:118
Aws::ServiceCatalog::Model::CreateConstraintRequest::ProductIdHasBeenSet
bool ProductIdHasBeenSet() const
Definition: CreateConstraintRequest.h:144
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithAcceptLanguage
CreateConstraintRequest & WithAcceptLanguage(const Aws::String &value)
Definition: CreateConstraintRequest.h:78
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetIdempotencyToken
void SetIdempotencyToken(Aws::String &&value)
Definition: CreateConstraintRequest.h:614
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithType
CreateConstraintRequest & WithType(const Aws::String &value)
Definition: CreateConstraintRequest.h:528
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithIdempotencyToken
CreateConstraintRequest & WithIdempotencyToken(Aws::String &&value)
Definition: CreateConstraintRequest.h:635
AWS_SERVICECATALOG_API
#define AWS_SERVICECATALOG_API
Definition: ServiceCatalog_EXPORTS.h:28
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithType
CreateConstraintRequest & WithType(const char *value)
Definition: CreateConstraintRequest.h:544
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithDescription
CreateConstraintRequest & WithDescription(Aws::String &&value)
Definition: CreateConstraintRequest.h:580
Aws::ServiceCatalog::Model::CreateConstraintRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateConstraintRequest.h:496
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetAcceptLanguage
void SetAcceptLanguage(Aws::String &&value)
Definition: CreateConstraintRequest.h:64
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetParameters
void SetParameters(const Aws::String &value)
Definition: CreateConstraintRequest.h:289
Aws::ServiceCatalog::Model::CreateConstraintRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateConstraintRequest.h:550
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetPortfolioId
void SetPortfolioId(const Aws::String &value)
Definition: CreateConstraintRequest.h:108
Aws::ServiceCatalog::ServiceCatalogRequest
Definition: ServiceCatalogRequest.h:17
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithParameters
CreateConstraintRequest & WithParameters(Aws::String &&value)
Definition: CreateConstraintRequest.h:441
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithDescription
CreateConstraintRequest & WithDescription(const Aws::String &value)
Definition: CreateConstraintRequest.h:575
Aws::ServiceCatalog::Model::CreateConstraintRequest::AcceptLanguageHasBeenSet
bool AcceptLanguageHasBeenSet() const
Definition: CreateConstraintRequest.h:50
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetProductId
void SetProductId(const char *value)
Definition: CreateConstraintRequest.h:159
Aws::ServiceCatalog::Model::CreateConstraintRequest::GetIdempotencyToken
const Aws::String & GetIdempotencyToken() const
Definition: CreateConstraintRequest.h:593
Aws::ServiceCatalog::Model::CreateConstraintRequest::GetProductId
const Aws::String & GetProductId() const
Definition: CreateConstraintRequest.h:139
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithAcceptLanguage
CreateConstraintRequest & WithAcceptLanguage(Aws::String &&value)
Definition: CreateConstraintRequest.h:85
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithProductId
CreateConstraintRequest & WithProductId(const char *value)
Definition: CreateConstraintRequest.h:174
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithIdempotencyToken
CreateConstraintRequest & WithIdempotencyToken(const Aws::String &value)
Definition: CreateConstraintRequest.h:628
AWSString.h
Aws::ServiceCatalog::Model::CreateConstraintRequest::CreateConstraintRequest
CreateConstraintRequest()
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithAcceptLanguage
CreateConstraintRequest & WithAcceptLanguage(const char *value)
Definition: CreateConstraintRequest.h:92
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetAcceptLanguage
void SetAcceptLanguage(const Aws::String &value)
Definition: CreateConstraintRequest.h:57
Aws::ServiceCatalog::Model::CreateConstraintRequest::GetType
const Aws::String & GetType() const
Definition: CreateConstraintRequest.h:488
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetAcceptLanguage
void SetAcceptLanguage(const char *value)
Definition: CreateConstraintRequest.h:71
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithParameters
CreateConstraintRequest & WithParameters(const char *value)
Definition: CreateConstraintRequest.h:479
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithParameters
CreateConstraintRequest & WithParameters(const Aws::String &value)
Definition: CreateConstraintRequest.h:403
Aws::ServiceCatalog::Model::CreateConstraintRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateConstraintRequest.h:555
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithType
CreateConstraintRequest & WithType(Aws::String &&value)
Definition: CreateConstraintRequest.h:536
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateConstraintRequest.h:565
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithProductId
CreateConstraintRequest & WithProductId(Aws::String &&value)
Definition: CreateConstraintRequest.h:169
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateConstraintRequest.h:560
Aws::ServiceCatalog::Model::CreateConstraintRequest::GetParameters
const Aws::String & GetParameters() const
Definition: CreateConstraintRequest.h:213
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetProductId
void SetProductId(const Aws::String &value)
Definition: CreateConstraintRequest.h:149
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateConstraintRequest.h:570
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceCatalog::Model::CreateConstraintRequest::GetAcceptLanguage
const Aws::String & GetAcceptLanguage() const
Definition: CreateConstraintRequest.h:43
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithPortfolioId
CreateConstraintRequest & WithPortfolioId(Aws::String &&value)
Definition: CreateConstraintRequest.h:128
ServiceCatalog_EXPORTS.h
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetIdempotencyToken
void SetIdempotencyToken(const Aws::String &value)
Definition: CreateConstraintRequest.h:607
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithDescription
CreateConstraintRequest & WithDescription(const char *value)
Definition: CreateConstraintRequest.h:585
Aws::ServiceCatalog::Model::CreateConstraintRequest::GetPortfolioId
const Aws::String & GetPortfolioId() const
Definition: CreateConstraintRequest.h:98
Aws::ServiceCatalog::Model::CreateConstraintRequest::WithIdempotencyToken
CreateConstraintRequest & WithIdempotencyToken(const char *value)
Definition: CreateConstraintRequest.h:642
UUID.h
Aws::ServiceCatalog::Model::CreateConstraintRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateConstraintRequest.h:31
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetProductId
void SetProductId(Aws::String &&value)
Definition: CreateConstraintRequest.h:154
Aws::ServiceCatalog::Model::CreateConstraintRequest::SetParameters
void SetParameters(Aws::String &&value)
Definition: CreateConstraintRequest.h:327
Aws::ServiceCatalog::Model::CreateConstraintRequest
Definition: CreateConstraintRequest.h:23
Aws::ServiceCatalog::Model::CreateConstraintRequest::SerializePayload
Aws::String SerializePayload() const override