Class GenerateUnionDirective<C extends CodegenContext<S,?,?>,S>
java.lang.Object
software.amazon.smithy.codegen.core.directed.Directive<S>
software.amazon.smithy.codegen.core.directed.ContextualDirective<C,S>
software.amazon.smithy.codegen.core.directed.ShapeDirective<UnionShape,C,S>
software.amazon.smithy.codegen.core.directed.GenerateUnionDirective<C,S>
- Type Parameters:
C
- CodegenContext type.S
- Codegen settings type.
public final class GenerateUnionDirective<C extends CodegenContext<S,?,?>,S>
extends ShapeDirective<UnionShape,C,S>
Directive used to generate a union.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if this is an event stream union.Methods inherited from class software.amazon.smithy.codegen.core.directed.ShapeDirective
shape, symbol
Methods inherited from class software.amazon.smithy.codegen.core.directed.ContextualDirective
context, fileManifest, symbolProvider
Methods inherited from class software.amazon.smithy.codegen.core.directed.Directive
connectedShapes, model, operations, service, settings
-
Method Details
-
isEventStream
public boolean isEventStream()Check if this is an event stream union.- Returns:
- Returns true if this is an event stream.
-