Class PutTransformRequest.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.transform.PutTransformRequest.Builder
All Implemented Interfaces:
ObjectBuilder<PutTransformRequest>
Enclosing class:
PutTransformRequest

public static class PutTransformRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<PutTransformRequest>
Builder for PutTransformRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • meta

      public final PutTransformRequest.Builder meta​(java.util.Map<java.lang.String,​java.lang.String> map)
      Defines optional transform metadata.

      API name: _meta

      Adds all entries of map to meta.

    • meta

      public final PutTransformRequest.Builder meta​(java.lang.String key, java.lang.String value)
      Defines optional transform metadata.

      API name: _meta

      Adds an entry to meta.

    • deferValidation

      public final PutTransformRequest.Builder deferValidation​(@Nullable java.lang.Boolean value)
      When the transform is created, a series of validations occur to ensure its success. For example, there is a check for the existence of the source indices and a check that the destination index is not part of the source index pattern. You can use this parameter to skip the checks, for example when the source index does not exist until after the transform is created. The validations are always run when you start the transform, however, with the exception of privilege checks.

      API name: defer_validation

    • description

      public final PutTransformRequest.Builder description​(@Nullable java.lang.String value)
      Free text description of the transform.

      API name: description

    • dest

      public final PutTransformRequest.Builder dest​(Destination value)
      Required - The destination for the transform.

      API name: dest

    • dest

      public final PutTransformRequest.Builder dest​(java.util.function.Function<Destination.Builder,​ObjectBuilder<Destination>> fn)
      Required - The destination for the transform.

      API name: dest

    • frequency

      public final PutTransformRequest.Builder frequency​(@Nullable Time value)
      The interval between checks for changes in the source indices when the transform is running continuously. Also determines the retry interval in the event of transient failures while the transform is searching or indexing. The minimum value is 1s and the maximum is 1h.

      API name: frequency

    • frequency

      public final PutTransformRequest.Builder frequency​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
      The interval between checks for changes in the source indices when the transform is running continuously. Also determines the retry interval in the event of transient failures while the transform is searching or indexing. The minimum value is 1s and the maximum is 1h.

      API name: frequency

    • latest

      public final PutTransformRequest.Builder latest​(@Nullable Latest value)
      The latest method transforms the data by finding the latest document for each unique key.

      API name: latest

    • latest

      public final PutTransformRequest.Builder latest​(java.util.function.Function<Latest.Builder,​ObjectBuilder<Latest>> fn)
      The latest method transforms the data by finding the latest document for each unique key.

      API name: latest

    • pivot

      public final PutTransformRequest.Builder pivot​(@Nullable Pivot value)
      The pivot method transforms the data by aggregating and grouping it. These objects define the group by fields and the aggregation to reduce the data.

      API name: pivot

    • pivot

      public final PutTransformRequest.Builder pivot​(java.util.function.Function<Pivot.Builder,​ObjectBuilder<Pivot>> fn)
      The pivot method transforms the data by aggregating and grouping it. These objects define the group by fields and the aggregation to reduce the data.

      API name: pivot

    • retentionPolicy

      public final PutTransformRequest.Builder retentionPolicy​(@Nullable RetentionPolicy value)
      Defines a retention policy for the transform. Data that meets the defined criteria is deleted from the destination index.

      API name: retention_policy

    • retentionPolicy

      public final PutTransformRequest.Builder retentionPolicy​(java.util.function.Function<RetentionPolicy.Builder,​ObjectBuilder<RetentionPolicy>> fn)
      Defines a retention policy for the transform. Data that meets the defined criteria is deleted from the destination index.

      API name: retention_policy

    • settings

      public final PutTransformRequest.Builder settings​(@Nullable Settings value)
      Defines optional transform settings.

      API name: settings

    • settings

      public final PutTransformRequest.Builder settings​(java.util.function.Function<Settings.Builder,​ObjectBuilder<Settings>> fn)
      Defines optional transform settings.

      API name: settings

    • source

      public final PutTransformRequest.Builder source​(Source value)
      Required - The source of the data for the transform.

      API name: source

    • source

      public final PutTransformRequest.Builder source​(java.util.function.Function<Source.Builder,​ObjectBuilder<Source>> fn)
      Required - The source of the data for the transform.

      API name: source

    • sync

      public final PutTransformRequest.Builder sync​(@Nullable Sync value)
      Defines the properties transforms require to run continuously.

      API name: sync

    • sync

      public final PutTransformRequest.Builder sync​(java.util.function.Function<Sync.Builder,​ObjectBuilder<Sync>> fn)
      Defines the properties transforms require to run continuously.

      API name: sync

    • transformId

      public final PutTransformRequest.Builder transformId​(java.lang.String value)
      Required - Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It has a 64 character limit and must start and end with alphanumeric characters.

      API name: transform_id

    • build

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