Class ClusterRemoteProxyInfo.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ClusterRemoteProxyInfo.Builder>
co.elastic.clients.elasticsearch.cluster.remote_info.ClusterRemoteProxyInfo.Builder
- All Implemented Interfaces:
WithJson<ClusterRemoteProxyInfo.Builder>
,ObjectBuilder<ClusterRemoteProxyInfo>
- Enclosing class:
- ClusterRemoteProxyInfo
public static class ClusterRemoteProxyInfo.Builder
extends WithJsonObjectBuilderBase<ClusterRemoteProxyInfo.Builder>
implements ObjectBuilder<ClusterRemoteProxyInfo>
Builder for
ClusterRemoteProxyInfo
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aClusterRemoteProxyInfo
.clusterCredentials
(String value) This field is present and has a value of::es_redacted::
only when the remote cluster is configured with the API key based model.connected
(boolean value) Required - If it istrue
, there is at least one open connection to the remote cluster.initialConnectTimeout
(Time value) Required - The initial connect timeout for remote cluster connections.Required - The initial connect timeout for remote cluster connections.maxProxySocketConnections
(int value) Required - The maximum number of socket connections to the remote cluster when proxy mode is configured.numProxySocketsConnected
(int value) Required - The number of open socket connections to the remote cluster when proxy mode is configured.proxyAddress
(String value) Required - The address for remote connections when proxy mode is configured.protected ClusterRemoteProxyInfo.Builder
self()
serverName
(String value) Required - API name:server_name
skipUnavailable
(boolean value) Required - Iftrue
, cross-cluster search skips the remote cluster when its nodes are unavailable during the search and ignores errors returned by the remote cluster.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connected
Required - If it istrue
, there is at least one open connection to the remote cluster. If it isfalse
, it means that the cluster no longer has an open connection to the remote cluster. It does not necessarily mean that the remote cluster is down or unavailable, just that at some point a connection was lost.API name:
connected
-
initialConnectTimeout
Required - The initial connect timeout for remote cluster connections.API name:
initial_connect_timeout
-
initialConnectTimeout
public final ClusterRemoteProxyInfo.Builder initialConnectTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Required - The initial connect timeout for remote cluster connections.API name:
initial_connect_timeout
-
proxyAddress
Required - The address for remote connections when proxy mode is configured.API name:
proxy_address
-
serverName
Required - API name:server_name
-
numProxySocketsConnected
Required - The number of open socket connections to the remote cluster when proxy mode is configured.API name:
num_proxy_sockets_connected
-
maxProxySocketConnections
Required - The maximum number of socket connections to the remote cluster when proxy mode is configured.API name:
max_proxy_socket_connections
-
clusterCredentials
This field is present and has a value of::es_redacted::
only when the remote cluster is configured with the API key based model. Otherwise, the field is not present.API name:
cluster_credentials
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ClusterRemoteProxyInfo.Builder>
-
build
Builds aClusterRemoteProxyInfo
.- Specified by:
build
in interfaceObjectBuilder<ClusterRemoteProxyInfo>
- Throws:
NullPointerException
- if some of the required fields are null.
-