code: public UpdateItemRequest withKey(java.util.Map.Entry<String, AttributeValue> hashKey, java.util.Map.Entry<String, AttributeValue> rangeKey)
              throws IllegalArgumentException {
          setKey(hashKey, rangeKey);
          return this;
      }
docs: Set the hash and range key attributes of the item.
  <p>
  For a hash-only table, you only need to provide the hash attribute. For a hash-and-range table, you must provide
  both.
  <p>
  Returns a reference to this object so that method calls can be chained together.
  
  @param hashKey
  a map entry including the name and value of the primary hash key.
  @param rangeKey
  a map entry including the name and value of the primary range key, or null if it is a hash-only table.