@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WriteRequest extends Object implements Serializable, Cloneable, StructuredPojo
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 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 |
---|---|
WriteRequest |
clone() |
boolean |
equals(Object obj) |
DeleteRequest |
getDeleteRequest()
A request to perform a
DeleteItem operation. |
PutRequest |
getPutRequest()
A request to perform a
PutItem operation. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setDeleteRequest(DeleteRequest deleteRequest)
A request to perform a
DeleteItem operation. |
void |
setPutRequest(PutRequest putRequest)
A request to perform a
PutItem operation. |
String |
toString()
Returns a string representation of this object.
|
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 void setPutRequest(PutRequest putRequest)
A request to perform a PutItem
operation.
putRequest
- A request to perform a PutItem
operation.public PutRequest getPutRequest()
A request to perform a PutItem
operation.
PutItem
operation.public WriteRequest withPutRequest(PutRequest putRequest)
A request to perform a PutItem
operation.
putRequest
- A request to perform a PutItem
operation.public void setDeleteRequest(DeleteRequest deleteRequest)
A request to perform a DeleteItem
operation.
deleteRequest
- A request to perform a DeleteItem
operation.public DeleteRequest getDeleteRequest()
A request to perform a DeleteItem
operation.
DeleteItem
operation.public WriteRequest withDeleteRequest(DeleteRequest deleteRequest)
A request to perform a DeleteItem
operation.
deleteRequest
- A request to perform a DeleteItem
operation.public String toString()
toString
in class Object
Object.toString()
public WriteRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2022. All rights reserved.