toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ImageStateChangeReasonCode.internalError:
      return 'INTERNAL_ERROR';
    case ImageStateChangeReasonCode.imageBuilderNotAvailable:
      return 'IMAGE_BUILDER_NOT_AVAILABLE';
    case ImageStateChangeReasonCode.imageCopyFailure:
      return 'IMAGE_COPY_FAILURE';
  }
}