@Experimental public class RestoreRedundancyRequest extends java.lang.Object implements ClusterManagementOperation<RestoreRedundancyResults>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RESTORE_REDUNDANCY_ENDPOINT
see
getEndpoint() |
| Constructor and Description |
|---|
RestoreRedundancyRequest()
By default, requests all partitioned regions to have redundancy restored
|
RestoreRedundancyRequest(RestoreRedundancyRequest other)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEndpoint()
must match the REST controller's RequestMapping
|
java.util.List<java.lang.String> |
getExcludeRegions()
Returns the list of regions NOT to have redundancy restored (iff
getIncludeRegions()
is empty) |
java.util.List<java.lang.String> |
getIncludeRegions()
Returns the list of regions to have redundancy restored (or an empty list for
all-except-excluded)
|
java.lang.String |
getOperator() |
boolean |
getReassignPrimaries() |
void |
setExcludeRegions(java.util.List<java.lang.String> excludeRegions)
Excludes specific regions from the restore redundancy, if
getIncludeRegions() is
empty,
otherwise has no effect
default: no regions are excluded |
void |
setIncludeRegions(java.util.List<java.lang.String> includeRegions)
Requests restore redundancy of the specified region(s) only.
|
void |
setOperator(java.lang.String operator) |
void |
setReassignPrimaries(boolean reassignPrimaries) |
java.lang.String |
toString() |
public static final java.lang.String RESTORE_REDUNDANCY_ENDPOINT
getEndpoint()public RestoreRedundancyRequest()
public RestoreRedundancyRequest(RestoreRedundancyRequest other)
other - the RestoreRedundancyRequest to be copiedpublic java.util.List<java.lang.String> getIncludeRegions()
public void setIncludeRegions(java.util.List<java.lang.String> includeRegions)
includeRegions - a list of region names to include in the restore redundancy operationpublic java.util.List<java.lang.String> getExcludeRegions()
getIncludeRegions()
is empty)getIncludeRegions()
is emptypublic void setExcludeRegions(java.util.List<java.lang.String> excludeRegions)
getIncludeRegions() is
empty,
otherwise has no effect
default: no regions are excludedexcludeRegions - a list of region names to exclude from the restore redundancy operationpublic void setReassignPrimaries(boolean reassignPrimaries)
public boolean getReassignPrimaries()
public java.lang.String getEndpoint()
ClusterManagementOperationgetEndpoint in interface ClusterManagementOperation<RestoreRedundancyResults>public java.lang.String getOperator()
getOperator in interface ClusterManagementOperation<RestoreRedundancyResults>public void setOperator(java.lang.String operator)
public java.lang.String toString()
toString in class java.lang.Object