AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline CustomCode& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline CustomCode& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline CustomCode& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::Vector<Aws::String>& GetInputs() const{ return m_inputs; }
63 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
64 inline void SetInputs(const Aws::Vector<Aws::String>& value) { m_inputsHasBeenSet = true; m_inputs = value; }
65 inline void SetInputs(Aws::Vector<Aws::String>&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); }
66 inline CustomCode& WithInputs(const Aws::Vector<Aws::String>& value) { SetInputs(value); return *this;}
67 inline CustomCode& WithInputs(Aws::Vector<Aws::String>&& value) { SetInputs(std::move(value)); return *this;}
68 inline CustomCode& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
69 inline CustomCode& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; }
70 inline CustomCode& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
72
74
77 inline const Aws::String& GetCode() const{ return m_code; }
78 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
79 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
80 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
81 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
82 inline CustomCode& WithCode(const Aws::String& value) { SetCode(value); return *this;}
83 inline CustomCode& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
84 inline CustomCode& WithCode(const char* value) { SetCode(value); return *this;}
86
88
91 inline const Aws::String& GetClassName() const{ return m_className; }
92 inline bool ClassNameHasBeenSet() const { return m_classNameHasBeenSet; }
93 inline void SetClassName(const Aws::String& value) { m_classNameHasBeenSet = true; m_className = value; }
94 inline void SetClassName(Aws::String&& value) { m_classNameHasBeenSet = true; m_className = std::move(value); }
95 inline void SetClassName(const char* value) { m_classNameHasBeenSet = true; m_className.assign(value); }
96 inline CustomCode& WithClassName(const Aws::String& value) { SetClassName(value); return *this;}
97 inline CustomCode& WithClassName(Aws::String&& value) { SetClassName(std::move(value)); return *this;}
98 inline CustomCode& WithClassName(const char* value) { SetClassName(value); return *this;}
100
102
105 inline const Aws::Vector<GlueSchema>& GetOutputSchemas() const{ return m_outputSchemas; }
106 inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; }
107 inline void SetOutputSchemas(const Aws::Vector<GlueSchema>& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = value; }
108 inline void SetOutputSchemas(Aws::Vector<GlueSchema>&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::move(value); }
109 inline CustomCode& WithOutputSchemas(const Aws::Vector<GlueSchema>& value) { SetOutputSchemas(value); return *this;}
110 inline CustomCode& WithOutputSchemas(Aws::Vector<GlueSchema>&& value) { SetOutputSchemas(std::move(value)); return *this;}
111 inline CustomCode& AddOutputSchemas(const GlueSchema& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(value); return *this; }
112 inline CustomCode& AddOutputSchemas(GlueSchema&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(std::move(value)); return *this; }
114 private:
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
120 bool m_inputsHasBeenSet = false;
121
122 Aws::String m_code;
123 bool m_codeHasBeenSet = false;
124
125 Aws::String m_className;
126 bool m_classNameHasBeenSet = false;
127
128 Aws::Vector<GlueSchema> m_outputSchemas;
129 bool m_outputSchemasHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Glue
134} // namespace Aws
const Aws::String & GetName() const
Definition CustomCode.h:48
CustomCode & WithCode(const char *value)
Definition CustomCode.h:84
CustomCode & WithOutputSchemas(const Aws::Vector< GlueSchema > &value)
Definition CustomCode.h:109
CustomCode & WithInputs(Aws::Vector< Aws::String > &&value)
Definition CustomCode.h:67
CustomCode & WithClassName(const char *value)
Definition CustomCode.h:98
AWS_GLUE_API CustomCode & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOutputSchemas(const Aws::Vector< GlueSchema > &value)
Definition CustomCode.h:107
const Aws::Vector< Aws::String > & GetInputs() const
Definition CustomCode.h:62
CustomCode & AddInputs(const char *value)
Definition CustomCode.h:70
void SetCode(const Aws::String &value)
Definition CustomCode.h:79
CustomCode & WithName(const char *value)
Definition CustomCode.h:55
CustomCode & WithName(const Aws::String &value)
Definition CustomCode.h:53
CustomCode & AddOutputSchemas(GlueSchema &&value)
Definition CustomCode.h:112
void SetClassName(Aws::String &&value)
Definition CustomCode.h:94
void SetName(const char *value)
Definition CustomCode.h:52
void SetInputs(const Aws::Vector< Aws::String > &value)
Definition CustomCode.h:64
const Aws::Vector< GlueSchema > & GetOutputSchemas() const
Definition CustomCode.h:105
CustomCode & WithCode(Aws::String &&value)
Definition CustomCode.h:83
void SetCode(Aws::String &&value)
Definition CustomCode.h:80
void SetCode(const char *value)
Definition CustomCode.h:81
void SetName(const Aws::String &value)
Definition CustomCode.h:50
void SetClassName(const char *value)
Definition CustomCode.h:95
CustomCode & WithClassName(const Aws::String &value)
Definition CustomCode.h:96
CustomCode & WithInputs(const Aws::Vector< Aws::String > &value)
Definition CustomCode.h:66
void SetName(Aws::String &&value)
Definition CustomCode.h:51
CustomCode & WithName(Aws::String &&value)
Definition CustomCode.h:54
void SetInputs(Aws::Vector< Aws::String > &&value)
Definition CustomCode.h:65
CustomCode & AddOutputSchemas(const GlueSchema &value)
Definition CustomCode.h:111
CustomCode & WithOutputSchemas(Aws::Vector< GlueSchema > &&value)
Definition CustomCode.h:110
const Aws::String & GetCode() const
Definition CustomCode.h:77
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
CustomCode & AddInputs(Aws::String &&value)
Definition CustomCode.h:69
AWS_GLUE_API CustomCode(Aws::Utils::Json::JsonView jsonValue)
CustomCode & WithClassName(Aws::String &&value)
Definition CustomCode.h:97
CustomCode & WithCode(const Aws::String &value)
Definition CustomCode.h:82
bool OutputSchemasHasBeenSet() const
Definition CustomCode.h:106
bool ClassNameHasBeenSet() const
Definition CustomCode.h:92
void SetClassName(const Aws::String &value)
Definition CustomCode.h:93
CustomCode & AddInputs(const Aws::String &value)
Definition CustomCode.h:68
const Aws::String & GetClassName() const
Definition CustomCode.h:91
void SetOutputSchemas(Aws::Vector< GlueSchema > &&value)
Definition CustomCode.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue