AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateServiceActionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
58 inline ServiceActionDefinitionType GetDefinitionType() const { return m_definitionType; }
59 inline bool DefinitionTypeHasBeenSet() const { return m_definitionTypeHasBeenSet; }
60 inline void SetDefinitionType(ServiceActionDefinitionType value) { m_definitionTypeHasBeenSet = true; m_definitionType = value; }
63
65
82 inline const Aws::Map<ServiceActionDefinitionKey, Aws::String>& GetDefinition() const { return m_definition; }
83 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
84 template<typename DefinitionT = Aws::Map<ServiceActionDefinitionKey, Aws::String>>
85 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
86 template<typename DefinitionT = Aws::Map<ServiceActionDefinitionKey, Aws::String>>
87 CreateServiceActionRequest& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
89 m_definitionHasBeenSet = true; m_definition.emplace(key, value); return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template<typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
101 template<typename DescriptionT = Aws::String>
102 CreateServiceActionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
104
106
110 inline const Aws::String& GetAcceptLanguage() const { return m_acceptLanguage; }
111 inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
112 template<typename AcceptLanguageT = Aws::String>
113 void SetAcceptLanguage(AcceptLanguageT&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::forward<AcceptLanguageT>(value); }
114 template<typename AcceptLanguageT = Aws::String>
115 CreateServiceActionRequest& WithAcceptLanguage(AcceptLanguageT&& value) { SetAcceptLanguage(std::forward<AcceptLanguageT>(value)); return *this;}
117
119
124 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
125 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
126 template<typename IdempotencyTokenT = Aws::String>
127 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
128 template<typename IdempotencyTokenT = Aws::String>
129 CreateServiceActionRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
131 private:
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
137 bool m_definitionTypeHasBeenSet = false;
138
140 bool m_definitionHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
145 Aws::String m_acceptLanguage;
146 bool m_acceptLanguageHasBeenSet = false;
147
149 bool m_idempotencyTokenHasBeenSet = true;
150 };
151
152} // namespace Model
153} // namespace ServiceCatalog
154} // namespace Aws
CreateServiceActionRequest & WithDefinition(DefinitionT &&value)
AWS_SERVICECATALOG_API CreateServiceActionRequest()=default
CreateServiceActionRequest & WithDescription(DescriptionT &&value)
const Aws::Map< ServiceActionDefinitionKey, Aws::String > & GetDefinition() const
AWS_SERVICECATALOG_API Aws::String SerializePayload() const override
CreateServiceActionRequest & WithAcceptLanguage(AcceptLanguageT &&value)
CreateServiceActionRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
CreateServiceActionRequest & WithDefinitionType(ServiceActionDefinitionType value)
AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServiceActionRequest & AddDefinition(ServiceActionDefinitionKey key, Aws::String value)
static Aws::Utils::UUID PseudoRandomUUID()
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