AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CustomCode.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/GlueSchema.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
32 public:
33 AWS_GLUE_API CustomCode() = default;
34 AWS_GLUE_API CustomCode(Aws::Utils::Json::JsonView jsonValue);
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) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 CustomCode& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
61 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
62 template <typename InputsT = Aws::Vector<Aws::String>>
63 void SetInputs(InputsT&& value) {
64 m_inputsHasBeenSet = true;
65 m_inputs = std::forward<InputsT>(value);
66 }
67 template <typename InputsT = Aws::Vector<Aws::String>>
68 CustomCode& WithInputs(InputsT&& value) {
69 SetInputs(std::forward<InputsT>(value));
70 return *this;
71 }
72 template <typename InputsT = Aws::String>
73 CustomCode& AddInputs(InputsT&& value) {
74 m_inputsHasBeenSet = true;
75 m_inputs.emplace_back(std::forward<InputsT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetCode() const { return m_code; }
85 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
86 template <typename CodeT = Aws::String>
87 void SetCode(CodeT&& value) {
88 m_codeHasBeenSet = true;
89 m_code = std::forward<CodeT>(value);
90 }
91 template <typename CodeT = Aws::String>
92 CustomCode& WithCode(CodeT&& value) {
93 SetCode(std::forward<CodeT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetClassName() const { return m_className; }
103 inline bool ClassNameHasBeenSet() const { return m_classNameHasBeenSet; }
104 template <typename ClassNameT = Aws::String>
105 void SetClassName(ClassNameT&& value) {
106 m_classNameHasBeenSet = true;
107 m_className = std::forward<ClassNameT>(value);
108 }
109 template <typename ClassNameT = Aws::String>
110 CustomCode& WithClassName(ClassNameT&& value) {
111 SetClassName(std::forward<ClassNameT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
121 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
122 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
123 void SetOutputSchemas(OutputSchemasT&& value) {
124 m_outputSchemasHasBeenSet = true;
125 m_outputSchemas = std::forward<OutputSchemasT>(value);
126 }
127 template <typename OutputSchemasT = Aws::Vector<GlueSchema>>
128 CustomCode& WithOutputSchemas(OutputSchemasT&& value) {
129 SetOutputSchemas(std::forward<OutputSchemasT>(value));
130 return *this;
131 }
132 template <typename OutputSchemasT = GlueSchema>
133 CustomCode& AddOutputSchemas(OutputSchemasT&& value) {
134 m_outputSchemasHasBeenSet = true;
135 m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_name;
141
143
144 Aws::String m_code;
145
146 Aws::String m_className;
147
148 Aws::Vector<GlueSchema> m_outputSchemas;
149 bool m_nameHasBeenSet = false;
150 bool m_inputsHasBeenSet = false;
151 bool m_codeHasBeenSet = false;
152 bool m_classNameHasBeenSet = false;
153 bool m_outputSchemasHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Glue
158} // namespace Aws
const Aws::String & GetName() const
Definition CustomCode.h:42
void SetCode(CodeT &&value)
Definition CustomCode.h:87
AWS_GLUE_API CustomCode & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetInputs() const
Definition CustomCode.h:60
void SetInputs(InputsT &&value)
Definition CustomCode.h:63
CustomCode & WithName(NameT &&value)
Definition CustomCode.h:50
CustomCode & AddOutputSchemas(OutputSchemasT &&value)
Definition CustomCode.h:133
CustomCode & WithCode(CodeT &&value)
Definition CustomCode.h:92
CustomCode & WithOutputSchemas(OutputSchemasT &&value)
Definition CustomCode.h:128
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
Definition CustomCode.h:120
CustomCode & WithClassName(ClassNameT &&value)
Definition CustomCode.h:110
CustomCode & WithInputs(InputsT &&value)
Definition CustomCode.h:68
void SetClassName(ClassNameT &&value)
Definition CustomCode.h:105
CustomCode & AddInputs(InputsT &&value)
Definition CustomCode.h:73
void SetOutputSchemas(OutputSchemasT &&value)
Definition CustomCode.h:123
const Aws::String & GetCode() const
Definition CustomCode.h:84
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API CustomCode(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API CustomCode()=default
bool OutputSchemasHasBeenSet() const
Definition CustomCode.h:121
void SetName(NameT &&value)
Definition CustomCode.h:45
const Aws::String & GetClassName() const
Definition CustomCode.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue