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 Summary
Modifier and TypeMethodDescriptionargs
(Map<String, ? extends GraphqlType> args) (experimental) The arguments for this field.build()
static Field.Builder
create()
directives
(List<? extends Directive> directives) (experimental) the directives for this field.returnType
(GraphqlType returnType) (experimental) The return type for this field.
-
Method Details
-
create
- Returns:
- a new instance of
Field.Builder
.
-
returnType
(experimental) The return type for this field.- Parameters:
returnType
- The return type for this field. This parameter is required.- Returns:
this
-
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
(experimental) the directives for this field.Default: - no directives
- Parameters:
directives
- the directives for this field. This parameter is required.- Returns:
this
-
build
-