Class FieldOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.FieldOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FieldOptions>
- Enclosing interface:
- FieldOptions
@Stability(Experimental)
public static final class FieldOptions.Builder
extends Object
implements software.amazon.jsii.Builder<FieldOptions>
A builder for
FieldOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs(Map<String, ? extends GraphqlType> args) Sets the value ofFieldOptions.getArgs()build()Builds the configured instance.directives(List<? extends Directive> directives) Sets the value ofFieldOptions.getDirectives()returnType(GraphqlType returnType) Sets the value ofFieldOptions.getReturnType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
returnType
Sets the value ofFieldOptions.getReturnType()- Parameters:
returnType- The return type for this field. This parameter is required.- Returns:
this
-
args
Sets the value ofFieldOptions.getArgs()- Parameters:
args- 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
- Returns:
this
-
directives
@Stability(Experimental) public FieldOptions.Builder directives(List<? extends Directive> directives) Sets the value ofFieldOptions.getDirectives()- Parameters:
directives- the directives for this field.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FieldOptions>- Returns:
- a new instance of
FieldOptions - Throws:
NullPointerException- if any required attribute was not provided
-