code: public void setMedia(String media) throws FlickrException {
          if (media.equals("all") || media.equals("photos") || media.equals("videos")) {
              this.media = media;
          } else {
              throw new FlickrException("0", "Media type is not valid.");
          }
      }
docs: Filter results by media type. Possible values are all (default), photos or videos.
  
  @param media