Class GenerateServiceDirective<C extends CodegenContext<S,​?,​?>,​S>

    • Method Detail

      • serviceTitle

        public java.lang.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 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.
        Parameters:
        fallback - string to return if service does not have a title
        Returns:
        title of service
      • inputEventStreamOperations

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

        public 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