AWS SDK for C++  1.9.175
AWS SDK for C++
CreateServiceActionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace ServiceCatalog
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateServiceAction"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline CreateServiceActionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline CreateServiceActionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline CreateServiceActionRequest& WithName(const char* value) { SetName(value); return *this;}
80 
81 
86  inline const ServiceActionDefinitionType& GetDefinitionType() const{ return m_definitionType; }
87 
92  inline bool DefinitionTypeHasBeenSet() const { return m_definitionTypeHasBeenSet; }
93 
98  inline void SetDefinitionType(const ServiceActionDefinitionType& value) { m_definitionTypeHasBeenSet = true; m_definitionType = value; }
99 
104  inline void SetDefinitionType(ServiceActionDefinitionType&& value) { m_definitionTypeHasBeenSet = true; m_definitionType = std::move(value); }
105 
110  inline CreateServiceActionRequest& WithDefinitionType(const ServiceActionDefinitionType& value) { SetDefinitionType(value); return *this;}
111 
116  inline CreateServiceActionRequest& WithDefinitionType(ServiceActionDefinitionType&& value) { SetDefinitionType(std::move(value)); return *this;}
117 
118 
136  inline const Aws::Map<ServiceActionDefinitionKey, Aws::String>& GetDefinition() const{ return m_definition; }
137 
155  inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
156 
174  inline void SetDefinition(const Aws::Map<ServiceActionDefinitionKey, Aws::String>& value) { m_definitionHasBeenSet = true; m_definition = value; }
175 
193  inline void SetDefinition(Aws::Map<ServiceActionDefinitionKey, Aws::String>&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
194 
212  inline CreateServiceActionRequest& WithDefinition(const Aws::Map<ServiceActionDefinitionKey, Aws::String>& value) { SetDefinition(value); return *this;}
213 
231  inline CreateServiceActionRequest& WithDefinition(Aws::Map<ServiceActionDefinitionKey, Aws::String>&& value) { SetDefinition(std::move(value)); return *this;}
232 
250  inline CreateServiceActionRequest& AddDefinition(const ServiceActionDefinitionKey& key, const Aws::String& value) { m_definitionHasBeenSet = true; m_definition.emplace(key, value); return *this; }
251 
269  inline CreateServiceActionRequest& AddDefinition(ServiceActionDefinitionKey&& key, const Aws::String& value) { m_definitionHasBeenSet = true; m_definition.emplace(std::move(key), value); return *this; }
270 
288  inline CreateServiceActionRequest& AddDefinition(const ServiceActionDefinitionKey& key, Aws::String&& value) { m_definitionHasBeenSet = true; m_definition.emplace(key, std::move(value)); return *this; }
289 
307  inline CreateServiceActionRequest& AddDefinition(ServiceActionDefinitionKey&& key, Aws::String&& value) { m_definitionHasBeenSet = true; m_definition.emplace(std::move(key), std::move(value)); return *this; }
308 
326  inline CreateServiceActionRequest& AddDefinition(ServiceActionDefinitionKey&& key, const char* value) { m_definitionHasBeenSet = true; m_definition.emplace(std::move(key), value); return *this; }
327 
345  inline CreateServiceActionRequest& AddDefinition(const ServiceActionDefinitionKey& key, const char* value) { m_definitionHasBeenSet = true; m_definition.emplace(key, value); return *this; }
346 
347 
351  inline const Aws::String& GetDescription() const{ return m_description; }
352 
356  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
357 
361  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
362 
366  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
367 
371  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
372 
376  inline CreateServiceActionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
377 
381  inline CreateServiceActionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
382 
386  inline CreateServiceActionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
387 
388 
394  inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; }
395 
401  inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
402 
408  inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; }
409 
415  inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); }
416 
422  inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); }
423 
429  inline CreateServiceActionRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;}
430 
436  inline CreateServiceActionRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;}
437 
443  inline CreateServiceActionRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;}
444 
445 
451  inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
452 
458  inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
459 
465  inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
466 
472  inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
473 
479  inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
480 
486  inline CreateServiceActionRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
487 
493  inline CreateServiceActionRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
494 
500  inline CreateServiceActionRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
501 
502  private:
503 
504  Aws::String m_name;
505  bool m_nameHasBeenSet;
506 
507  ServiceActionDefinitionType m_definitionType;
508  bool m_definitionTypeHasBeenSet;
509 
511  bool m_definitionHasBeenSet;
512 
513  Aws::String m_description;
514  bool m_descriptionHasBeenSet;
515 
516  Aws::String m_acceptLanguage;
517  bool m_acceptLanguageHasBeenSet;
518 
519  Aws::String m_idempotencyToken;
520  bool m_idempotencyTokenHasBeenSet;
521  };
522 
523 } // namespace Model
524 } // namespace ServiceCatalog
525 } // namespace Aws
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetDefinitionType
void SetDefinitionType(const ServiceActionDefinitionType &value)
Definition: CreateServiceActionRequest.h:98
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetAcceptLanguage
void SetAcceptLanguage(const char *value)
Definition: CreateServiceActionRequest.h:422
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithName
CreateServiceActionRequest & WithName(const Aws::String &value)
Definition: CreateServiceActionRequest.h:69
Aws::ServiceCatalog::Model::CreateServiceActionRequest::CreateServiceActionRequest
CreateServiceActionRequest()
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetIdempotencyToken
void SetIdempotencyToken(const Aws::String &value)
Definition: CreateServiceActionRequest.h:465
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithName
CreateServiceActionRequest & WithName(const char *value)
Definition: CreateServiceActionRequest.h:79
Aws::ServiceCatalog::Model::CreateServiceActionRequest::AddDefinition
CreateServiceActionRequest & AddDefinition(ServiceActionDefinitionKey &&key, const char *value)
Definition: CreateServiceActionRequest.h:326
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateServiceActionRequest.h:59
Aws::ServiceCatalog::Model::ServiceActionDefinitionType
ServiceActionDefinitionType
Definition: ServiceActionDefinitionType.h:17
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithAcceptLanguage
CreateServiceActionRequest & WithAcceptLanguage(Aws::String &&value)
Definition: CreateServiceActionRequest.h:436
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceCatalog::Model::CreateServiceActionRequest::AcceptLanguageHasBeenSet
bool AcceptLanguageHasBeenSet() const
Definition: CreateServiceActionRequest.h:401
ServiceCatalogRequest.h
Aws::ServiceCatalog::Model::CreateServiceActionRequest::DefinitionHasBeenSet
bool DefinitionHasBeenSet() const
Definition: CreateServiceActionRequest.h:155
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateServiceActionRequest.h:54
Aws::ServiceCatalog::Model::CreateServiceActionRequest::AddDefinition
CreateServiceActionRequest & AddDefinition(const ServiceActionDefinitionKey &key, Aws::String &&value)
Definition: CreateServiceActionRequest.h:288
Aws::ServiceCatalog::Model::CreateServiceActionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateServiceActionRequest.h:34
AWS_SERVICECATALOG_API
#define AWS_SERVICECATALOG_API
Definition: ServiceCatalog_EXPORTS.h:28
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetAcceptLanguage
void SetAcceptLanguage(Aws::String &&value)
Definition: CreateServiceActionRequest.h:415
Aws::ServiceCatalog::Model::CreateServiceActionRequest::IdempotencyTokenHasBeenSet
bool IdempotencyTokenHasBeenSet() const
Definition: CreateServiceActionRequest.h:458
Aws::ServiceCatalog::Model::CreateServiceActionRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateServiceActionRequest.h:351
Aws::ServiceCatalog::ServiceCatalogRequest
Definition: ServiceCatalogRequest.h:17
Aws::ServiceCatalog::Model::CreateServiceActionRequest::AddDefinition
CreateServiceActionRequest & AddDefinition(ServiceActionDefinitionKey &&key, Aws::String &&value)
Definition: CreateServiceActionRequest.h:307
ServiceActionDefinitionType.h
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetDefinition
void SetDefinition(const Aws::Map< ServiceActionDefinitionKey, Aws::String > &value)
Definition: CreateServiceActionRequest.h:174
Aws::ServiceCatalog::Model::CreateServiceActionRequest
Definition: CreateServiceActionRequest.h:26
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateServiceActionRequest.h:361
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetAcceptLanguage
void SetAcceptLanguage(const Aws::String &value)
Definition: CreateServiceActionRequest.h:408
Aws::ServiceCatalog::Model::CreateServiceActionRequest::GetName
const Aws::String & GetName() const
Definition: CreateServiceActionRequest.h:44
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateServiceActionRequest.h:366
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetIdempotencyToken
void SetIdempotencyToken(Aws::String &&value)
Definition: CreateServiceActionRequest.h:472
ServiceActionDefinitionKey.h
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithDefinition
CreateServiceActionRequest & WithDefinition(Aws::Map< ServiceActionDefinitionKey, Aws::String > &&value)
Definition: CreateServiceActionRequest.h:231
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetIdempotencyToken
void SetIdempotencyToken(const char *value)
Definition: CreateServiceActionRequest.h:479
AWSString.h
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithDescription
CreateServiceActionRequest & WithDescription(const char *value)
Definition: CreateServiceActionRequest.h:386
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithDefinition
CreateServiceActionRequest & WithDefinition(const Aws::Map< ServiceActionDefinitionKey, Aws::String > &value)
Definition: CreateServiceActionRequest.h:212
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateServiceActionRequest.h:371
Aws::ServiceCatalog::Model::CreateServiceActionRequest::GetDefinition
const Aws::Map< ServiceActionDefinitionKey, Aws::String > & GetDefinition() const
Definition: CreateServiceActionRequest.h:136
Aws::ServiceCatalog::Model::ServiceActionDefinitionKey
ServiceActionDefinitionKey
Definition: ServiceActionDefinitionKey.h:17
Aws::ServiceCatalog::Model::CreateServiceActionRequest::GetAcceptLanguage
const Aws::String & GetAcceptLanguage() const
Definition: CreateServiceActionRequest.h:394
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithAcceptLanguage
CreateServiceActionRequest & WithAcceptLanguage(const Aws::String &value)
Definition: CreateServiceActionRequest.h:429
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithDescription
CreateServiceActionRequest & WithDescription(const Aws::String &value)
Definition: CreateServiceActionRequest.h:376
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithDefinitionType
CreateServiceActionRequest & WithDefinitionType(ServiceActionDefinitionType &&value)
Definition: CreateServiceActionRequest.h:116
Aws::ServiceCatalog::Model::CreateServiceActionRequest::AddDefinition
CreateServiceActionRequest & AddDefinition(const ServiceActionDefinitionKey &key, const Aws::String &value)
Definition: CreateServiceActionRequest.h:250
Aws::ServiceCatalog::Model::CreateServiceActionRequest::GetIdempotencyToken
const Aws::String & GetIdempotencyToken() const
Definition: CreateServiceActionRequest.h:451
Aws::ServiceCatalog::Model::CreateServiceActionRequest::GetDefinitionType
const ServiceActionDefinitionType & GetDefinitionType() const
Definition: CreateServiceActionRequest.h:86
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithDefinitionType
CreateServiceActionRequest & WithDefinitionType(const ServiceActionDefinitionType &value)
Definition: CreateServiceActionRequest.h:110
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithDescription
CreateServiceActionRequest & WithDescription(Aws::String &&value)
Definition: CreateServiceActionRequest.h:381
Aws::ServiceCatalog::Model::CreateServiceActionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateServiceActionRequest.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceCatalog::Model::CreateServiceActionRequest::AddDefinition
CreateServiceActionRequest & AddDefinition(ServiceActionDefinitionKey &&key, const Aws::String &value)
Definition: CreateServiceActionRequest.h:269
Aws::ServiceCatalog::Model::CreateServiceActionRequest::DefinitionTypeHasBeenSet
bool DefinitionTypeHasBeenSet() const
Definition: CreateServiceActionRequest.h:92
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithIdempotencyToken
CreateServiceActionRequest & WithIdempotencyToken(const char *value)
Definition: CreateServiceActionRequest.h:500
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetDefinition
void SetDefinition(Aws::Map< ServiceActionDefinitionKey, Aws::String > &&value)
Definition: CreateServiceActionRequest.h:193
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithIdempotencyToken
CreateServiceActionRequest & WithIdempotencyToken(const Aws::String &value)
Definition: CreateServiceActionRequest.h:486
ServiceCatalog_EXPORTS.h
Aws::ServiceCatalog::Model::CreateServiceActionRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateServiceActionRequest.h:356
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetDefinitionType
void SetDefinitionType(ServiceActionDefinitionType &&value)
Definition: CreateServiceActionRequest.h:104
UUID.h
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithAcceptLanguage
CreateServiceActionRequest & WithAcceptLanguage(const char *value)
Definition: CreateServiceActionRequest.h:443
Aws::ServiceCatalog::Model::CreateServiceActionRequest::SetName
void SetName(const char *value)
Definition: CreateServiceActionRequest.h:64
AWSMap.h
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithName
CreateServiceActionRequest & WithName(Aws::String &&value)
Definition: CreateServiceActionRequest.h:74
Aws::ServiceCatalog::Model::CreateServiceActionRequest::AddDefinition
CreateServiceActionRequest & AddDefinition(const ServiceActionDefinitionKey &key, const char *value)
Definition: CreateServiceActionRequest.h:345
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::ServiceCatalog::Model::CreateServiceActionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceCatalog::Model::CreateServiceActionRequest::WithIdempotencyToken
CreateServiceActionRequest & WithIdempotencyToken(Aws::String &&value)
Definition: CreateServiceActionRequest.h:493