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);