Class TransformConfig.Builder
- java.lang.Object
-
- software.amazon.smithy.build.model.TransformConfig.Builder
-
- All Implemented Interfaces:
SmithyBuilder<TransformConfig>
- Enclosing class:
- TransformConfig
public static final class TransformConfig.Builder extends java.lang.Object implements SmithyBuilder<TransformConfig>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransformConfig.Builder
args(Node args)
Sets the args of the transform.TransformConfig
build()
Creates an immutable object that is created from the properties that have been set on the builder.TransformConfig.Builder
name(java.lang.String name)
Sets the required name.
-
-
-
Method Detail
-
build
public TransformConfig build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceSmithyBuilder<TransformConfig>
- Returns:
- an instance of T
-
name
public TransformConfig.Builder name(java.lang.String name)
Sets the required name.- Parameters:
name
- Name of the transform.- Returns:
- Returns the builder.
-
args
public TransformConfig.Builder args(Node args)
Sets the args of the transform.If an array is provided, the array is automatically converted to an object with a key named "__args" that contains the array. This is a backward compatibility shim for older versions of Smithy Builder that only accepts a list of strings for projection transforms.
- Parameters:
args
- Arguments to set.- Returns:
- Returns the builder.
-
-