Class InterfaceType.Builder

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

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

    • create

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

      @Stability(Experimental) public InterfaceType.Builder definition(Map<String,? extends IField> definition)
      (experimental) the attributes of this type.

      Parameters:
      definition - the attributes of this type. This parameter is required.
      Returns:
      this
    • directives

      @Stability(Experimental) public InterfaceType.Builder directives(List<? extends Directive> directives)
      (experimental) the directives for this object type.

      Default: - no directives

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

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