Class RecordPatch
- java.lang.Object
-
- software.amazon.awssdk.services.cognitosync.model.RecordPatch
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RecordPatch.Builder,RecordPatch>
@Generated("software.amazon.awssdk:codegen") public final class RecordPatch extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RecordPatch.Builder,RecordPatch>
An update operation for a record.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRecordPatch.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RecordPatch.Builderbuilder()InstantdeviceLastModifiedDate()The last modified date of the client device.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringkey()The key associated with the record patch.Operationop()An operation, either replace or remove.StringopAsString()An operation, either replace or remove.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RecordPatch.Builder>serializableBuilderClass()LongsyncCount()Last known server sync count for this record.RecordPatch.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvalue()The value associated with the record patch.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
op
public final Operation op()
An operation, either replace or remove.If the service returns an enum value that is not available in the current SDK version,
opwill returnOperation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromopAsString().- Returns:
- An operation, either replace or remove.
- See Also:
Operation
-
opAsString
public final String opAsString()
An operation, either replace or remove.If the service returns an enum value that is not available in the current SDK version,
opwill returnOperation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromopAsString().- Returns:
- An operation, either replace or remove.
- See Also:
Operation
-
key
public final String key()
The key associated with the record patch.- Returns:
- The key associated with the record patch.
-
value
public final String value()
The value associated with the record patch.- Returns:
- The value associated with the record patch.
-
syncCount
public final Long syncCount()
Last known server sync count for this record. Set to 0 if unknown.- Returns:
- Last known server sync count for this record. Set to 0 if unknown.
-
deviceLastModifiedDate
public final Instant deviceLastModifiedDate()
The last modified date of the client device.- Returns:
- The last modified date of the client device.
-
toBuilder
public RecordPatch.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RecordPatch.Builder,RecordPatch>
-
builder
public static RecordPatch.Builder builder()
-
serializableBuilderClass
public static Class<? extends RecordPatch.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-