/** * <p> * The challenge name. For more information, see . * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #challengeName} * will return {@link ChallengeNameType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #challengeNameAsString}. * </p> * * @return The challenge name. For more information, see . * @see ChallengeNameType */ public ChallengeNameType challengeName() { return ChallengeNameType.fromValue(challengeName); }
@Override public final Builder challengeName(ChallengeNameType challengeName) { this.challengeName(challengeName.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 ChallengeNameType corresponding to the value */ public static ChallengeNameType fromValue(String value) { if (value == null) { return null; } return Stream.of(ChallengeNameType.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 ChallengeNameType}s */ public static Set<ChallengeNameType> knownValues() { return Stream.of(values()).filter(v -> v != UNKNOWN_TO_SDK_VERSION).collect(toSet()); } }
@Override public final Builder challengeName(ChallengeNameType challengeName) { this.challengeName(challengeName.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 ChallengeNameType corresponding to the value */ public static ChallengeNameType fromValue(String value) { if (value == null) { return null; } return Stream.of(ChallengeNameType.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 ChallengeNameType}s */ public static Set<ChallengeNameType> knownValues() { return Stream.of(values()).filter(v -> v != UNKNOWN_TO_SDK_VERSION).collect(toSet()); } }
@Override public final Builder challengeName(ChallengeNameType challengeName) { this.challengeName(challengeName.toString()); return this; }
/** * <p> * The name of the challenge. For more information, see . * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #challengeName} * will return {@link ChallengeNameType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #challengeNameAsString}. * </p> * * @return The name of the challenge. For more information, see . * @see ChallengeNameType */ public ChallengeNameType challengeName() { return ChallengeNameType.fromValue(challengeName); }
@Override public final Builder challengeName(ChallengeNameType challengeName) { this.challengeName(challengeName.toString()); return this; }
/** * <p> * The challenge name. For more information, see . * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #challengeName} * will return {@link ChallengeNameType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #challengeNameAsString}. * </p> * * @return The challenge name. For more information, see . * @see ChallengeNameType */ public ChallengeNameType challengeName() { return ChallengeNameType.fromValue(challengeName); }
@Override public final Builder challengeName(ChallengeNameType challengeName) { this.challengeName(challengeName.toString()); return this; }
/** * <p> * The challenge name. For more information, see <a href="API_InitiateAuth.html">InitiateAuth</a>. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #challengeName} * will return {@link ChallengeNameType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #challengeNameAsString}. * </p> * * @return The challenge name. For more information, see <a href="API_InitiateAuth.html">InitiateAuth</a>. * @see ChallengeNameType */ public ChallengeNameType challengeName() { return ChallengeNameType.fromValue(challengeName); }
@Override public final Builder challengeName(ChallengeNameType challengeName) { this.challengeName(challengeName.toString()); return this; }
/** * <p> * The challenge name. For more information, see <a href="API_AdminInitiateAuth.html">AdminInitiateAuth</a>. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #challengeName} * will return {@link ChallengeNameType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #challengeNameAsString}. * </p> * * @return The challenge name. For more information, see <a href="API_AdminInitiateAuth.html">AdminInitiateAuth</a>. * @see ChallengeNameType */ public ChallengeNameType challengeName() { return ChallengeNameType.fromValue(challengeName); }
@Override public final Builder challengeName(ChallengeNameType challengeName) { this.challengeName(challengeName.toString()); return this; }
/** * <p> * The name of the challenge. For more information, see <a href="API_AdminInitiateAuth.html">AdminInitiateAuth</a>. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #challengeName} * will return {@link ChallengeNameType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #challengeNameAsString}. * </p> * * @return The name of the challenge. For more information, see <a * href="API_AdminInitiateAuth.html">AdminInitiateAuth</a>. * @see ChallengeNameType */ public ChallengeNameType challengeName() { return ChallengeNameType.fromValue(challengeName); }
@Override public final Builder challengeName(ChallengeNameType challengeName) { this.challengeName(challengeName.toString()); return this; }
/** * <p> * The challenge name. For more information, see . * </p> * <p> * <code>ADMIN_NO_SRP_AUTH</code> is not a valid value. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #challengeName} * will return {@link ChallengeNameType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available * from {@link #challengeNameAsString}. * </p> * * @return The challenge name. For more information, see .</p> * <p> * <code>ADMIN_NO_SRP_AUTH</code> is not a valid value. * @see ChallengeNameType */ public ChallengeNameType challengeName() { return ChallengeNameType.fromValue(challengeName); }
@Override public final Builder challengeName(ChallengeNameType challengeName) { this.challengeName(challengeName.toString()); return this; }