Class TransformsRequest.Builder

All Implemented Interfaces:
WithJson<TransformsRequest.Builder>, ObjectBuilder<TransformsRequest>
Enclosing class:
TransformsRequest

public static class TransformsRequest.Builder extends CatRequestBase.AbstractBuilder<TransformsRequest.Builder> implements ObjectBuilder<TransformsRequest>
Builder for TransformsRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • allowNoMatch

      public final TransformsRequest.Builder allowNoMatch(@Nullable Boolean value)
      Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; contains the _all string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. If true, it returns an empty transforms array when there are no matches and the subset of results when there are partial matches. If false, the request returns a 404 status code when there are no matches or only partial matches.

      API name: allow_no_match

    • bytes

      public final TransformsRequest.Builder bytes(@Nullable Bytes value)
      Sets the units for columns that contain a byte-size value. Note that byte-size value units work in terms of powers of 1024. For instance 1kb means 1024 bytes, not 1000 bytes. If omitted, byte-size values are rendered with a suffix such as kb, mb, or gb, chosen such that the numeric value of the column is as small as possible whilst still being at least 1.0. If given, byte-size values are rendered as an integer with no suffix, representing the value of the column in the chosen unit. Values that are not an exact multiple of the chosen unit are rounded down.

      API name: bytes

    • from

      public final TransformsRequest.Builder from(@Nullable Integer value)
      Skips the specified number of transforms.

      API name: from

    • h

      Comma-separated list of column names to display.

      API name: h

      Adds all elements of list to h.

    • h

      Comma-separated list of column names to display.

      API name: h

      Adds one or more values to h.

    • s

      Comma-separated list of column names or column aliases used to sort the response.

      API name: s

      Adds all elements of list to s.

    • s

      Comma-separated list of column names or column aliases used to sort the response.

      API name: s

      Adds one or more values to s.

    • size

      public final TransformsRequest.Builder size(@Nullable Integer value)
      The maximum number of transforms to obtain.

      API name: size

    • time

      public final TransformsRequest.Builder time(@Nullable TimeUnit value)
      Sets the units for columns that contain a time duration. If omitted, time duration values are rendered with a suffix such as ms, s, m or h, chosen such that the numeric value of the column is as small as possible whilst still being at least 1.0. If given, time duration values are rendered as an integer with no suffix. Values that are not an exact multiple of the chosen unit are rounded down.

      API name: time

    • transformId

      public final TransformsRequest.Builder transformId(@Nullable String value)
      A transform identifier or a wildcard expression. If you do not specify one of these options, the API returns information for all transforms.

      API name: transform_id

    • self

      protected TransformsRequest.Builder self()
      Specified by:
      self in class CatRequestBase.AbstractBuilder<TransformsRequest.Builder>
    • build

      public TransformsRequest build()
      Specified by:
      build in interface ObjectBuilder<TransformsRequest>
      Throws:
      NullPointerException - if some of the required fields are null.