Class RemoteClusterInfo.Builder

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

public static class RemoteClusterInfo.Builder extends WithJsonObjectBuilderBase<RemoteClusterInfo.Builder> implements ObjectBuilder<RemoteClusterInfo>
Builder for RemoteClusterInfo.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • clusterUuid

      public final RemoteClusterInfo.Builder clusterUuid(String value)
      Required - The UUID of the remote cluster.

      API name: cluster_uuid

    • mode

      public final RemoteClusterInfo.Builder mode(String value)
      Required - The connection mode used to communicate with the remote cluster.

      API name: mode

    • skipUnavailable

      public final RemoteClusterInfo.Builder skipUnavailable(boolean value)
      Required - The skip_unavailable setting used for this remote cluster.

      API name: skip_unavailable

    • transportCompress

      public final RemoteClusterInfo.Builder transportCompress(String value)
      Required - Transport compression setting used for this remote cluster.

      API name: transport_compress

    • status

      public final RemoteClusterInfo.Builder status(HealthStatus value)
      Required - Health status of the cluster, based on the state of its primary and replica shards.

      API name: status

    • version

      public final RemoteClusterInfo.Builder version(List<String> list)
      Required - The list of Elasticsearch versions used by the nodes on the remote cluster.

      API name: version

      Adds all elements of list to version.

    • version

      public final RemoteClusterInfo.Builder version(String value, String... values)
      Required - The list of Elasticsearch versions used by the nodes on the remote cluster.

      API name: version

      Adds one or more values to version.

    • nodesCount

      public final RemoteClusterInfo.Builder nodesCount(int value)
      Required - The total count of nodes in the remote cluster.

      API name: nodes_count

    • shardsCount

      public final RemoteClusterInfo.Builder shardsCount(int value)
      Required - The total number of shards in the remote cluster.

      API name: shards_count

    • indicesCount

      public final RemoteClusterInfo.Builder indicesCount(int value)
      Required - The total number of indices in the remote cluster.

      API name: indices_count

    • indicesTotalSizeInBytes

      public final RemoteClusterInfo.Builder indicesTotalSizeInBytes(long value)
      Required - Total data set size, in bytes, of all shards assigned to selected nodes.

      API name: indices_total_size_in_bytes

    • indicesTotalSize

      public final RemoteClusterInfo.Builder indicesTotalSize(@Nullable String value)
      Total data set size of all shards assigned to selected nodes, as a human-readable string.

      API name: indices_total_size

    • maxHeapInBytes

      public final RemoteClusterInfo.Builder maxHeapInBytes(long value)
      Required - Maximum amount of memory, in bytes, available for use by the heap across the nodes of the remote cluster.

      API name: max_heap_in_bytes

    • maxHeap

      public final RemoteClusterInfo.Builder maxHeap(@Nullable String value)
      Maximum amount of memory available for use by the heap across the nodes of the remote cluster, as a human-readable string.

      API name: max_heap

    • memTotalInBytes

      public final RemoteClusterInfo.Builder memTotalInBytes(long value)
      Required - Total amount, in bytes, of physical memory across the nodes of the remote cluster.

      API name: mem_total_in_bytes

    • memTotal

      public final RemoteClusterInfo.Builder memTotal(@Nullable String value)
      Total amount of physical memory across the nodes of the remote cluster, as a human-readable string.

      API name: mem_total

    • self

      protected RemoteClusterInfo.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<RemoteClusterInfo.Builder>
    • build

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