类 UpdateItemRequest


  • public class UpdateItemRequest
    extends AbstractBceRequest
    Represents the input of a UpdateItem operation.
    • 构造器详细资料

      • UpdateItemRequest

        public UpdateItemRequest()
        Constructs a new UpdateItemRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
    • 方法详细资料

      • setTableName

        public void setTableName​(String name)
        Set the name of the table containing the item to update.
        参数:
        name - The name of the table containing the item to update.
      • getTableName

        public String getTableName()
        Get the name of the table containing the item to update.
        返回:
        The name of the table containing the item to update.
      • withTableName

        public UpdateItemRequest withTableName​(String name)
        Set the name of the table containing the item to update.
        参数:
        name - The name of the table containing the item to update.
        返回:
        A reference to this object so that method calls can be chained together.
      • withKey

        public UpdateItemRequest withKey​(Key key)
        Set the Key of the item to be updated with the given Key.
        参数:
        key - The Key of the item to be updated.
        返回:
        A reference to this object so that method calls can be chained together.
      • setKey

        public void setKey​(Key key)
        Set the Key of the item to be updated with the given Key.
        参数:
        key - The Key of the item to be updated.
      • getKey

        public Key getKey()
        Get key of the update item request.
        返回:
        Return the key of the item to be updated.
      • toString

        public String toString()
        Return a string representation of request information.
        覆盖:
        toString 在类中 Object
        返回:
        A string representation of request information.
      • setAttributeUpdates

        public void setAttributeUpdates​(Map<String,​AttributeValueUpdate> attributes)
        Set new attribute value with corresponding attribute name which will be updated.
        参数:
        attributes - A map of attributes to update in an item.
      • withAttributeUpdates

        public UpdateItemRequest withAttributeUpdates​(Map<String,​AttributeValueUpdate> attributes)
        Set new attribute value with corresponding attribute name which will be updated.
        参数:
        attributes - A map of attributes to update in an item.
        返回:
        A reference to this object so that method calls can be chained together.
      • getAttributeUpdates

        public Map<String,​AttributeValueUpdate> getAttributeUpdates()
        Get new attribute value with corresponding attribute name which will be updated.
        返回:
        A map of attributes to update in an item.