public class UpdateGlobalTableRequest extends AmazonWebServiceRequest implements java.io.Serializable
Adds or removes replicas in the specified global table. The global table must already exist to be able to use this operation. Any replica to be added must be empty, must have the same name as the global table, must have the same key schema, and must have DynamoDB Streams enabled and must have same provisioned and maximum write capacity units.
Although you can use UpdateGlobalTable
to add replicas and
remove replicas in a single request, for simplicity we recommend that you
issue separate requests for adding or removing replicas.
If global secondary indexes are specified, then the following conditions must also be met:
The global secondary indexes must have the same name.
The global secondary indexes must have the same hash key and sort key (if present).
The global secondary indexes must have the same provisioned and maximum write capacity units.
Constructor and Description |
---|
UpdateGlobalTableRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGlobalTableName()
The global table name.
|
java.util.List<ReplicaUpdate> |
getReplicaUpdates()
A list of regions that should be added or removed from the global table.
|
int |
hashCode() |
void |
setGlobalTableName(java.lang.String globalTableName)
The global table name.
|
void |
setReplicaUpdates(java.util.Collection<ReplicaUpdate> replicaUpdates)
A list of regions that should be added or removed from the global table.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateGlobalTableRequest |
withGlobalTableName(java.lang.String globalTableName)
The global table name.
|
UpdateGlobalTableRequest |
withReplicaUpdates(java.util.Collection<ReplicaUpdate> replicaUpdates)
A list of regions that should be added or removed from the global table.
|
UpdateGlobalTableRequest |
withReplicaUpdates(ReplicaUpdate... replicaUpdates)
A list of regions that should be added or removed from the global table.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getGlobalTableName()
The global table name.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
The global table name.
public void setGlobalTableName(java.lang.String globalTableName)
The global table name.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
globalTableName
- The global table name.
public UpdateGlobalTableRequest withGlobalTableName(java.lang.String globalTableName)
The global table name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
globalTableName
- The global table name.
public java.util.List<ReplicaUpdate> getReplicaUpdates()
A list of regions that should be added or removed from the global table.
A list of regions that should be added or removed from the global table.
public void setReplicaUpdates(java.util.Collection<ReplicaUpdate> replicaUpdates)
A list of regions that should be added or removed from the global table.
replicaUpdates
- A list of regions that should be added or removed from the global table.
public UpdateGlobalTableRequest withReplicaUpdates(ReplicaUpdate... replicaUpdates)
A list of regions that should be added or removed from the global table.
Returns a reference to this object so that method calls can be chained together.
replicaUpdates
- A list of regions that should be added or removed from the global table.
public UpdateGlobalTableRequest withReplicaUpdates(java.util.Collection<ReplicaUpdate> replicaUpdates)
A list of regions that should be added or removed from the global table.
Returns a reference to this object so that method calls can be chained together.
replicaUpdates
- A list of regions that should be added or removed from the global table.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.