Class AllocationExplainResponse.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.AllocationExplainResponse.Builder
-
- All Implemented Interfaces:
ObjectBuilder<AllocationExplainResponse>
- Enclosing class:
- AllocationExplainResponse
public static class AllocationExplainResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<AllocationExplainResponse>
Builder forAllocationExplainResponse
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
allocateExplanation
public final AllocationExplainResponse.Builder allocateExplanation(@Nullable java.lang.String value)
API name:allocate_explanation
-
allocationDelay
public final AllocationExplainResponse.Builder allocationDelay(@Nullable java.lang.String value)
API name:allocation_delay
-
allocationDelayInMillis
public final AllocationExplainResponse.Builder allocationDelayInMillis(@Nullable java.lang.Long value)
API name:allocation_delay_in_millis
-
canAllocate
public final AllocationExplainResponse.Builder canAllocate(@Nullable Decision value)
API name:can_allocate
-
canMoveToOtherNode
public final AllocationExplainResponse.Builder canMoveToOtherNode(@Nullable Decision value)
API name:can_move_to_other_node
-
canRebalanceCluster
public final AllocationExplainResponse.Builder canRebalanceCluster(@Nullable Decision value)
API name:can_rebalance_cluster
-
canRebalanceClusterDecisions
public final AllocationExplainResponse.Builder canRebalanceClusterDecisions(java.util.List<AllocationDecision> list)
API name:can_rebalance_cluster_decisions
Adds all elements of
list
tocanRebalanceClusterDecisions
.
-
canRebalanceClusterDecisions
public final AllocationExplainResponse.Builder canRebalanceClusterDecisions(AllocationDecision value, AllocationDecision... values)
API name:can_rebalance_cluster_decisions
Adds one or more values to
canRebalanceClusterDecisions
.
-
canRebalanceClusterDecisions
public final AllocationExplainResponse.Builder canRebalanceClusterDecisions(java.util.function.Function<AllocationDecision.Builder,ObjectBuilder<AllocationDecision>> fn)
API name:can_rebalance_cluster_decisions
Adds a value to
canRebalanceClusterDecisions
using a builder lambda.
-
canRebalanceToOtherNode
public final AllocationExplainResponse.Builder canRebalanceToOtherNode(@Nullable Decision value)
API name:can_rebalance_to_other_node
-
canRemainDecisions
public final AllocationExplainResponse.Builder canRemainDecisions(java.util.List<AllocationDecision> list)
API name:can_remain_decisions
Adds all elements of
list
tocanRemainDecisions
.
-
canRemainDecisions
public final AllocationExplainResponse.Builder canRemainDecisions(AllocationDecision value, AllocationDecision... values)
API name:can_remain_decisions
Adds one or more values to
canRemainDecisions
.
-
canRemainDecisions
public final AllocationExplainResponse.Builder canRemainDecisions(java.util.function.Function<AllocationDecision.Builder,ObjectBuilder<AllocationDecision>> fn)
API name:can_remain_decisions
Adds a value to
canRemainDecisions
using a builder lambda.
-
canRemainOnCurrentNode
public final AllocationExplainResponse.Builder canRemainOnCurrentNode(@Nullable Decision value)
API name:can_remain_on_current_node
-
clusterInfo
public final AllocationExplainResponse.Builder clusterInfo(@Nullable ClusterInfo value)
API name:cluster_info
-
clusterInfo
public final AllocationExplainResponse.Builder clusterInfo(java.util.function.Function<ClusterInfo.Builder,ObjectBuilder<ClusterInfo>> fn)
API name:cluster_info
-
configuredDelay
public final AllocationExplainResponse.Builder configuredDelay(@Nullable java.lang.String value)
API name:configured_delay
-
configuredDelayInMillis
public final AllocationExplainResponse.Builder configuredDelayInMillis(@Nullable java.lang.Long value)
API name:configured_delay_in_millis
-
currentNode
public final AllocationExplainResponse.Builder currentNode(@Nullable CurrentNode value)
API name:current_node
-
currentNode
public final AllocationExplainResponse.Builder currentNode(java.util.function.Function<CurrentNode.Builder,ObjectBuilder<CurrentNode>> fn)
API name:current_node
-
currentState
public final AllocationExplainResponse.Builder currentState(java.lang.String value)
Required - API name:current_state
-
index
public final AllocationExplainResponse.Builder index(java.lang.String value)
Required - API name:index
-
moveExplanation
public final AllocationExplainResponse.Builder moveExplanation(@Nullable java.lang.String value)
API name:move_explanation
-
nodeAllocationDecisions
public final AllocationExplainResponse.Builder nodeAllocationDecisions(java.util.List<NodeAllocationExplanation> list)
API name:node_allocation_decisions
Adds all elements of
list
tonodeAllocationDecisions
.
-
nodeAllocationDecisions
public final AllocationExplainResponse.Builder nodeAllocationDecisions(NodeAllocationExplanation value, NodeAllocationExplanation... values)
API name:node_allocation_decisions
Adds one or more values to
nodeAllocationDecisions
.
-
nodeAllocationDecisions
public final AllocationExplainResponse.Builder nodeAllocationDecisions(java.util.function.Function<NodeAllocationExplanation.Builder,ObjectBuilder<NodeAllocationExplanation>> fn)
API name:node_allocation_decisions
Adds a value to
nodeAllocationDecisions
using a builder lambda.
-
primary
public final AllocationExplainResponse.Builder primary(boolean value)
Required - API name:primary
-
rebalanceExplanation
public final AllocationExplainResponse.Builder rebalanceExplanation(@Nullable java.lang.String value)
API name:rebalance_explanation
-
remainingDelay
public final AllocationExplainResponse.Builder remainingDelay(@Nullable java.lang.String value)
API name:remaining_delay
-
remainingDelayInMillis
public final AllocationExplainResponse.Builder remainingDelayInMillis(@Nullable java.lang.Long value)
API name:remaining_delay_in_millis
-
shard
public final AllocationExplainResponse.Builder shard(int value)
Required - API name:shard
-
unassignedInfo
public final AllocationExplainResponse.Builder unassignedInfo(@Nullable UnassignedInformation value)
API name:unassigned_info
-
unassignedInfo
public final AllocationExplainResponse.Builder unassignedInfo(java.util.function.Function<UnassignedInformation.Builder,ObjectBuilder<UnassignedInformation>> fn)
API name:unassigned_info
-
note
public final AllocationExplainResponse.Builder note(@Nullable java.lang.String value)
API name:note
-
build
public AllocationExplainResponse build()
Builds aAllocationExplainResponse
.- Specified by:
build
in interfaceObjectBuilder<AllocationExplainResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-