Class UnionType.Builder

java.lang.Object
software.amazon.awscdk.services.appsync.UnionType.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<UnionType>
Enclosing class:
UnionType

@Stability(Experimental) public static final class UnionType.Builder extends Object implements software.amazon.jsii.Builder<UnionType>
(experimental) A fluent builder for UnionType.
  • Method Details

    • create

      @Stability(Experimental) public static UnionType.Builder create(String name)
      Parameters:
      name - This parameter is required.
      Returns:
      a new instance of UnionType.Builder.
    • definition

      @Stability(Experimental) public UnionType.Builder definition(List<? extends IIntermediateType> definition)
      (experimental) the object types for this union type.

      Parameters:
      definition - the object types for this union type. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public UnionType build()
      Specified by:
      build in interface software.amazon.jsii.Builder<UnionType>
      Returns:
      a newly built instance of UnionType.