Class GenerateServiceDirective<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<ServiceShape,C,S>
- 
- software.amazon.smithy.codegen.core.directed.GenerateServiceDirective<C,S>
 
 
 
 
- 
- Type Parameters:
- C- CodegenContext type.
- S- Codegen settings type.
 
 public final class GenerateServiceDirective<C extends CodegenContext<S,?,?>,S> extends ShapeDirective<ServiceShape,C,S> Directive used to generate a service.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method 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.StringserviceTitle()Gets theTitleTraitvalue of the service if present, otherwise returns theSymbol.getName()value of the service.java.lang.StringserviceTitle(java.lang.String fallback)Attempts to get the title of service from the model, returning the fallback value if the service does not have aTitleTrait.- 
Methods inherited from class software.amazon.smithy.codegen.core.directed.ShapeDirectiveshape, symbol
 - 
Methods inherited from class software.amazon.smithy.codegen.core.directed.ContextualDirectivecontext, fileManifest, symbolProvider
 - 
Methods inherited from class software.amazon.smithy.codegen.core.directed.DirectiveconnectedShapes, model, operations, service, settings
 
- 
 
- 
- 
- 
Method Detail- 
serviceTitlepublic java.lang.String serviceTitle() Gets theTitleTraitvalue of the service if present, otherwise returns theSymbol.getName()value of the service.- Returns:
- title of service
 
 - 
serviceTitlepublic 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 aTitleTrait.- Parameters:
- fallback- string to return if service does not have a title
- Returns:
- title of service
 
 - 
inputEventStreamOperationspublic java.util.Map<ShapeId,EventStreamInfo> inputEventStreamOperations() Get a map of operations that use an event stream in their input.- Returns:
- Returns a map of operation shape IDs to their event stream information.
- See Also:
- EventStreamIndex
 
 - 
outputEventStreamOperationspublic java.util.Map<ShapeId,EventStreamInfo> outputEventStreamOperations() Get a map of operations that use an event stream in their output.- Returns:
- Returns a map of operation shape IDs to their event stream information.
- See Also:
- EventStreamIndex
 
 
- 
 
-