Class ClusterRemoteSniffInfo.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.remote_info.ClusterRemoteSniffInfo.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ClusterRemoteSniffInfo>
- Enclosing class:
- ClusterRemoteSniffInfo
public static class ClusterRemoteSniffInfo.Builder extends ObjectBuilderBase implements ObjectBuilder<ClusterRemoteSniffInfo>
Builder forClusterRemoteSniffInfo
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterRemoteSniffInfo
build()
Builds aClusterRemoteSniffInfo
.ClusterRemoteSniffInfo.Builder
connected(boolean value)
Required - API name:connected
ClusterRemoteSniffInfo.Builder
initialConnectTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Required - API name:initial_connect_timeout
ClusterRemoteSniffInfo.Builder
initialConnectTimeout(Time value)
Required - API name:initial_connect_timeout
ClusterRemoteSniffInfo.Builder
maxConnectionsPerCluster(int value)
Required - API name:max_connections_per_cluster
ClusterRemoteSniffInfo.Builder
numNodesConnected(long value)
Required - API name:num_nodes_connected
ClusterRemoteSniffInfo.Builder
seeds(java.lang.String value, java.lang.String... values)
Required - API name:seeds
ClusterRemoteSniffInfo.Builder
seeds(java.util.List<java.lang.String> list)
Required - API name:seeds
ClusterRemoteSniffInfo.Builder
skipUnavailable(boolean value)
Required - API name:skip_unavailable
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
connected
public final ClusterRemoteSniffInfo.Builder connected(boolean value)
Required - API name:connected
-
maxConnectionsPerCluster
public final ClusterRemoteSniffInfo.Builder maxConnectionsPerCluster(int value)
Required - API name:max_connections_per_cluster
-
numNodesConnected
public final ClusterRemoteSniffInfo.Builder numNodesConnected(long value)
Required - API name:num_nodes_connected
-
initialConnectTimeout
public final ClusterRemoteSniffInfo.Builder initialConnectTimeout(Time value)
Required - API name:initial_connect_timeout
-
initialConnectTimeout
public final ClusterRemoteSniffInfo.Builder initialConnectTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Required - API name:initial_connect_timeout
-
skipUnavailable
public final ClusterRemoteSniffInfo.Builder skipUnavailable(boolean value)
Required - API name:skip_unavailable
-
seeds
public final ClusterRemoteSniffInfo.Builder seeds(java.util.List<java.lang.String> list)
Required - API name:seeds
Adds all elements of
list
toseeds
.
-
seeds
public final ClusterRemoteSniffInfo.Builder seeds(java.lang.String value, java.lang.String... values)
Required - API name:seeds
Adds one or more values to
seeds
.
-
build
public ClusterRemoteSniffInfo build()
Builds aClusterRemoteSniffInfo
.- Specified by:
build
in interfaceObjectBuilder<ClusterRemoteSniffInfo>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-