Interface CustomCode.Builder

    • Method Detail

      • name

        CustomCode.Builder name​(String name)

        The name of the transform node.

        Parameters:
        name - The name of the transform node.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • inputs

        CustomCode.Builder inputs​(Collection<String> inputs)

        The data inputs identified by their node names.

        Parameters:
        inputs - The data inputs identified by their node names.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • inputs

        CustomCode.Builder inputs​(String... inputs)

        The data inputs identified by their node names.

        Parameters:
        inputs - The data inputs identified by their node names.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • code

        CustomCode.Builder code​(String code)

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

        Parameters:
        code - The custom code that is used to perform the data transformation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • className

        CustomCode.Builder className​(String className)

        The name defined for the custom code node class.

        Parameters:
        className - The name defined for the custom code node class.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • outputSchemas

        CustomCode.Builder outputSchemas​(Collection<GlueSchema> outputSchemas)

        Specifies the data schema for the custom code transform.

        Parameters:
        outputSchemas - Specifies the data schema for the custom code transform.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • outputSchemas

        CustomCode.Builder outputSchemas​(GlueSchema... outputSchemas)

        Specifies the data schema for the custom code transform.

        Parameters:
        outputSchemas - Specifies the data schema for the custom code transform.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • outputSchemas

        CustomCode.Builder outputSchemas​(Consumer<GlueSchema.Builder>... outputSchemas)

        Specifies the data schema for the custom code transform.

        This is a convenience method that creates an instance of the GlueSchema.Builder avoiding the need to create one manually via GlueSchema.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #outputSchemas(List).

        Parameters:
        outputSchemas - a consumer that will call methods on GlueSchema.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #outputSchemas(java.util.Collection)