Interface UnionTypeOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
UnionTypeOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.579Z")
@Stability(Experimental)
public interface UnionTypeOptions
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for configuring an Union Type.
Example:
GraphqlApi api; GraphqlType string = GraphqlType.string(); ObjectType human = ObjectType.Builder.create("Human").definition(Map.of("name", string)).build(); ObjectType droid = ObjectType.Builder.create("Droid").definition(Map.of("name", string)).build(); ObjectType starship = ObjectType.Builder.create("Starship").definition(Map.of("name", string)).build(); UnionType search = UnionType.Builder.create("Search") .definition(List.of(human, droid, starship)) .build(); api.addType(search);
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forUnionTypeOptions
static final class
An implementation forUnionTypeOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic UnionTypeOptions.Builder
builder()
(experimental) the object types for this union type.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDefinition
(experimental) the object types for this union type. -
builder
- Returns:
- a
UnionTypeOptions.Builder
ofUnionTypeOptions
-