public class WriteRequest
extends java.lang.Object
implements java.io.Serializable
Represents an operation to perform - either DeleteItem
or
PutItem
. You can only request one of these operations, not both,
in a single WriteRequest
. If you do need to perform both of
these operations, you will need to provide two separate
WriteRequest
objects.
Constructor and Description |
---|
WriteRequest()
Default constructor for WriteRequest object.
|
WriteRequest(DeleteRequest deleteRequest)
Constructs a new WriteRequest object.
|
WriteRequest(PutRequest putRequest)
Constructs a new WriteRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
DeleteRequest |
getDeleteRequest()
A request to perform a
DeleteItem operation. |
PutRequest |
getPutRequest()
A request to perform a
PutItem operation. |
int |
hashCode() |
void |
setDeleteRequest(DeleteRequest deleteRequest)
A request to perform a
DeleteItem operation. |
void |
setPutRequest(PutRequest putRequest)
A request to perform a
PutItem operation. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
WriteRequest |
withDeleteRequest(DeleteRequest deleteRequest)
A request to perform a
DeleteItem operation. |
WriteRequest |
withPutRequest(PutRequest putRequest)
A request to perform a
PutItem operation. |
public WriteRequest()
public WriteRequest(PutRequest putRequest)
putRequest
-
A request to perform a PutItem
operation.
public WriteRequest(DeleteRequest deleteRequest)
deleteRequest
-
A request to perform a DeleteItem
operation.
public PutRequest getPutRequest()
A request to perform a PutItem
operation.
A request to perform a PutItem
operation.
public void setPutRequest(PutRequest putRequest)
A request to perform a PutItem
operation.
putRequest
-
A request to perform a PutItem
operation.
public WriteRequest withPutRequest(PutRequest putRequest)
A request to perform a PutItem
operation.
Returns a reference to this object so that method calls can be chained together.
putRequest
-
A request to perform a PutItem
operation.
public DeleteRequest getDeleteRequest()
A request to perform a DeleteItem
operation.
A request to perform a DeleteItem
operation.
public void setDeleteRequest(DeleteRequest deleteRequest)
A request to perform a DeleteItem
operation.
deleteRequest
-
A request to perform a DeleteItem
operation.
public WriteRequest withDeleteRequest(DeleteRequest deleteRequest)
A request to perform a DeleteItem
operation.
Returns a reference to this object so that method calls can be chained together.
deleteRequest
-
A request to perform a DeleteItem
operation.
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.