Class Field.Builder

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

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

    • create

      @Stability(Experimental) public static Field.Builder create()
      Returns:
      a new instance of Field.Builder.
    • returnType

      @Stability(Experimental) public Field.Builder returnType(GraphqlType returnType)
      (experimental) The return type for this field.

      Parameters:
      returnType - The return type for this field. This parameter is required.
      Returns:
      this
    • args

      @Stability(Experimental) public Field.Builder args(Map<String,? extends GraphqlType> args)
      (experimental) The arguments for this field.

      i.e. type Example (first: String second: String) {}

      • where 'first' and 'second' are key values for args and 'String' is the GraphqlType

      Default: - no arguments

      Parameters:
      args - The arguments for this field. This parameter is required.
      Returns:
      this
    • directives

      @Stability(Experimental) public Field.Builder directives(List<? extends Directive> directives)
      (experimental) the directives for this field.

      Default: - no directives

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

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