Class CreateGlobalSecondaryIndexAction

java.lang.Object
com.amazonaws.services.dynamodbv2.model.CreateGlobalSecondaryIndexAction
All Implemented Interfaces:
Serializable, Cloneable

public class CreateGlobalSecondaryIndexAction extends Object implements Serializable, Cloneable

Represents a new global secondary index to be added to an existing table.

See Also:
  • Constructor Details

    • CreateGlobalSecondaryIndexAction

      public CreateGlobalSecondaryIndexAction()
  • Method Details

    • setIndexName

      public void setIndexName(String indexName)

      The name of the global secondary index to be created.

      Parameters:
      indexName - The name of the global secondary index to be created.
    • getIndexName

      public String getIndexName()

      The name of the global secondary index to be created.

      Returns:
      The name of the global secondary index to be created.
    • withIndexName

      public CreateGlobalSecondaryIndexAction withIndexName(String indexName)

      The name of the global secondary index to be created.

      Parameters:
      indexName - The name of the global secondary index to be created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getKeySchema

      public List<KeySchemaElement> getKeySchema()

      The key schema for the global secondary index.

      Returns:
      The key schema for the global secondary index.
    • setKeySchema

      public void setKeySchema(Collection<KeySchemaElement> keySchema)

      The key schema for the global secondary index.

      Parameters:
      keySchema - The key schema for the global secondary index.
    • withKeySchema

      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.

      Parameters:
      keySchema - The key schema for the global secondary index.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withKeySchema

      The key schema for the global secondary index.

      Parameters:
      keySchema - The key schema for the global secondary index.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setProjection

      public void setProjection(Projection projection)
      Parameters:
      projection -
    • getProjection

      public Projection getProjection()
      Returns:
    • withProjection

      public CreateGlobalSecondaryIndexAction withProjection(Projection projection)
      Parameters:
      projection -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setProvisionedThroughput

      public void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
      Parameters:
      provisionedThroughput -
    • getProvisionedThroughput

      public ProvisionedThroughput getProvisionedThroughput()
      Returns:
    • withProvisionedThroughput

      public CreateGlobalSecondaryIndexAction withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
      Parameters:
      provisionedThroughput -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Overrides:
      clone in class Object