Class ObjectTypeOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.ObjectTypeOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ObjectTypeOptions>
- Enclosing interface:
ObjectTypeOptions
@Stability(Experimental)
public static final class ObjectTypeOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ObjectTypeOptions>
A builder for
ObjectTypeOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.definition
(Map<String, ? extends IField> definition) Sets the value ofIntermediateTypeOptions.getDefinition()
directives
(List<? extends Directive> directives) Sets the value ofIntermediateTypeOptions.getDirectives()
interfaceTypes
(List<? extends InterfaceType> interfaceTypes) Sets the value ofObjectTypeOptions.getInterfaceTypes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
interfaceTypes
@Stability(Experimental) public ObjectTypeOptions.Builder interfaceTypes(List<? extends InterfaceType> interfaceTypes) Sets the value ofObjectTypeOptions.getInterfaceTypes()
- Parameters:
interfaceTypes
- The Interface Types this Object Type implements.- Returns:
this
-
definition
@Stability(Experimental) public ObjectTypeOptions.Builder definition(Map<String, ? extends IField> definition) Sets the value ofIntermediateTypeOptions.getDefinition()
- Parameters:
definition
- the attributes of this type. This parameter is required.- Returns:
this
-
directives
@Stability(Experimental) public ObjectTypeOptions.Builder directives(List<? extends Directive> directives) Sets the value ofIntermediateTypeOptions.getDirectives()
- Parameters:
directives
- the directives for this object type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ObjectTypeOptions>
- Returns:
- a new instance of
ObjectTypeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-