Class ImmutableCtxApiOp.Builder

java.lang.Object
dk.mada.jaxrs.generator.mpclient.api.tmpl.ImmutableCtxApiOp.Builder
Enclosing class:
ImmutableCtxApiOp

@Generated(from="CtxApiOp", generator="Immutables") public static final class ImmutableCtxApiOp.Builder extends Object
Builds instances of type ImmutableCtxApiOp. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      public final ImmutableCtxApiOp.Builder from(CtxApiOp instance)
      Fill a builder with attribute values from the provided CtxApiOp instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • returnType

      public final ImmutableCtxApiOp.Builder returnType(String returnType)
      Initializes the value for the returnType attribute.
      Parameters:
      returnType - The value for returnType
      Returns:
      this builder for use in a chained invocation
    • nickname

      public final ImmutableCtxApiOp.Builder nickname(String nickname)
      Initializes the value for the nickname attribute.
      Parameters:
      nickname - The value for nickname
      Returns:
      this builder for use in a chained invocation
    • httpMethod

      public final ImmutableCtxApiOp.Builder httpMethod(String httpMethod)
      Initializes the value for the httpMethod attribute.
      Parameters:
      httpMethod - The value for httpMethod
      Returns:
      this builder for use in a chained invocation
    • path

      public final ImmutableCtxApiOp.Builder path(String path)
      Initializes the optional value path to path.
      Parameters:
      path - The value for path
      Returns:
      this builder for chained invocation
    • path

      public final ImmutableCtxApiOp.Builder path(Optional<String> path)
      Initializes the optional value path to path.
      Parameters:
      path - The value for path
      Returns:
      this builder for use in a chained invocation
    • summary

      public final ImmutableCtxApiOp.Builder summary(String summary)
      Initializes the optional value summary to summary.
      Parameters:
      summary - The value for summary
      Returns:
      this builder for chained invocation
    • summary

      public final ImmutableCtxApiOp.Builder summary(Optional<String> summary)
      Initializes the optional value summary to summary.
      Parameters:
      summary - The value for summary
      Returns:
      this builder for use in a chained invocation
    • notes

      public final ImmutableCtxApiOp.Builder notes(String notes)
      Initializes the optional value notes to notes.
      Parameters:
      notes - The value for notes
      Returns:
      this builder for chained invocation
    • notes

      public final ImmutableCtxApiOp.Builder notes(Optional<String> notes)
      Initializes the optional value notes to notes.
      Parameters:
      notes - The value for notes
      Returns:
      this builder for use in a chained invocation
    • addAllParams

      public final ImmutableCtxApiOp.Builder addAllParams(CtxApiParam element)
      Adds one element to allParams list.
      Parameters:
      element - A allParams element
      Returns:
      this builder for use in a chained invocation
    • addAllParams

      public final ImmutableCtxApiOp.Builder addAllParams(CtxApiParam... elements)
      Adds elements to allParams list.
      Parameters:
      elements - An array of allParams elements
      Returns:
      this builder for use in a chained invocation
    • allParams

      public final ImmutableCtxApiOp.Builder allParams(Iterable<? extends CtxApiParam> elements)
      Sets or replaces all elements for allParams list.
      Parameters:
      elements - An iterable of allParams elements
      Returns:
      this builder for use in a chained invocation
    • addAllAllParams

      public final ImmutableCtxApiOp.Builder addAllAllParams(Iterable<? extends CtxApiParam> elements)
      Adds elements to allParams list.
      Parameters:
      elements - An iterable of allParams elements
      Returns:
      this builder for use in a chained invocation
    • addResponses

      public final ImmutableCtxApiOp.Builder addResponses(CtxApiResponse element)
      Adds one element to responses list.
      Parameters:
      element - A responses element
      Returns:
      this builder for use in a chained invocation
    • addResponses

      public final ImmutableCtxApiOp.Builder addResponses(CtxApiResponse... elements)
      Adds elements to responses list.
      Parameters:
      elements - An array of responses elements
      Returns:
      this builder for use in a chained invocation
    • responses

      public final ImmutableCtxApiOp.Builder responses(Iterable<? extends CtxApiResponse> elements)
      Sets or replaces all elements for responses list.
      Parameters:
      elements - An iterable of responses elements
      Returns:
      this builder for use in a chained invocation
    • addAllResponses

      public final ImmutableCtxApiOp.Builder addAllResponses(Iterable<? extends CtxApiResponse> elements)
      Adds elements to responses list.
      Parameters:
      elements - An iterable of responses elements
      Returns:
      this builder for use in a chained invocation
    • madaOp

      public final ImmutableCtxApiOp.Builder madaOp(CtxApiOpExt madaOp)
      Initializes the value for the madaOp attribute.
      Parameters:
      madaOp - The value for madaOp
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableCtxApiOp build()
      Builds a new ImmutableCtxApiOp.
      Returns:
      An immutable instance of CtxApiOp
      Throws:
      IllegalStateException - if any required attributes are missing