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
Modifier and Type Method Description TransformConfig.Builderargs(Node args)Sets the args of the transform.TransformConfigbuild()Creates an immutable object that is created from the properties that have been set on the builder.TransformConfig.Buildername(java.lang.String name)Sets the required name.
-
-
-
Method Detail
-
build
public TransformConfig build()
Description copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Specified by:
buildin 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.
-
-