def mime_type=(mime_type)
      validator = EnumAttributeValidator.new('String', ['application/pdf'])
      unless validator.valid?(mime_type)
        fail ArgumentError, 'invalid value for "mime_type", must be one of #{validator.allowable_values}.'
      end
      @mime_type = mime_type
    end
def mime_type=(mime_type)
      validator = EnumAttributeValidator.new('String', ['application/pdf'])
      unless validator.valid?(mime_type)
        fail ArgumentError, 'invalid value for "mime_type", must be one of #{validator.allowable_values}.'
      end
      @mime_type = mime_type
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] mime_type Object to be assigned