/** * Use this in place of valueOf. * * @param value * real value * @return AssessmentRunNotificationSnsStatusCode corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AssessmentRunNotificationSnsStatusCode fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AssessmentRunNotificationSnsStatusCode enumEntry : AssessmentRunNotificationSnsStatusCode.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * The status code of the SNS notification. * </p> * * @param snsPublishStatusCode * The status code of the SNS notification. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunNotificationSnsStatusCode */ public AssessmentRunNotification withSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode snsPublishStatusCode) { this.snsPublishStatusCode = snsPublishStatusCode.toString(); return this; }
/** * <p> * The status code of the SNS notification. * </p> * * @param snsPublishStatusCode * The status code of the SNS notification. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunNotificationSnsStatusCode */ public AssessmentRunNotification withSnsPublishStatusCode(AssessmentRunNotificationSnsStatusCode snsPublishStatusCode) { this.snsPublishStatusCode = snsPublishStatusCode.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return AssessmentRunNotificationSnsStatusCode corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AssessmentRunNotificationSnsStatusCode fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AssessmentRunNotificationSnsStatusCode enumEntry : AssessmentRunNotificationSnsStatusCode.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }