Class RestMethod.Builder

All Implemented Interfaces:
Prototype.Builder<RestMethod.Builder, RestMethod>, Builder<RestMethod.Builder, RestMethod>, Supplier<RestMethod>
Enclosing interface:
RestMethod

public static class RestMethod.Builder extends RestMethod.BuilderBase<RestMethod.Builder, RestMethod> implements Builder<RestMethod.Builder, RestMethod>
Fluent API builder for RestMethod.
  • Method Details

    • buildPrototype

      public RestMethod buildPrototype()
      Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.
      Specified by:
      buildPrototype in interface Prototype.Builder<RestMethod.Builder, RestMethod>
      Returns:
      an instance of the setup object created from this builder
    • build

      public RestMethod build()
      Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.
      Specified by:
      build in interface Builder<RestMethod.Builder, RestMethod>
      Returns:
      instance of the built type