AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateWorkflowRequest.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/imagebuilder/model/WorkflowType.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace imagebuilder
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IMAGEBUILDER_API CreateWorkflowRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkflow"; }
34
35 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 CreateWorkflowRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
64 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
65 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
66 template<typename SemanticVersionT = Aws::String>
67 void SetSemanticVersion(SemanticVersionT&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::forward<SemanticVersionT>(value); }
68 template<typename SemanticVersionT = Aws::String>
69 CreateWorkflowRequest& WithSemanticVersion(SemanticVersionT&& value) { SetSemanticVersion(std::forward<SemanticVersionT>(value)); return *this;}
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template<typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
80 template<typename DescriptionT = Aws::String>
81 CreateWorkflowRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
83
85
89 inline const Aws::String& GetChangeDescription() const { return m_changeDescription; }
90 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
91 template<typename ChangeDescriptionT = Aws::String>
92 void SetChangeDescription(ChangeDescriptionT&& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = std::forward<ChangeDescriptionT>(value); }
93 template<typename ChangeDescriptionT = Aws::String>
94 CreateWorkflowRequest& WithChangeDescription(ChangeDescriptionT&& value) { SetChangeDescription(std::forward<ChangeDescriptionT>(value)); return *this;}
96
98
103 inline const Aws::String& GetData() const { return m_data; }
104 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
105 template<typename DataT = Aws::String>
106 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
107 template<typename DataT = Aws::String>
108 CreateWorkflowRequest& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
110
112
120 inline const Aws::String& GetUri() const { return m_uri; }
121 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
122 template<typename UriT = Aws::String>
123 void SetUri(UriT&& value) { m_uriHasBeenSet = true; m_uri = std::forward<UriT>(value); }
124 template<typename UriT = Aws::String>
125 CreateWorkflowRequest& WithUri(UriT&& value) { SetUri(std::forward<UriT>(value)); return *this;}
127
129
132 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
133 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
134 template<typename KmsKeyIdT = Aws::String>
135 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
136 template<typename KmsKeyIdT = Aws::String>
137 CreateWorkflowRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
139
141
144 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
148 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 CreateWorkflowRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
150 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
151 CreateWorkflowRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
152 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
153 }
155
157
163 inline const Aws::String& GetClientToken() const { return m_clientToken; }
164 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
165 template<typename ClientTokenT = Aws::String>
166 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
167 template<typename ClientTokenT = Aws::String>
168 CreateWorkflowRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
170
172
176 inline WorkflowType GetType() const { return m_type; }
177 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
178 inline void SetType(WorkflowType value) { m_typeHasBeenSet = true; m_type = value; }
179 inline CreateWorkflowRequest& WithType(WorkflowType value) { SetType(value); return *this;}
181 private:
182
183 Aws::String m_name;
184 bool m_nameHasBeenSet = false;
185
186 Aws::String m_semanticVersion;
187 bool m_semanticVersionHasBeenSet = false;
188
189 Aws::String m_description;
190 bool m_descriptionHasBeenSet = false;
191
192 Aws::String m_changeDescription;
193 bool m_changeDescriptionHasBeenSet = false;
194
195 Aws::String m_data;
196 bool m_dataHasBeenSet = false;
197
198 Aws::String m_uri;
199 bool m_uriHasBeenSet = false;
200
201 Aws::String m_kmsKeyId;
202 bool m_kmsKeyIdHasBeenSet = false;
203
205 bool m_tagsHasBeenSet = false;
206
208 bool m_clientTokenHasBeenSet = true;
209
211 bool m_typeHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace imagebuilder
216} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateWorkflowRequest & WithName(NameT &&value)
CreateWorkflowRequest & WithData(DataT &&value)
CreateWorkflowRequest & WithClientToken(ClientTokenT &&value)
CreateWorkflowRequest & WithSemanticVersion(SemanticVersionT &&value)
CreateWorkflowRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateWorkflowRequest & WithType(WorkflowType value)
CreateWorkflowRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateWorkflowRequest & WithDescription(DescriptionT &&value)
AWS_IMAGEBUILDER_API CreateWorkflowRequest()=default
CreateWorkflowRequest & WithChangeDescription(ChangeDescriptionT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
CreateWorkflowRequest & WithTags(TagsT &&value)
void SetChangeDescription(ChangeDescriptionT &&value)
virtual const char * GetServiceRequestName() const override
CreateWorkflowRequest & WithUri(UriT &&value)
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