AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CustomCode.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/GlueSchema.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_GLUE_API CustomCode() = default;
39 AWS_GLUE_API CustomCode(Aws::Utils::Json::JsonView jsonValue);
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 CustomCode& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
64 template<typename InputsT = Aws::Vector<Aws::String>>
65 CustomCode& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
66 template<typename InputsT = Aws::String>
67 CustomCode& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
69
71
74 inline const Aws::String& GetCode() const { return m_code; }
75 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
76 template<typename CodeT = Aws::String>
77 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
78 template<typename CodeT = Aws::String>
79 CustomCode& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
81
83
86 inline const Aws::String& GetClassName() const { return m_className; }
87 inline bool ClassNameHasBeenSet() const { return m_classNameHasBeenSet; }
88 template<typename ClassNameT = Aws::String>
89 void SetClassName(ClassNameT&& value) { m_classNameHasBeenSet = true; m_className = std::forward<ClassNameT>(value); }
90 template<typename ClassNameT = Aws::String>
91 CustomCode& WithClassName(ClassNameT&& value) { SetClassName(std::forward<ClassNameT>(value)); return *this;}
93
95
98 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const { return m_outputSchemas; }
99 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
100 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
101 void SetOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::forward<OutputSchemasT>(value); }
102 template<typename OutputSchemasT = Aws::Vector<GlueSchema>>
103 CustomCode& WithOutputSchemas(OutputSchemasT&& value) { SetOutputSchemas(std::forward<OutputSchemasT>(value)); return *this;}
104 template<typename OutputSchemasT = GlueSchema>
105 CustomCode& AddOutputSchemas(OutputSchemasT&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.emplace_back(std::forward<OutputSchemasT>(value)); return *this; }
107 private:
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
113 bool m_inputsHasBeenSet = false;
114
115 Aws::String m_code;
116 bool m_codeHasBeenSet = false;
117
118 Aws::String m_className;
119 bool m_classNameHasBeenSet = false;
120
121 Aws::Vector<GlueSchema> m_outputSchemas;
122 bool m_outputSchemasHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Glue
127} // namespace Aws
const Aws::String & GetName() const
Definition CustomCode.h:48
void SetCode(CodeT &&value)
Definition CustomCode.h:77
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:53
CustomCode & AddOutputSchemas(OutputSchemasT &&value)
Definition CustomCode.h:105
CustomCode & WithCode(CodeT &&value)
Definition CustomCode.h:79
CustomCode & WithOutputSchemas(OutputSchemasT &&value)
Definition CustomCode.h:103
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
Definition CustomCode.h:98
CustomCode & WithClassName(ClassNameT &&value)
Definition CustomCode.h:91
CustomCode & WithInputs(InputsT &&value)
Definition CustomCode.h:65
void SetClassName(ClassNameT &&value)
Definition CustomCode.h:89
CustomCode & AddInputs(InputsT &&value)
Definition CustomCode.h:67
void SetOutputSchemas(OutputSchemasT &&value)
Definition CustomCode.h:101
const Aws::String & GetCode() const
Definition CustomCode.h:74
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:99
bool ClassNameHasBeenSet() const
Definition CustomCode.h:87
void SetName(NameT &&value)
Definition CustomCode.h:51
const Aws::String & GetClassName() const
Definition CustomCode.h:86
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue