@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateGlobalSecondaryIndexAction extends Object implements Serializable, Cloneable, StructuredPojo
Represents a new global secondary index to be added to an existing table.
Constructor and Description |
---|
CreateGlobalSecondaryIndexAction() |
Modifier and Type | Method and Description |
---|---|
CreateGlobalSecondaryIndexAction |
clone() |
boolean |
equals(Object obj) |
String |
getIndexName()
The name of the global secondary index to be created.
|
List<KeySchemaElement> |
getKeySchema()
The key schema for the global secondary index.
|
OnDemandThroughput |
getOnDemandThroughput()
The maximum number of read and write units for the global secondary index being created.
|
Projection |
getProjection()
Represents attributes that are copied (projected) from the table into an index.
|
ProvisionedThroughput |
getProvisionedThroughput()
Represents the provisioned throughput settings for the specified global secondary index.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIndexName(String indexName)
The name of the global secondary index to be created.
|
void |
setKeySchema(Collection<KeySchemaElement> keySchema)
The key schema for the global secondary index.
|
void |
setOnDemandThroughput(OnDemandThroughput onDemandThroughput)
The maximum number of read and write units for the global secondary index being created.
|
void |
setProjection(Projection projection)
Represents attributes that are copied (projected) from the table into an index.
|
void |
setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for the specified global secondary index.
|
String |
toString()
Returns a string representation of this object.
|
CreateGlobalSecondaryIndexAction |
withIndexName(String indexName)
The name of the global secondary index to be created.
|
CreateGlobalSecondaryIndexAction |
withKeySchema(Collection<KeySchemaElement> keySchema)
The key schema for the global secondary index.
|
CreateGlobalSecondaryIndexAction |
withKeySchema(KeySchemaElement... keySchema)
The key schema for the global secondary index.
|
CreateGlobalSecondaryIndexAction |
withOnDemandThroughput(OnDemandThroughput onDemandThroughput)
The maximum number of read and write units for the global secondary index being created.
|
CreateGlobalSecondaryIndexAction |
withProjection(Projection projection)
Represents attributes that are copied (projected) from the table into an index.
|
CreateGlobalSecondaryIndexAction |
withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for the specified global secondary index.
|
public void setIndexName(String indexName)
The name of the global secondary index to be created.
indexName
- The name of the global secondary index to be created.public String getIndexName()
The name of the global secondary index to be created.
public CreateGlobalSecondaryIndexAction withIndexName(String indexName)
The name of the global secondary index to be created.
indexName
- The name of the global secondary index to be created.public List<KeySchemaElement> getKeySchema()
The key schema for the global secondary index.
public void setKeySchema(Collection<KeySchemaElement> keySchema)
The key schema for the global secondary index.
keySchema
- The key schema for the global secondary index.public CreateGlobalSecondaryIndexAction withKeySchema(KeySchemaElement... keySchema)
The key schema for the global secondary index.
NOTE: This method appends the values to the existing list (if any). Use
setKeySchema(java.util.Collection)
or withKeySchema(java.util.Collection)
if you want to
override the existing values.
keySchema
- The key schema for the global secondary index.public CreateGlobalSecondaryIndexAction withKeySchema(Collection<KeySchemaElement> keySchema)
The key schema for the global secondary index.
keySchema
- The key schema for the global secondary index.public void setProjection(Projection projection)
Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
projection
- Represents attributes that are copied (projected) from the table into an index. These are in addition to
the primary key attributes and index key attributes, which are automatically projected.public Projection getProjection()
Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
public CreateGlobalSecondaryIndexAction withProjection(Projection projection)
Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
projection
- Represents attributes that are copied (projected) from the table into an index. These are in addition to
the primary key attributes and index key attributes, which are automatically projected.public void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
provisionedThroughput
- Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
public ProvisionedThroughput getProvisionedThroughput()
Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
public CreateGlobalSecondaryIndexAction withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
provisionedThroughput
- Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
public void setOnDemandThroughput(OnDemandThroughput onDemandThroughput)
The maximum number of read and write units for the global secondary index being created. If you use this
parameter, you must specify MaxReadRequestUnits
, MaxWriteRequestUnits
, or both.
onDemandThroughput
- The maximum number of read and write units for the global secondary index being created. If you use this
parameter, you must specify MaxReadRequestUnits
, MaxWriteRequestUnits
, or both.public OnDemandThroughput getOnDemandThroughput()
The maximum number of read and write units for the global secondary index being created. If you use this
parameter, you must specify MaxReadRequestUnits
, MaxWriteRequestUnits
, or both.
MaxReadRequestUnits
, MaxWriteRequestUnits
, or both.public CreateGlobalSecondaryIndexAction withOnDemandThroughput(OnDemandThroughput onDemandThroughput)
The maximum number of read and write units for the global secondary index being created. If you use this
parameter, you must specify MaxReadRequestUnits
, MaxWriteRequestUnits
, or both.
onDemandThroughput
- The maximum number of read and write units for the global secondary index being created. If you use this
parameter, you must specify MaxReadRequestUnits
, MaxWriteRequestUnits
, or both.public String toString()
toString
in class Object
Object.toString()
public CreateGlobalSecondaryIndexAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.