Class GenerateServiceDirective<C extends CodegenContext<S,?,?>,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.
See Also:
  • Method Details

    • serviceTitle

      public String serviceTitle()
      Gets the TitleTrait value of the service if present, otherwise returns the Symbol.getName() value of the service.
      Returns:
      title of service
    • serviceTitle

      public String serviceTitle(String fallback)
      Attempts to get the title of service from the model, returning the fallback value if the service does not have a TitleTrait.
      Parameters:
      fallback - string to return if service does not have a title
      Returns:
      title of service
    • inputEventStreamOperations

      public 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:
    • outputEventStreamOperations

      public 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: