Class RepositoryMeteringInformation.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • repositoryName

      public final RepositoryMeteringInformation.Builder repositoryName​(java.lang.String value)
      Required - Repository name.

      API name: repository_name

    • repositoryType

      public final RepositoryMeteringInformation.Builder repositoryType​(java.lang.String value)
      Required - Repository type.

      API name: repository_type

    • repositoryLocation

      public final RepositoryMeteringInformation.Builder repositoryLocation​(RepositoryLocation value)
      Required - Represents an unique location within the repository.

      API name: repository_location

    • repositoryLocation

      public final RepositoryMeteringInformation.Builder repositoryLocation​(java.util.function.Function<RepositoryLocation.Builder,​ObjectBuilder<RepositoryLocation>> fn)
      Required - Represents an unique location within the repository.

      API name: repository_location

    • repositoryEphemeralId

      public final RepositoryMeteringInformation.Builder repositoryEphemeralId​(java.lang.String value)
      Required - An identifier that changes every time the repository is updated.

      API name: repository_ephemeral_id

    • repositoryStartedAt

      public final RepositoryMeteringInformation.Builder repositoryStartedAt​(java.lang.String value)
      Required - Time the repository was created or updated. Recorded in milliseconds since the Unix Epoch.

      API name: repository_started_at

    • repositoryStoppedAt

      public final RepositoryMeteringInformation.Builder repositoryStoppedAt​(@Nullable java.lang.String value)
      Time the repository was deleted or updated. Recorded in milliseconds since the Unix Epoch.

      API name: repository_stopped_at

    • archived

      public final RepositoryMeteringInformation.Builder archived​(boolean value)
      Required - A flag that tells whether or not this object has been archived. When a repository is closed or updated the repository metering information is archived and kept for a certain period of time. This allows retrieving the repository metering information of previous repository instantiations.

      API name: archived

    • clusterVersion

      public final RepositoryMeteringInformation.Builder clusterVersion​(@Nullable java.lang.Long value)
      The cluster state version when this object was archived, this field can be used as a logical timestamp to delete all the archived metrics up to an observed version. This field is only present for archived repository metering information objects. The main purpose of this field is to avoid possible race conditions during repository metering information deletions, i.e. deleting archived repositories metering information that we haven’t observed yet.

      API name: cluster_version

    • requestCounts

      public final RepositoryMeteringInformation.Builder requestCounts​(RequestCounts value)
      Required - An object with the number of request performed against the repository grouped by request type.

      API name: request_counts

    • requestCounts

      public final RepositoryMeteringInformation.Builder requestCounts​(java.util.function.Function<RequestCounts.Builder,​ObjectBuilder<RequestCounts>> fn)
      Required - An object with the number of request performed against the repository grouped by request type.

      API name: request_counts

    • build

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