C
- CodegenContext type.S
- Codegen settings type.public final class GenerateServiceDirective<C extends CodegenContext<S,?>,S> extends ShapeDirective<ServiceShape,C,S>
Modifier and Type | Method and Description |
---|---|
java.util.Map<ShapeId,EventStreamInfo> |
inputEventStreamOperations()
Get a map of operations that use an event stream in their input.
|
java.util.Map<ShapeId,EventStreamInfo> |
outputEventStreamOperations()
Get a map of operations that use an event stream in their output.
|
java.lang.String |
serviceTitle()
Gets the
TitleTrait value of the service if present, otherwise returns
the Symbol.getName() value of the service. |
java.lang.String |
serviceTitle(java.lang.String fallback)
Attempts to get the title of service from the model, returning the fallback value
if the service does not have a
TitleTrait . |
shape, symbol
context, fileManifest, symbolProvider
connectedShapes, model, operations, service, settings
public java.lang.String serviceTitle()
TitleTrait
value of the service if present, otherwise returns
the Symbol.getName()
value of the service.public java.lang.String serviceTitle(java.lang.String fallback)
TitleTrait
.fallback
- string to return if service does not have a titlepublic java.util.Map<ShapeId,EventStreamInfo> inputEventStreamOperations()
EventStreamIndex
public java.util.Map<ShapeId,EventStreamInfo> outputEventStreamOperations()
EventStreamIndex