/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

Specifies a transform that uses custom code you provide to perform the data * transformation. The output is a collection of DynamicFrames.

See * Also:

AWS API * Reference

*/ class CustomCode { public: AWS_GLUE_API CustomCode(); AWS_GLUE_API CustomCode(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API CustomCode& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the transform node.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the transform node.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the transform node.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the transform node.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the transform node.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the transform node.

*/ inline CustomCode& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the transform node.

*/ inline CustomCode& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the transform node.

*/ inline CustomCode& WithName(const char* value) { SetName(value); return *this;} /** *

The data inputs identified by their node names.

*/ inline const Aws::Vector& GetInputs() const{ return m_inputs; } /** *

The data inputs identified by their node names.

*/ inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; } /** *

The data inputs identified by their node names.

*/ inline void SetInputs(const Aws::Vector& value) { m_inputsHasBeenSet = true; m_inputs = value; } /** *

The data inputs identified by their node names.

*/ inline void SetInputs(Aws::Vector&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); } /** *

The data inputs identified by their node names.

*/ inline CustomCode& WithInputs(const Aws::Vector& value) { SetInputs(value); return *this;} /** *

The data inputs identified by their node names.

*/ inline CustomCode& WithInputs(Aws::Vector&& value) { SetInputs(std::move(value)); return *this;} /** *

The data inputs identified by their node names.

*/ inline CustomCode& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *

The data inputs identified by their node names.

*/ inline CustomCode& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; } /** *

The data inputs identified by their node names.

*/ inline CustomCode& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; } /** *

The custom code that is used to perform the data transformation.

*/ inline const Aws::String& GetCode() const{ return m_code; } /** *

The custom code that is used to perform the data transformation.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The custom code that is used to perform the data transformation.

*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The custom code that is used to perform the data transformation.

*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The custom code that is used to perform the data transformation.

*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *

The custom code that is used to perform the data transformation.

*/ inline CustomCode& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *

The custom code that is used to perform the data transformation.

*/ inline CustomCode& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *

The custom code that is used to perform the data transformation.

*/ inline CustomCode& WithCode(const char* value) { SetCode(value); return *this;} /** *

The name defined for the custom code node class.

*/ inline const Aws::String& GetClassName() const{ return m_className; } /** *

The name defined for the custom code node class.

*/ inline bool ClassNameHasBeenSet() const { return m_classNameHasBeenSet; } /** *

The name defined for the custom code node class.

*/ inline void SetClassName(const Aws::String& value) { m_classNameHasBeenSet = true; m_className = value; } /** *

The name defined for the custom code node class.

*/ inline void SetClassName(Aws::String&& value) { m_classNameHasBeenSet = true; m_className = std::move(value); } /** *

The name defined for the custom code node class.

*/ inline void SetClassName(const char* value) { m_classNameHasBeenSet = true; m_className.assign(value); } /** *

The name defined for the custom code node class.

*/ inline CustomCode& WithClassName(const Aws::String& value) { SetClassName(value); return *this;} /** *

The name defined for the custom code node class.

*/ inline CustomCode& WithClassName(Aws::String&& value) { SetClassName(std::move(value)); return *this;} /** *

The name defined for the custom code node class.

*/ inline CustomCode& WithClassName(const char* value) { SetClassName(value); return *this;} /** *

Specifies the data schema for the custom code transform.

*/ inline const Aws::Vector& GetOutputSchemas() const{ return m_outputSchemas; } /** *

Specifies the data schema for the custom code transform.

*/ inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; } /** *

Specifies the data schema for the custom code transform.

*/ inline void SetOutputSchemas(const Aws::Vector& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = value; } /** *

Specifies the data schema for the custom code transform.

*/ inline void SetOutputSchemas(Aws::Vector&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::move(value); } /** *

Specifies the data schema for the custom code transform.

*/ inline CustomCode& WithOutputSchemas(const Aws::Vector& value) { SetOutputSchemas(value); return *this;} /** *

Specifies the data schema for the custom code transform.

*/ inline CustomCode& WithOutputSchemas(Aws::Vector&& value) { SetOutputSchemas(std::move(value)); return *this;} /** *

Specifies the data schema for the custom code transform.

*/ inline CustomCode& AddOutputSchemas(const GlueSchema& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(value); return *this; } /** *

Specifies the data schema for the custom code transform.

*/ inline CustomCode& AddOutputSchemas(GlueSchema&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_inputs; bool m_inputsHasBeenSet = false; Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_className; bool m_classNameHasBeenSet = false; Aws::Vector m_outputSchemas; bool m_outputSchemasHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws