StructuredPojo, ToCopyableBuilder<WriteRequest.Builder,WriteRequest>@Generated("software.amazon.awssdk:codegen") public class WriteRequest extends Object implements StructuredPojo, ToCopyableBuilder<WriteRequest.Builder,WriteRequest>
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.
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
WriteRequest.Builder |
| Modifier and Type | Method | Description |
|---|---|---|
static WriteRequest.Builder |
builder() |
|
DeleteRequest |
deleteRequest() |
A request to perform a
DeleteItem operation. |
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller. |
PutRequest |
putRequest() |
A request to perform a
PutItem operation. |
static Class<? extends WriteRequest.Builder> |
serializableBuilderClass() |
|
WriteRequest.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
public PutRequest putRequest()
A request to perform a PutItem operation.
PutItem operation.public DeleteRequest deleteRequest()
A request to perform a DeleteItem operation.
DeleteItem operation.public WriteRequest.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<WriteRequest.Builder,WriteRequest>public static WriteRequest.Builder builder()
public static Class<? extends WriteRequest.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.