Class TotalHits
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.TotalHits
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TotalHits.Builder,TotalHits>
@Generated("software.amazon.awssdk:codegen") public final class TotalHits extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TotalHits.Builder,TotalHits>
Represents the total number of matching results and indicates how accurate that count is.
The
Valuefield provides the count, which may be exact or estimated. TheRelationfield indicates whether it's an exact figure or a lower bound. This helps understand the full scope of search results, especially when dealing with large result sets.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTotalHits.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TotalHits.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Relationrelation()Indicates the relationship between the returnedValueand the actual total number of matching results.StringrelationAsString()Indicates the relationship between the returnedValueand the actual total number of matching results.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TotalHits.Builder>serializableBuilderClass()TotalHits.BuildertoBuilder()StringtoString()Returns a string representation of this object.Longvalue()The total number of matching results.-
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
-
value
public final Long value()
The total number of matching results. This value may be exact or an estimate, depending on the
Relationfield.- Returns:
- The total number of matching results. This value may be exact or an estimate, depending on the
Relationfield.
-
relation
public final Relation relation()
Indicates the relationship between the returned
Valueand the actual total number of matching results. Possible values are:-
EqualTo: TheValueis the exact count of matching results. -
GreaterThanOrEqualTo: TheValueis a lower bound of the actual count of matching results.
If the service returns an enum value that is not available in the current SDK version,
relationwill returnRelation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrelationAsString().- Returns:
- Indicates the relationship between the returned
Valueand the actual total number of matching results. Possible values are:-
EqualTo: TheValueis the exact count of matching results. -
GreaterThanOrEqualTo: TheValueis a lower bound of the actual count of matching results.
-
- See Also:
Relation
-
-
relationAsString
public final String relationAsString()
Indicates the relationship between the returned
Valueand the actual total number of matching results. Possible values are:-
EqualTo: TheValueis the exact count of matching results. -
GreaterThanOrEqualTo: TheValueis a lower bound of the actual count of matching results.
If the service returns an enum value that is not available in the current SDK version,
relationwill returnRelation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrelationAsString().- Returns:
- Indicates the relationship between the returned
Valueand the actual total number of matching results. Possible values are:-
EqualTo: TheValueis the exact count of matching results. -
GreaterThanOrEqualTo: TheValueis a lower bound of the actual count of matching results.
-
- See Also:
Relation
-
-
toBuilder
public TotalHits.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TotalHits.Builder,TotalHits>
-
builder
public static TotalHits.Builder builder()
-
serializableBuilderClass
public static Class<? extends TotalHits.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
-
-