AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
CreateScriptRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/CodeGenEdge.h>
11#include <aws/glue/model/CodeGenNode.h>
12#include <aws/glue/model/Language.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Glue {
18namespace Model {
19
23 public:
24 AWS_GLUE_API CreateScriptRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateScript"; }
31
32 AWS_GLUE_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::Vector<CodeGenNode>& GetDagNodes() const { return m_dagNodes; }
41 inline bool DagNodesHasBeenSet() const { return m_dagNodesHasBeenSet; }
42 template <typename DagNodesT = Aws::Vector<CodeGenNode>>
43 void SetDagNodes(DagNodesT&& value) {
44 m_dagNodesHasBeenSet = true;
45 m_dagNodes = std::forward<DagNodesT>(value);
46 }
47 template <typename DagNodesT = Aws::Vector<CodeGenNode>>
48 CreateScriptRequest& WithDagNodes(DagNodesT&& value) {
49 SetDagNodes(std::forward<DagNodesT>(value));
50 return *this;
51 }
52 template <typename DagNodesT = CodeGenNode>
53 CreateScriptRequest& AddDagNodes(DagNodesT&& value) {
54 m_dagNodesHasBeenSet = true;
55 m_dagNodes.emplace_back(std::forward<DagNodesT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<CodeGenEdge>& GetDagEdges() const { return m_dagEdges; }
65 inline bool DagEdgesHasBeenSet() const { return m_dagEdgesHasBeenSet; }
66 template <typename DagEdgesT = Aws::Vector<CodeGenEdge>>
67 void SetDagEdges(DagEdgesT&& value) {
68 m_dagEdgesHasBeenSet = true;
69 m_dagEdges = std::forward<DagEdgesT>(value);
70 }
71 template <typename DagEdgesT = Aws::Vector<CodeGenEdge>>
72 CreateScriptRequest& WithDagEdges(DagEdgesT&& value) {
73 SetDagEdges(std::forward<DagEdgesT>(value));
74 return *this;
75 }
76 template <typename DagEdgesT = CodeGenEdge>
77 CreateScriptRequest& AddDagEdges(DagEdgesT&& value) {
78 m_dagEdgesHasBeenSet = true;
79 m_dagEdges.emplace_back(std::forward<DagEdgesT>(value));
80 return *this;
81 }
83
85
88 inline Language GetLanguage() const { return m_language; }
89 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
90 inline void SetLanguage(Language value) {
91 m_languageHasBeenSet = true;
92 m_language = value;
93 }
95 SetLanguage(value);
96 return *this;
97 }
99 private:
100 Aws::Vector<CodeGenNode> m_dagNodes;
101 bool m_dagNodesHasBeenSet = false;
102
103 Aws::Vector<CodeGenEdge> m_dagEdges;
104 bool m_dagEdgesHasBeenSet = false;
105
106 Language m_language{Language::NOT_SET};
107 bool m_languageHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Glue
112} // namespace Aws
const Aws::Vector< CodeGenEdge > & GetDagEdges() const
CreateScriptRequest & WithLanguage(Language value)
const Aws::Vector< CodeGenNode > & GetDagNodes() const
AWS_GLUE_API CreateScriptRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateScriptRequest & AddDagNodes(DagNodesT &&value)
CreateScriptRequest & AddDagEdges(DagEdgesT &&value)
CreateScriptRequest & WithDagNodes(DagNodesT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateScriptRequest & WithDagEdges(DagEdgesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector