Class SortProperty
- java.lang.Object
-
- software.amazon.awssdk.services.amplifyuibuilder.model.SortProperty
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SortProperty.Builder,SortProperty>
@Generated("software.amazon.awssdk:codegen") public final class SortProperty extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SortProperty.Builder,SortProperty>
Describes how to sort the data that you bind to a component.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSortProperty.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SortProperty.Builderbuilder()SortDirectiondirection()The direction of the sort, either ascending or descending.StringdirectionAsString()The direction of the sort, either ascending or descending.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringfield()The field to perform the sort on.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends SortProperty.Builder>serializableBuilderClass()SortProperty.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
field
public final String field()
The field to perform the sort on.
- Returns:
- The field to perform the sort on.
-
direction
public final SortDirection direction()
The direction of the sort, either ascending or descending.
If the service returns an enum value that is not available in the current SDK version,
directionwill returnSortDirection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdirectionAsString().- Returns:
- The direction of the sort, either ascending or descending.
- See Also:
SortDirection
-
directionAsString
public final String directionAsString()
The direction of the sort, either ascending or descending.
If the service returns an enum value that is not available in the current SDK version,
directionwill returnSortDirection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdirectionAsString().- Returns:
- The direction of the sort, either ascending or descending.
- See Also:
SortDirection
-
toBuilder
public SortProperty.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SortProperty.Builder,SortProperty>
-
builder
public static SortProperty.Builder builder()
-
serializableBuilderClass
public static Class<? extends SortProperty.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.
-
-