Class ObjectType.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.ObjectType.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ObjectType>
- Enclosing class:
ObjectType
@Stability(Experimental)
public static final class ObjectType.Builder
extends Object
implements software.amazon.jsii.Builder<ObjectType>
(experimental) A fluent builder for
ObjectType
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static ObjectType.Builder
definition
(Map<String, ? extends IField> definition) (experimental) the attributes of this type.directives
(List<? extends Directive> directives) (experimental) the directives for this object type.interfaceTypes
(List<? extends InterfaceType> interfaceTypes) (experimental) The Interface Types this Object Type implements.
-
Method Details
-
create
- Parameters:
name
- This parameter is required.- Returns:
- a new instance of
ObjectType.Builder
.
-
definition
@Stability(Experimental) public ObjectType.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
(experimental) the directives for this object type.Default: - no directives
- Parameters:
directives
- the directives for this object type. This parameter is required.- Returns:
this
-
interfaceTypes
@Stability(Experimental) public ObjectType.Builder interfaceTypes(List<? extends InterfaceType> interfaceTypes) (experimental) The Interface Types this Object Type implements.Default: - no interface types
- Parameters:
interfaceTypes
- The Interface Types this Object Type implements. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ObjectType>
- Returns:
- a newly built instance of
ObjectType
.
-