AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateServiceActionRequest.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 <aws/servicecatalog/model/ServiceActionDefinitionType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/servicecatalog/model/ServiceActionDefinitionKey.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace ServiceCatalog
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SERVICECATALOG_API CreateServiceActionRequest();
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_SERVICECATALOG_API Aws::String SerializePayload() const override;
37
38 AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateServiceActionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateServiceActionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateServiceActionRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
60 inline const ServiceActionDefinitionType& GetDefinitionType() const{ return m_definitionType; }
61 inline bool DefinitionTypeHasBeenSet() const { return m_definitionTypeHasBeenSet; }
62 inline void SetDefinitionType(const ServiceActionDefinitionType& value) { m_definitionTypeHasBeenSet = true; m_definitionType = value; }
63 inline void SetDefinitionType(ServiceActionDefinitionType&& value) { m_definitionTypeHasBeenSet = true; m_definitionType = std::move(value); }
67
69
86 inline const Aws::Map<ServiceActionDefinitionKey, Aws::String>& GetDefinition() const{ return m_definition; }
87 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
88 inline void SetDefinition(const Aws::Map<ServiceActionDefinitionKey, Aws::String>& value) { m_definitionHasBeenSet = true; m_definition = value; }
89 inline void SetDefinition(Aws::Map<ServiceActionDefinitionKey, Aws::String>&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
92 inline CreateServiceActionRequest& AddDefinition(const ServiceActionDefinitionKey& key, const Aws::String& value) { m_definitionHasBeenSet = true; m_definition.emplace(key, value); return *this; }
93 inline CreateServiceActionRequest& AddDefinition(ServiceActionDefinitionKey&& key, const Aws::String& value) { m_definitionHasBeenSet = true; m_definition.emplace(std::move(key), value); return *this; }
94 inline CreateServiceActionRequest& AddDefinition(const ServiceActionDefinitionKey& key, Aws::String&& value) { m_definitionHasBeenSet = true; m_definition.emplace(key, std::move(value)); return *this; }
95 inline CreateServiceActionRequest& AddDefinition(ServiceActionDefinitionKey&& key, Aws::String&& value) { m_definitionHasBeenSet = true; m_definition.emplace(std::move(key), std::move(value)); return *this; }
96 inline CreateServiceActionRequest& AddDefinition(ServiceActionDefinitionKey&& key, const char* value) { m_definitionHasBeenSet = true; m_definition.emplace(std::move(key), value); return *this; }
97 inline CreateServiceActionRequest& AddDefinition(const ServiceActionDefinitionKey& key, const char* value) { m_definitionHasBeenSet = true; m_definition.emplace(key, value); return *this; }
99
101
104 inline const Aws::String& GetDescription() const{ return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
107 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
108 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
109 inline CreateServiceActionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
110 inline CreateServiceActionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
111 inline CreateServiceActionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
113
115
119 inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; }
120 inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
121 inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; }
122 inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); }
123 inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); }
124 inline CreateServiceActionRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;}
125 inline CreateServiceActionRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;}
126 inline CreateServiceActionRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;}
128
130
135 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
136 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
137 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
138 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
139 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
141 inline CreateServiceActionRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
142 inline CreateServiceActionRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
144 private:
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
149 ServiceActionDefinitionType m_definitionType;
150 bool m_definitionTypeHasBeenSet = false;
151
153 bool m_definitionHasBeenSet = false;
154
155 Aws::String m_description;
156 bool m_descriptionHasBeenSet = false;
157
158 Aws::String m_acceptLanguage;
159 bool m_acceptLanguageHasBeenSet = false;
160
161 Aws::String m_idempotencyToken;
162 bool m_idempotencyTokenHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace ServiceCatalog
167} // namespace Aws
CreateServiceActionRequest & WithIdempotencyToken(Aws::String &&value)
CreateServiceActionRequest & WithDefinitionType(ServiceActionDefinitionType &&value)
CreateServiceActionRequest & WithDescription(const char *value)
CreateServiceActionRequest & AddDefinition(const ServiceActionDefinitionKey &key, const char *value)
CreateServiceActionRequest & WithDescription(const Aws::String &value)
CreateServiceActionRequest & AddDefinition(const ServiceActionDefinitionKey &key, const Aws::String &value)
const ServiceActionDefinitionType & GetDefinitionType() const
CreateServiceActionRequest & AddDefinition(ServiceActionDefinitionKey &&key, Aws::String &&value)
CreateServiceActionRequest & WithDefinition(Aws::Map< ServiceActionDefinitionKey, Aws::String > &&value)
CreateServiceActionRequest & WithDefinitionType(const ServiceActionDefinitionType &value)
CreateServiceActionRequest & AddDefinition(ServiceActionDefinitionKey &&key, const Aws::String &value)
CreateServiceActionRequest & WithIdempotencyToken(const char *value)
CreateServiceActionRequest & WithAcceptLanguage(const Aws::String &value)
void SetDefinition(const Aws::Map< ServiceActionDefinitionKey, Aws::String > &value)
const Aws::Map< ServiceActionDefinitionKey, Aws::String > & GetDefinition() const
CreateServiceActionRequest & WithName(const char *value)
CreateServiceActionRequest & WithAcceptLanguage(Aws::String &&value)
CreateServiceActionRequest & AddDefinition(const ServiceActionDefinitionKey &key, Aws::String &&value)
CreateServiceActionRequest & WithName(const Aws::String &value)
AWS_SERVICECATALOG_API Aws::String SerializePayload() const override
CreateServiceActionRequest & WithName(Aws::String &&value)
CreateServiceActionRequest & AddDefinition(ServiceActionDefinitionKey &&key, const char *value)
CreateServiceActionRequest & WithDefinition(const Aws::Map< ServiceActionDefinitionKey, Aws::String > &value)
CreateServiceActionRequest & WithAcceptLanguage(const char *value)
void SetDefinition(Aws::Map< ServiceActionDefinitionKey, Aws::String > &&value)
CreateServiceActionRequest & WithDescription(Aws::String &&value)
void SetDefinitionType(ServiceActionDefinitionType &&value)
AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServiceActionRequest & WithIdempotencyToken(const Aws::String &value)
void SetDefinitionType(const ServiceActionDefinitionType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String