Class DatasetChanges
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<DatasetChanges.Builder,
DatasetChanges>
Describes updates or additions to a dataset. A Single update or addition is an entry (JSON Line) that provides
information about a single image. To update an existing entry, you match the source-ref
field of the
update entry with the source-ref
filed of the entry that you want to update. If the
source-ref
field doesn't match an existing entry, the entry is added to dataset as a new entry.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DatasetChanges.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final SdkBytes
A Base64-encoded binary data object containing one or JSON lines that either update the dataset or are additions to the dataset.final int
hashCode()
static Class
<? extends DatasetChanges.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
groundTruth
A Base64-encoded binary data object containing one or JSON lines that either update the dataset or are additions to the dataset. You change a dataset by calling UpdateDatasetEntries. If you are using an AWS SDK to call
UpdateDatasetEntries
, you don't need to encodeChanges
as the SDK encodes the data for you.For example JSON lines, see Image-Level labels in manifest files and and Object localization in manifest files in the Amazon Rekognition Custom Labels Developer Guide.
- Returns:
- A Base64-encoded binary data object containing one or JSON lines that either update the dataset or are
additions to the dataset. You change a dataset by calling UpdateDatasetEntries. If you are using
an AWS SDK to call
UpdateDatasetEntries
, you don't need to encodeChanges
as the SDK encodes the data for you.For example JSON lines, see Image-Level labels in manifest files and and Object localization in manifest files in the Amazon Rekognition Custom Labels Developer Guide.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<DatasetChanges.Builder,
DatasetChanges> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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. -
getValueForField
-
sdkFields
-