@Generated(value="software.amazon.awssdk:codegen") public final class WriteRequest extends Object implements SdkPojo, Serializable, 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 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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
PutRequest |
putRequest()
A request to perform a
PutItem operation. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends WriteRequest.Builder> |
serializableBuilderClass() |
WriteRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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()
toBuilder
in interface ToCopyableBuilder<WriteRequest.Builder,WriteRequest>
public static WriteRequest.Builder builder()
public static Class<? extends WriteRequest.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.