/** * <p> * The current status of the activity type. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #status} will * return {@link RegistrationStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #statusAsString}. * </p> * * @return The current status of the activity type. * @see RegistrationStatus */ public RegistrationStatus status() { return RegistrationStatus.fromValue(status); }
@Override public final Builder registrationStatus(RegistrationStatus registrationStatus) { this.registrationStatus(registrationStatus.toString()); return this; }
/** * Use this in place of valueOf to convert the raw string returned by the service into the enum value. * * @param value * real value * @return RegistrationStatus corresponding to the value */ public static RegistrationStatus fromValue(String value) { if (value == null) { return null; } return Stream.of(RegistrationStatus.values()).filter(e -> e.toString().equals(value)).findFirst() .orElse(UNKNOWN_TO_SDK_VERSION); }
/** * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}. * * @return a {@link Set} of known {@link RegistrationStatus}s */ public static Set<RegistrationStatus> knownValues() { return Stream.of(values()).filter(v -> v != UNKNOWN_TO_SDK_VERSION).collect(toSet()); } }
@Override public final Builder registrationStatus(RegistrationStatus registrationStatus) { this.registrationStatus(registrationStatus.toString()); return this; }
/** * Use this in place of valueOf to convert the raw string returned by the service into the enum value. * * @param value * real value * @return RegistrationStatus corresponding to the value */ public static RegistrationStatus fromValue(String value) { if (value == null) { return null; } return Stream.of(RegistrationStatus.values()).filter(e -> e.toString().equals(value)).findFirst() .orElse(UNKNOWN_TO_SDK_VERSION); }
/** * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}. * * @return a {@link Set} of known {@link RegistrationStatus}s */ public static Set<RegistrationStatus> knownValues() { return Stream.of(values()).filter(v -> v != UNKNOWN_TO_SDK_VERSION).collect(toSet()); } }
@Override public final Builder registrationStatus(RegistrationStatus registrationStatus) { this.registrationStatus(registrationStatus.toString()); return this; }
/** * <p> * Specifies the registration status of the workflow types to list. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, * {@link #registrationStatus} will return {@link RegistrationStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned * by the service is available from {@link #registrationStatusAsString}. * </p> * * @return Specifies the registration status of the workflow types to list. * @see RegistrationStatus */ public RegistrationStatus registrationStatus() { return RegistrationStatus.fromValue(registrationStatus); }
/** * Use this in place of valueOf to convert the raw string returned by the service into the enum value. * * @param value * real value * @return RegistrationStatus corresponding to the value */ public static RegistrationStatus fromValue(String value) { if (value == null) { return null; } return Stream.of(RegistrationStatus.values()).filter(e -> e.toString().equals(value)).findFirst() .orElse(UNKNOWN_TO_SDK_VERSION); }
/** * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}. * * @return a {@link Set} of known {@link RegistrationStatus}s */ public static Set<RegistrationStatus> knownValues() { return Stream.of(values()).filter(v -> v != UNKNOWN_TO_SDK_VERSION).collect(toSet()); } }
@Override public final Builder status(RegistrationStatus status) { this.status(status.toString()); return this; }
/** * <p> * Specifies the registration status of the activity types to list. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, * {@link #registrationStatus} will return {@link RegistrationStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned * by the service is available from {@link #registrationStatusAsString}. * </p> * * @return Specifies the registration status of the activity types to list. * @see RegistrationStatus */ public RegistrationStatus registrationStatus() { return RegistrationStatus.fromValue(registrationStatus); }
@Override public final Builder registrationStatus(RegistrationStatus registrationStatus) { this.registrationStatus(registrationStatus.toString()); return this; }
/** * <p> * Specifies the registration status of the workflow types to list. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, * {@link #registrationStatus} will return {@link RegistrationStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned * by the service is available from {@link #registrationStatusAsString}. * </p> * * @return Specifies the registration status of the workflow types to list. * @see RegistrationStatus */ public RegistrationStatus registrationStatus() { return RegistrationStatus.fromValue(registrationStatus); }
@Override public final Builder status(RegistrationStatus status) { this.status(status.toString()); return this; }
/** * <p> * The current status of the activity type. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #status} will * return {@link RegistrationStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #statusAsString}. * </p> * * @return The current status of the activity type. * @see RegistrationStatus */ public RegistrationStatus status() { return RegistrationStatus.fromValue(status); }
@Override public final Builder status(RegistrationStatus status) { this.status(status.toString()); return this; }
/** * <p> * The current status of the workflow type. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #status} will * return {@link RegistrationStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #statusAsString}. * </p> * * @return The current status of the workflow type. * @see RegistrationStatus */ public RegistrationStatus status() { return RegistrationStatus.fromValue(status); }
@Override public final Builder registrationStatus(RegistrationStatus registrationStatus) { this.registrationStatus(registrationStatus.toString()); return this; }