Class ApiDescription.Builder

  • Enclosing class:
    ApiDescription

    public static final class ApiDescription.Builder
    extends Object
    Builder for the ApiDescription.
    • Method Detail

      • description

        public ApiDescription.Builder description​(String description)
        Sets the description.
        Parameters:
        description - Description of API Description
        Returns:
        Builder
      • definitions

        public ApiDescription.Builder definitions​(Definitions definitions)
        Set the definitions.
        Parameters:
        definitions - Definitions for this API Description
        Returns:
        Builder
      • services

        public ApiDescription.Builder services​(Services services)
        Set the services.
        Parameters:
        services - Services for this API Description
        Returns:
        Builder
      • errors

        public ApiDescription.Builder errors​(Errors errors)
        Set the errors.
        Parameters:
        errors - Errors for this API Description
        Returns:
        Builder
      • version

        public ApiDescription.Builder version​(String version)
        Set the version of the API.
        Parameters:
        version - The version.
        Returns:
        This builder.
      • build

        public ApiDescription build()
        Builds the ApiDescription instance.
        Returns:
        ApiDescription instance