@Generated(value="software.amazon.awssdk:codegen") public final 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 and Description |
---|---|
static interface |
WriteRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static WriteRequest.Builder |
builder() |
DeleteRequest |
deleteRequest()
A request to perform a
DeleteItem operation. |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
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() |
copy
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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<WriteRequest.Builder,WriteRequest>
public static WriteRequest.Builder builder()
public static Class<? extends WriteRequest.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.