AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
CreateWorkflowRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glue {
16namespace Model {
17
21 public:
22 AWS_GLUE_API CreateWorkflowRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkflow"; }
29
30 AWS_GLUE_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 CreateWorkflowRequest& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultRunProperties() const { return m_defaultRunProperties; }
80 inline bool DefaultRunPropertiesHasBeenSet() const { return m_defaultRunPropertiesHasBeenSet; }
81 template <typename DefaultRunPropertiesT = Aws::Map<Aws::String, Aws::String>>
82 void SetDefaultRunProperties(DefaultRunPropertiesT&& value) {
83 m_defaultRunPropertiesHasBeenSet = true;
84 m_defaultRunProperties = std::forward<DefaultRunPropertiesT>(value);
85 }
86 template <typename DefaultRunPropertiesT = Aws::Map<Aws::String, Aws::String>>
87 CreateWorkflowRequest& WithDefaultRunProperties(DefaultRunPropertiesT&& value) {
88 SetDefaultRunProperties(std::forward<DefaultRunPropertiesT>(value));
89 return *this;
90 }
91 template <typename DefaultRunPropertiesKeyT = Aws::String, typename DefaultRunPropertiesValueT = Aws::String>
92 CreateWorkflowRequest& AddDefaultRunProperties(DefaultRunPropertiesKeyT&& key, DefaultRunPropertiesValueT&& value) {
93 m_defaultRunPropertiesHasBeenSet = true;
94 m_defaultRunProperties.emplace(std::forward<DefaultRunPropertiesKeyT>(key), std::forward<DefaultRunPropertiesValueT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 void SetTags(TagsT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags = std::forward<TagsT>(value);
109 }
110 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 SetTags(std::forward<TagsT>(value));
113 return *this;
114 }
115 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
116 CreateWorkflowRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
119 return *this;
120 }
122
124
130 inline int GetMaxConcurrentRuns() const { return m_maxConcurrentRuns; }
131 inline bool MaxConcurrentRunsHasBeenSet() const { return m_maxConcurrentRunsHasBeenSet; }
132 inline void SetMaxConcurrentRuns(int value) {
133 m_maxConcurrentRunsHasBeenSet = true;
134 m_maxConcurrentRuns = value;
135 }
138 return *this;
139 }
141 private:
142 Aws::String m_name;
143 bool m_nameHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 Aws::Map<Aws::String, Aws::String> m_defaultRunProperties;
149 bool m_defaultRunPropertiesHasBeenSet = false;
150
152 bool m_tagsHasBeenSet = false;
153
154 int m_maxConcurrentRuns{0};
155 bool m_maxConcurrentRunsHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace Glue
160} // namespace Aws
CreateWorkflowRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateWorkflowRequest & WithTags(TagsT &&value)
CreateWorkflowRequest & WithDescription(DescriptionT &&value)
AWS_GLUE_API CreateWorkflowRequest()=default
CreateWorkflowRequest & AddDefaultRunProperties(DefaultRunPropertiesKeyT &&key, DefaultRunPropertiesValueT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateWorkflowRequest & WithMaxConcurrentRuns(int value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetDefaultRunProperties() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateWorkflowRequest & WithName(NameT &&value)
CreateWorkflowRequest & WithDefaultRunProperties(DefaultRunPropertiesT &&value)
void SetDefaultRunProperties(DefaultRunPropertiesT &&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