com.sinch.sdk.domains.numbers.models.v1.request.OrderBy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
package com.sinch.sdk.domains.numbers.models.v1.request;
import com.sinch.sdk.core.utils.EnumDynamic;
import com.sinch.sdk.core.utils.EnumSupportDynamic;
import java.util.Arrays;
import java.util.stream.Stream;
/**
* Supported fields for ordering
*
* @since 1.2
*/
public final class OrderBy extends EnumDynamic {
/** Ordering by phoneNumber */
public static final OrderBy PHONE_NUMBER = new OrderBy("phoneNumber");
/** Ordering by displayName */
public static final OrderBy DISPLAY_NAME = new OrderBy("displayName");
private static final EnumSupportDynamic ENUM_SUPPORT =
new EnumSupportDynamic<>(
OrderBy.class, OrderBy::new, Arrays.asList(PHONE_NUMBER, DISPLAY_NAME));
private OrderBy(String value) {
super(value);
}
public static Stream values() {
return ENUM_SUPPORT.values();
}
public static OrderBy from(String value) {
return ENUM_SUPPORT.from(value);
}
public static String valueOf(OrderBy e) {
return ENUM_SUPPORT.valueOf(e);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy